brukerapi 0.2.4__tar.gz → 0.2.5__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {brukerapi-0.2.4/brukerapi.egg-info → brukerapi-0.2.5}/PKG-INFO +1 -1
- {brukerapi-0.2.4 → brukerapi-0.2.5}/brukerapi/dataset.py +2 -2
- {brukerapi-0.2.4 → brukerapi-0.2.5/brukerapi.egg-info}/PKG-INFO +1 -1
- {brukerapi-0.2.4 → brukerapi-0.2.5}/pyproject.toml +1 -1
- {brukerapi-0.2.4 → brukerapi-0.2.5}/LICENSE +0 -0
- {brukerapi-0.2.4 → brukerapi-0.2.5}/MANIFEST.in +0 -0
- {brukerapi-0.2.4 → brukerapi-0.2.5}/README.rst +0 -0
- {brukerapi-0.2.4 → brukerapi-0.2.5}/brukerapi/__init__.py +0 -0
- {brukerapi-0.2.4 → brukerapi-0.2.5}/brukerapi/cli.py +0 -0
- {brukerapi-0.2.4 → brukerapi-0.2.5}/brukerapi/config/properties_2dseq_core.json +0 -0
- {brukerapi-0.2.4 → brukerapi-0.2.5}/brukerapi/config/properties_2dseq_custom.json +0 -0
- {brukerapi-0.2.4 → brukerapi-0.2.5}/brukerapi/config/properties_fid_core.json +0 -0
- {brukerapi-0.2.4 → brukerapi-0.2.5}/brukerapi/config/properties_fid_custom.json +0 -0
- {brukerapi-0.2.4 → brukerapi-0.2.5}/brukerapi/config/properties_rawdata_core.json +0 -0
- {brukerapi-0.2.4 → brukerapi-0.2.5}/brukerapi/config/properties_rawdata_custom.json +0 -0
- {brukerapi-0.2.4 → brukerapi-0.2.5}/brukerapi/config/properties_traj_core.json +0 -0
- {brukerapi-0.2.4 → brukerapi-0.2.5}/brukerapi/config/properties_traj_custom.json +0 -0
- {brukerapi-0.2.4 → brukerapi-0.2.5}/brukerapi/data.py +0 -0
- {brukerapi-0.2.4 → brukerapi-0.2.5}/brukerapi/exceptions.py +0 -0
- {brukerapi-0.2.4 → brukerapi-0.2.5}/brukerapi/folders.py +0 -0
- {brukerapi-0.2.4 → brukerapi-0.2.5}/brukerapi/jcampdx.py +0 -0
- {brukerapi-0.2.4 → brukerapi-0.2.5}/brukerapi/mergers.py +0 -0
- {brukerapi-0.2.4 → brukerapi-0.2.5}/brukerapi/schemas.py +0 -0
- {brukerapi-0.2.4 → brukerapi-0.2.5}/brukerapi/splitters.py +0 -0
- {brukerapi-0.2.4 → brukerapi-0.2.5}/brukerapi/utils.py +0 -0
- {brukerapi-0.2.4 → brukerapi-0.2.5}/brukerapi.egg-info/SOURCES.txt +0 -0
- {brukerapi-0.2.4 → brukerapi-0.2.5}/brukerapi.egg-info/dependency_links.txt +0 -0
- {brukerapi-0.2.4 → brukerapi-0.2.5}/brukerapi.egg-info/entry_points.txt +0 -0
- {brukerapi-0.2.4 → brukerapi-0.2.5}/brukerapi.egg-info/not-zip-safe +0 -0
- {brukerapi-0.2.4 → brukerapi-0.2.5}/brukerapi.egg-info/requires.txt +0 -0
- {brukerapi-0.2.4 → brukerapi-0.2.5}/brukerapi.egg-info/top_level.txt +0 -0
- {brukerapi-0.2.4 → brukerapi-0.2.5}/setup.cfg +0 -0
- {brukerapi-0.2.4 → brukerapi-0.2.5}/test/test_dataset.py +0 -0
- {brukerapi-0.2.4 → brukerapi-0.2.5}/test/test_exceptions.py +0 -0
- {brukerapi-0.2.4 → brukerapi-0.2.5}/test/test_jcampdx.py +0 -0
- {brukerapi-0.2.4 → brukerapi-0.2.5}/test/test_random_access.py +0 -0
- {brukerapi-0.2.4 → brukerapi-0.2.5}/test/test_split.py +0 -0
- {brukerapi-0.2.4 → brukerapi-0.2.5}/test/test_trajectory.py +0 -0
|
@@ -455,7 +455,7 @@ class Dataset:
|
|
|
455
455
|
:return: value of property, or list of values of properties
|
|
456
456
|
"""
|
|
457
457
|
if isinstance(cmd, str):
|
|
458
|
-
return eval(self._sub_parameters(cmd))
|
|
458
|
+
return eval(self._sub_parameters(cmd), {**globals(), "self": self})
|
|
459
459
|
if isinstance(cmd, (int, float)):
|
|
460
460
|
return cmd
|
|
461
461
|
if isinstance(cmd, list):
|
|
@@ -731,7 +731,7 @@ class Dataset:
|
|
|
731
731
|
|
|
732
732
|
for q in query:
|
|
733
733
|
try:
|
|
734
|
-
if not eval(self._sub_parameters(q)):
|
|
734
|
+
if not eval(self._sub_parameters(q), {**globals(), "self": self}):
|
|
735
735
|
raise FilterEvalFalse
|
|
736
736
|
except (KeyError, AttributeError) as e:
|
|
737
737
|
raise FilterEvalFalse from e
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|