diff --git a/src/modm_data/dl/stmicro/__main__.py b/src/modm_data/dl/stmicro/__main__.py index 7530d0c..153b3ce 100644 --- a/src/modm_data/dl/stmicro/__main__.py +++ b/src/modm_data/dl/stmicro/__main__.py @@ -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) diff --git a/src/modm_data/dl/stmicro/document.py b/src/modm_data/dl/stmicro/document.py index 13dba21..761b62c 100644 --- a/src/modm_data/dl/stmicro/document.py +++ b/src/modm_data/dl/stmicro/document.py @@ -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": [ @@ -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/"