diff --git a/qurator/modstool/lib.py b/qurator/modstool/lib.py index 1eba0f9..b611820 100644 --- a/qurator/modstool/lib.py +++ b/qurator/modstool/lib.py @@ -164,7 +164,7 @@ class TagGroup: return self def merge_sub_tags_to_set(self): - from .modstool import mods_to_dict + from .mods4pandas import mods_to_dict value = {} sub_dicts = [mods_to_dict(e) for e in self.group] @@ -254,7 +254,7 @@ def sorted_groupby(iterable, key=None): def _to_dict(root, raise_errors): - from .modstool import mods_to_dict, mets_to_dict + from .mods4pandas import mods_to_dict, mets_to_dict from .alto4pandas import alto_to_dict root_name = ET.QName(root.tag) diff --git a/qurator/modstool/modstool.py b/qurator/modstool/mods4pandas.py similarity index 100% rename from qurator/modstool/modstool.py rename to qurator/modstool/mods4pandas.py diff --git a/qurator/modstool/tests/test_mets.py b/qurator/modstool/tests/test_mets.py index 6462050..e6e6fb0 100644 --- a/qurator/modstool/tests/test_mets.py +++ b/qurator/modstool/tests/test_mets.py @@ -1,7 +1,7 @@ from lxml import etree as ET -from qurator.modstool.modstool import mets_to_dict +from qurator.modstool.mods4pandas import mets_to_dict from qurator.modstool.lib import flatten diff --git a/qurator/modstool/tests/test_modstool.py b/qurator/modstool/tests/test_modstool.py index 34ccd5e..ec96439 100644 --- a/qurator/modstool/tests/test_modstool.py +++ b/qurator/modstool/tests/test_modstool.py @@ -3,7 +3,7 @@ from lxml import etree as ET import pytest -from qurator.modstool.modstool import mods_to_dict +from qurator.modstool.mods4pandas import mods_to_dict from qurator.modstool.lib import flatten diff --git a/setup.py b/setup.py index 5d00a1b..31affb5 100644 --- a/setup.py +++ b/setup.py @@ -20,7 +20,7 @@ setup( install_requires=install_requires, entry_points={ 'console_scripts': [ - 'mods4pandas=qurator.modstool.modstool:main', + 'mods4pandas=qurator.modstool.mods4pandas:main', 'alto4pandas=qurator.modstool.alto4pandas:main', ] },