Skip to content

Commit 3ade059

Browse files
authored
Merge pull request #190 from CitrineInformatics/feature/scaling-factor
Augment scaling factor parsing
2 parents 383dabc + 5d7762c commit 3ade059

File tree

7 files changed

+317
-86
lines changed

7 files changed

+317
-86
lines changed

gemd/entity/dict_serializable.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def from_dict(cls, d: Mapping[str, Any]) -> DictSerializableType:
8484
return cls(**kwargs)
8585

8686
@classmethod
87-
@functools.lru_cache(maxsize=None)
87+
@functools.lru_cache(maxsize=1024)
8888
def _init_sig(cls) -> List[str]:
8989
"""Internal method for generating the argument names for the class init method."""
9090
expected_arg_names = inspect.getfullargspec(cls.__init__).args

gemd/entity/object/base_object.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def __init__(self,
4949
self.file_links = file_links
5050

5151
@classmethod
52-
@functools.lru_cache(maxsize=None)
52+
@functools.lru_cache(maxsize=1024)
5353
def _attribute_has_setter(cls, name: str) -> bool:
5454
"""
5555
Internal method to identify if an attribute has a setter method.

gemd/units/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# flake8: noqa
2-
from .impl import parse_units, convert_units, change_definitions_file, \
2+
from .impl import parse_units, convert_units, get_base_units, change_definitions_file, \
33
UndefinedUnitError, IncompatibleUnitsError, DefinitionSyntaxError
44

5-
__all__ = [parse_units, convert_units, change_definitions_file,
5+
__all__ = [parse_units, convert_units, get_base_units, change_definitions_file,
66
UndefinedUnitError, IncompatibleUnitsError, DefinitionSyntaxError]

0 commit comments

Comments
 (0)