npc-sync 0.2.2__tar.gz → 0.2.3__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: npc-sync
3
- Version: 0.2.2
3
+ Version: 0.2.3
4
4
  Summary: Repackaging of AllenSDK.SyncDataset with extra functionality, compatible with data in the cloud.
5
5
  Author-email: Ben Hardcastle <ben.hardcastle@alleninstitue.org>
6
6
  License: MIT
@@ -16,7 +16,7 @@ dependencies = [
16
16
  "scipy>=1.13.1",
17
17
  "npc-stim>=0.1.14",
18
18
  ]
19
- version = "0.2.2"
19
+ version = "0.2.3"
20
20
  classifiers = [
21
21
  "Development Status :: 3 - Alpha",
22
22
  "Programming Language :: Python :: 3",
@@ -223,6 +223,7 @@ class SyncDataset:
223
223
  ) -> None:
224
224
  if isinstance(path, self.__class__):
225
225
  self = path
226
+ self.dfile = path
226
227
  else:
227
228
  self.path = npc_io.from_pathlike(path)
228
229
  self.dfile = self.load(path)
@@ -359,7 +360,10 @@ class SyncDataset:
359
360
 
360
361
  @property
361
362
  def meta_data(self) -> dict[str, Any]:
362
- return eval(self.dfile["meta"][()])
363
+ try:
364
+ return eval(self.dfile["meta"][()])
365
+ except AttributeError:
366
+ return eval(self["meta"][()])
363
367
 
364
368
  @property
365
369
  def line_labels(self) -> Sequence[str]:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: npc-sync
3
- Version: 0.2.2
3
+ Version: 0.2.3
4
4
  Summary: Repackaging of AllenSDK.SyncDataset with extra functionality, compatible with data in the cloud.
5
5
  Author-email: Ben Hardcastle <ben.hardcastle@alleninstitue.org>
6
6
  License: MIT
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes