np-services 0.1.43__tar.gz → 0.1.45__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.1
2
2
  Name: np-services
3
- Version: 0.1.43
3
+ Version: 0.1.45
4
4
  Summary: Tools for interfacing with devices and services used in Mindscope Neuropixels experiments at the Allen Institute.
5
5
  Author: bjhardcastle
6
6
  Author-email: ben.hardcastle@alleninstitute.org
@@ -19,6 +19,7 @@ Requires-Dist: pandas (>=1.5.3,<2.0.0)
19
19
  Requires-Dist: pydantic (>=1.10,<2.0)
20
20
  Requires-Dist: pyzmq
21
21
  Requires-Dist: requests (>=2,<3)
22
+ Requires-Dist: tables (>=3.8.0,<4.0.0)
22
23
  Description-Content-Type: text/markdown
23
24
 
24
25
  # service usage
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "np-services"
3
- version = "0.1.43"
3
+ version = "0.1.45"
4
4
  description = "Tools for interfacing with devices and services used in Mindscope Neuropixels experiments at the Allen Institute."
5
5
  authors = ["bjhardcastle <ben.hardcastle@alleninstitute.org>"]
6
6
  readme = "README.md"
@@ -22,6 +22,7 @@ pydantic = "^1.10"
22
22
  pandas = "^1.5.3"
23
23
  h5py = "^3.8.0"
24
24
  np_config = ">=0.4.17"
25
+ tables = "^3.8.0"
25
26
 
26
27
  [tool.poetry.group.dev.dependencies]
27
28
  pip-tools = "*"
@@ -19,11 +19,12 @@ install_requires = \
19
19
  'pandas>=1.5.3,<2.0.0',
20
20
  'pydantic>=1.10,<2.0',
21
21
  'pyzmq',
22
- 'requests>=2,<3']
22
+ 'requests>=2,<3',
23
+ 'tables>=3.8.0,<4.0.0']
23
24
 
24
25
  setup_kwargs = {
25
26
  'name': 'np-services',
26
- 'version': '0.1.43',
27
+ 'version': '0.1.45',
27
28
  'description': 'Tools for interfacing with devices and services used in Mindscope Neuropixels experiments at the Allen Institute.',
28
29
  'long_description': '# service usage\n![Services](./services.drawio.svg)',
29
30
  'author': 'bjhardcastle',
@@ -131,6 +131,7 @@ def initialize() -> None:
131
131
  data_files = []
132
132
  global initialized
133
133
  initialized = time.time()
134
+ global folder
134
135
  set_folder(folder)
135
136
 
136
137
 
@@ -272,6 +273,7 @@ def unlock_previous_recording():
272
273
  time.sleep(0.5)
273
274
  stop()
274
275
  time.sleep(0.5)
276
+ global folder
275
277
  set_folder(folder)
276
278
 
277
279
 
@@ -821,8 +821,8 @@ class Cam3d(CamstimSyncShared):
821
821
  logger.debug(f"{cls.__name__} | Finalizing")
822
822
  counter = 0
823
823
  while (
824
- cls.is_started()
825
- or not (latest := cls.get_latest_data('*'))
824
+ not (latest := cls.get_latest_data('*'))
825
+ or cls.is_started()
826
826
  ):
827
827
  time.sleep(1)
828
828
  counter += 1
@@ -0,0 +1,19 @@
1
+ import pathlib
2
+
3
+ import h5py
4
+ import pandas as pd
5
+ import pydantic
6
+ import tables
7
+
8
+ f = pathlib.Path('//allen/programs/mindscope/workgroups/np-exp/habituation/1253722691_661730_20230313/1253722691_661730_20230313.sync')
9
+
10
+ h = h5py.File(f, 'r')
11
+ t = tables.open_file(f, 'r')
12
+ pd.read_hdf(f.as_posix(), 'meta')
13
+
14
+
15
+
16
+
17
+ class Sync(pydantic.BaseModel):
18
+ pass
19
+
File without changes