npc-sync 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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: npc-sync
3
- Version: 0.2.4
3
+ Version: 0.2.5
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.4"
19
+ version = "0.2.5"
20
20
  classifiers = [
21
21
  "Development Status :: 3 - Alpha",
22
22
  "Programming Language :: Python :: 3",
@@ -1312,6 +1312,14 @@ class SyncDataset:
1312
1312
 
1313
1313
  rising, falling = split_flips(flips, is_first_frame_on)
1314
1314
 
1315
+ if self.block_index_to_stim_path[block_idx] is None and os.getenv(
1316
+ "SYNC_ALLOW_MISSING_STIM_FILES"
1317
+ ):
1318
+ logger.debug(
1319
+ f"Block {block_idx} has no stim file available to verify number of vsyncs. Skipping."
1320
+ )
1321
+ frame_display_time_blocks.append(fallback_or_none)
1322
+ continue
1315
1323
  assert self.block_index_to_stim_path[block_idx] is not None
1316
1324
 
1317
1325
  # script_frame_intervals = h5py.File(self.block_index_to_stim_path[block_idx])['frameIntervals'][:]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: npc-sync
3
- Version: 0.2.4
3
+ Version: 0.2.5
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