Commit 22e1d81a authored by dboe's avatar dboe
Browse files

some comments in core

parent 56b235fe
......@@ -17,7 +17,7 @@ __all__ = [
"__classifiers__",
]
__version__ = '0.1.4'
__version__ = '0.2.0'
# __title__ = os.path.basename(os.path.abspath('.')) # problematic
__summary__ = "numpy + sympy implementation of tensor fields with attached coordinate systems"
__keywords__ = "tensors coordinate system trafo sympy numpy"
......
......@@ -380,6 +380,9 @@ class AbstractNdarray(np.ndarray):
Factory method
Given a path to a npz file, construct the object
"""
# TODO: think about allow_pickle, wheter it really should be True or
# wheter we could avoid pickling (potential security issue)
load_kwargs.setdefault('allow_pickle', True)
np_file = np.load(path, **load_kwargs)
return cls._from_dict(**np_file)
......@@ -1959,7 +1962,6 @@ class TensorMaps(TensorFields):
dims.append(map_field.dim)
else:
maps[mp_idx] = TensorFields.merged(maps[mp_idx], map_field)
# kwargs['maps'] = maps
inst = super(TensorMaps, cls).merged(*objects, **kwargs)
inst = cls.__new__(cls, inst, maps=maps)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment