diff --git a/.github/workflows/build-docs.yml b/.github/workflows/build-docs.yml index f980e6b..63e1968 100644 --- a/.github/workflows/build-docs.yml +++ b/.github/workflows/build-docs.yml @@ -26,7 +26,7 @@ jobs: - name: Build docs run: | - sphinx-apidoc -o docs/source/apidoc beam + sphinx-apidoc -o docs/source/apidoc datatractor_beam sphinx-build -b html docs/source/ public/main - name: Upload docs artifact diff --git a/README.md b/README.md index aa02ebe..a18756a 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,14 @@ Repository containing the reference implementation of the Datatractor API, published at [![Datatractor Yard](https://badgen.net/static/%F0%9F%9A%9Cdatatractor/yard)](https://yard.datatractor.org/). -For more information, see the preprint: +For more information, see the publication: + +> **Datatractor: Metadata, automation, and registries for extractor interoperability in the chemical and materials sciences** +> Matthew L. Evans, Gian-Marco Rignanese, David Elbert & Peter Kraus +> MRS Bulletin, 50, 838-845 (2025) [DOI: 10.1557/s43577-025-00925-8](https://link.springer.com/article/10.1557/s43577-025-00925-8) + + +or preprint at: > **Datatractor: Metadata, automation, and registries for extractor interoperability in the chemical and materials sciences** > Matthew L. Evans, Gian-Marco Rignanese, David Elbert & Peter Kraus @@ -41,7 +48,7 @@ pip install . ### Usage #### As a Python module -To extract data from a file, you can use the `extract` function from the `beam` module inside your own Python code: +To extract data from a file, you can use the `extract` function from the `datatractor_beam` module inside your own Python code: ```python from datatractor_beam import extract diff --git a/beam/__init__.py b/datatractor_beam/__init__.py similarity index 100% rename from beam/__init__.py rename to datatractor_beam/__init__.py diff --git a/docs/source/conf.py b/docs/source/conf.py index 76d9499..6677cb1 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -13,7 +13,7 @@ import os import sys -sys.path.insert(0, os.path.abspath(os.path.join("..", "..", "beam"))) +sys.path.insert(0, os.path.abspath(os.path.join("..", "..", "datatractor_beam"))) version = "main" diff --git a/docs/source/index.rst b/docs/source/index.rst index 4583d21..e2f43f5 100644 --- a/docs/source/index.rst +++ b/docs/source/index.rst @@ -7,7 +7,7 @@ Datatractor Beam: Reference implementation of the Datatractor API :hidden: :glob: - apidoc/beam + apidoc/datatractor_beam Documentation of |beamrepo|_, the reference implementation of the Datatractor API, diff --git a/pyproject.toml b/pyproject.toml index 77342c1..ccbeef6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -9,7 +9,7 @@ source = "vcs" version-file = "_version.py" [tool.hatch.build.targets.wheel] -packages = ["beam"] +packages = ["datatractor_beam"] [project] name = "datatractor-beam" @@ -57,7 +57,7 @@ dev = [ repository = "https://github.com/datatractor/beam" [project.scripts] -datatractor = "beam:run_datatractor" +datatractor = "datatractor_beam:run_datatractor" [tool.ruff] extend-exclude = [ diff --git a/scripts/biologic-mpr-example.py b/scripts/biologic-mpr-example.py index 204802d..e255be0 100644 --- a/scripts/biologic-mpr-example.py +++ b/scripts/biologic-mpr-example.py @@ -1,7 +1,7 @@ import pathlib import urllib.request -from beam import extract +from datatractor_beam import extract # Download an example MPR file from the registry download_path = pathlib.Path(__file__).parent / "data" / "example.mpr" diff --git a/tests/test_mpr.py b/tests/test_mpr.py index 150123a..ad086cc 100644 --- a/tests/test_mpr.py +++ b/tests/test_mpr.py @@ -4,7 +4,7 @@ import pytest -from beam import ExtractorPlan, SupportedExecutionMethod, extract +from datatractor_beam import ExtractorPlan, SupportedExecutionMethod, extract @pytest.fixture