Skip to content

Commit

Permalink
Fix it
Browse files Browse the repository at this point in the history
  • Loading branch information
salkinium committed Jul 23, 2023
1 parent 3b17a71 commit 495ac3e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/modm_data/dl/stmicro/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def download_pdfs(base_dir, with_download, new_pdfs=None):
print(f"Pages={sdoc.page_count}, Width={sdoc.page(0).width}px")
assert sdoc.page_count and sdoc.page(0).width
new_local_docs.append(doc)
shutil.copy(outfile.name, basedir / doc.filename)
shutil.copy(outfile.name, base_dir / doc.filename)
except Exception as e:
print(e)
invalid_docs.append(doc)
Expand Down
12 changes: 6 additions & 6 deletions src/modm_data/dl/stmicro/document.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def __hash__(self) -> int:
"boards": [
"evaluation-tools/product-evaluation-tools/mcu-mpu-eval-tools/stm32-mcu-mpu-eval-tools/stm32-nucleo-boards.cxst-rs-grid.html/LN1847.technical_literature.json",
"evaluation-tools/product-evaluation-tools/mcu-mpu-eval-tools/stm32-mcu-mpu-eval-tools/stm32-discovery-kits.cxst-rs-grid.html/LN1848.technical_literature.json",
# "evaluation-tools/product-evaluation-tools/mcu-mpu-eval-tools/stm32-mcu-mpu-eval-tools/stm32-eval-boards.cxst-rs-grid.html/LN1199.technical_literature.json",
"evaluation-tools/product-evaluation-tools/mcu-mpu-eval-tools/stm32-mcu-mpu-eval-tools/stm32-eval-boards.cxst-rs-grid.html/LN1199.technical_literature.json",
],
# Technical docs for STMicro sensors
"sensors": [
Expand All @@ -82,11 +82,11 @@ def __hash__(self) -> int:
"mems-and-sensors/temperature-sensors.cxst-rs-grid.html/SC294.technical_literature.json",
],
# Technical docs for STMicro data converters (unused)
# "converters": [
# "data-converters/a-d-d-a-converters.cxst-rs-grid.html/SC47.technical_literature.json",
# "data-converters/isolated-adcs.cxst-rs-grid.html/SC2514.technical_literature.json",
# "data-converters/metering-ics.cxst-rs-grid.html/SC397.technical_literature.json",
# ]
"converters": [
"data-converters/a-d-d-a-converters.cxst-rs-grid.html/SC47.technical_literature.json",
"data-converters/isolated-adcs.cxst-rs-grid.html/SC2514.technical_literature.json",
"data-converters/metering-ics.cxst-rs-grid.html/SC397.technical_literature.json",
]
}
_json_base_url = "https://www.st.com/content/st_com/en/products/"

Expand Down

0 comments on commit 495ac3e

Please sign in to comment.