np-services 0.1.44__py3-none-any.whl → 0.1.46__py3-none-any.whl

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.
np_services/open_ephys.py CHANGED
@@ -125,12 +125,11 @@ def is_connected() -> bool:
125
125
 
126
126
  def initialize() -> None:
127
127
  logger.info("OpenEphys | Initializing")
128
- launch()
129
-
130
128
  global data_files
131
129
  data_files = []
132
130
  global initialized
133
131
  initialized = time.time()
132
+ global folder
134
133
  set_folder(folder)
135
134
 
136
135
 
@@ -146,8 +145,8 @@ def is_disk_space_ok() -> bool:
146
145
  for data_root in get_data_roots():
147
146
  try:
148
147
  free = utils.free_gb(data_root)
149
- except FileNotFoundError as exc:
150
- exc = exc
148
+ except FileNotFoundError as e:
149
+ exc = e
151
150
  logger.exception(f"{__name} data path not accessible: {data_root}")
152
151
  else:
153
152
  logger.info(
@@ -272,6 +271,7 @@ def unlock_previous_recording():
272
271
  time.sleep(0.5)
273
272
  stop()
274
273
  time.sleep(0.5)
274
+ global folder
275
275
  set_folder(folder)
276
276
 
277
277
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: np-services
3
- Version: 0.1.44
3
+ Version: 0.1.46
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
@@ -1,11 +1,11 @@
1
1
  np_services/__init__.py,sha256=vrJ0fCokTGzM3UxPz248j5wA1R4NhDYjAW4kkL7iZog,237
2
2
  np_services/mvr.py,sha256=ZcZYtdtxMyOwoZzGiH2Xh2vllRzcgr6nhNiuYOkbPHM,8230
3
- np_services/open_ephys.py,sha256=x_kTvOjJS6l5aMedkbImYU3Y8WqnF1mJedTLsZlzeVE,10606
3
+ np_services/open_ephys.py,sha256=NUX0CPLp73xkYANGwbSB4b1Dh_SJJEHUpaP5woqh-r8,10620
4
4
  np_services/protocols.py,sha256=qSGj5ZFzscpS3ROzEH13_lEW0a5aN8a1l7aga8cEsp4,5518
5
5
  np_services/proxies.py,sha256=H8PdLOqf3PLuSCOW4yUbTUpHxTx8PfX-TiUT_ofLdTg,54399
6
6
  np_services/sync.py,sha256=6fO0Yo4uSqZAklw3DL9YIsA5lZ7TArV5J5OatyrDyvs,350
7
7
  np_services/utils.py,sha256=s_MLdg69ePRqQ7du6YNNW2E_UVmWEop_WFxM3e6zayI,5760
8
8
  np_services/zro.py,sha256=eAtKB1h3rFXd-EfGuXFNjtkDMC_9e6ZDA_mzIUjze-g,10246
9
- np_services-0.1.44.dist-info/METADATA,sha256=RLf7pZ-A1qZ2Nc8SXz2ix97oeRWL1INjUc1O5LfAVjE,952
10
- np_services-0.1.44.dist-info/WHEEL,sha256=vVCvjcmxuUltf8cYhJ0sJMRDLr1XsPuxEId8YDzbyCY,88
11
- np_services-0.1.44.dist-info/RECORD,,
9
+ np_services-0.1.46.dist-info/METADATA,sha256=YS9QUkchZ8_oIw4Ok4t-6kbkyuFuelgL5HnwGHdTXLo,952
10
+ np_services-0.1.46.dist-info/WHEEL,sha256=vVCvjcmxuUltf8cYhJ0sJMRDLr1XsPuxEId8YDzbyCY,88
11
+ np_services-0.1.46.dist-info/RECORD,,