Skip to content

Commit

Permalink
final clean ups
Browse files Browse the repository at this point in the history
  • Loading branch information
mavaylon1 committed Mar 15, 2024
1 parent eb3970b commit e9e26f6
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/hdmf/build/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,10 +397,9 @@ class TypeMap:
"""

@docval({'name': 'namespaces', 'type': NamespaceCatalog, 'doc': 'the NamespaceCatalog to use', 'default': None},
{'name': 'mapper_cls', 'type': type, 'doc': 'the ObjectMapper class to use', 'default': None},
{'name': 'config_path', 'type': str, 'doc': 'The path to the TermSet config yaml.', 'default': None})
{'name': 'mapper_cls', 'type': type, 'doc': 'the ObjectMapper class to use', 'default': None})
def __init__(self, **kwargs):
namespaces, mapper_cls, config_path = getargs('namespaces', 'mapper_cls', 'config_path', kwargs)
namespaces, mapper_cls = getargs('namespaces', 'mapper_cls', kwargs)
if namespaces is None:
namespaces = NamespaceCatalog()
if mapper_cls is None:
Expand All @@ -413,7 +412,7 @@ def __init__(self, **kwargs):
self.__data_types = dict()
self.__default_mapper_cls = mapper_cls
self.__class_generator = ClassGenerator()
self.ts_config = TermSetConfigurator(path=config_path)
self.ts_config = TermSetConfigurator()
self.register_generator(CustomClassGenerator)
self.register_generator(MCIClassGenerator)

Expand Down

0 comments on commit e9e26f6

Please sign in to comment.