np-workflows 1.6.94__py3-none-any.whl → 1.6.96__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.
@@ -97,12 +97,12 @@ def photodoc_widget(session: np_session.Session, reminder: str) -> None:
97
97
 
98
98
  original_file_stats = get_file_stats()
99
99
 
100
+ timeout_s = 300
100
101
  print(
101
- f"Take an image in Vimba Viewer and save it {vimba_dir} with any name + .png suffix."
102
- f"\n\nThis cell will wait for a new file or an existing file to be modified, then copy it as {reminder!r}*"
102
+ f"Take an image in Vimba Viewer and save it {vimba_dir} with any name and .png suffix."
103
+ f"\n\nThis cell will wait for a new file or an existing file to be modified ({timeout_s = })*"
103
104
  )
104
105
  t0 = time.time()
105
- timeout_s = 120
106
106
  while True:
107
107
  time.sleep(1)
108
108
  new_files = len(new_file_stats := get_file_stats()) != len(original_file_stats)
@@ -119,8 +119,11 @@ def photodoc_widget(session: np_session.Session, reminder: str) -> None:
119
119
  f"No new image file detected in Vimba folder after {timeout_s} seconds - aborting"
120
120
  )
121
121
  latest_image = max(new_file_stats, key=lambda k: new_file_stats[k])
122
- print(f"New file detected:\n\t{latest_image.name}\nCopying to session folder")
123
- new_name = f"{session.npexp_path.name}_{reminder}.png"
124
- shutil.copy2(latest_image, session.npexp_path / new_name)
125
- npxc.validate_or_overwrite(session.npexp_path / new_name, latest_image)
122
+ dest = (
123
+ session.npexp_path
124
+ / f"{session.npexp_path.name}_{reminder}{latest_image.suffix}"
125
+ )
126
+ print(f"New file detected:\n\t{latest_image.name}\nCopying to:\n\t{dest}")
127
+ shutil.copy2(latest_image, dest)
128
+ npxc.validate_or_overwrite(dest, latest_image)
126
129
  print("Done!")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: np-workflows
3
- Version: 1.6.94
3
+ Version: 1.6.96
4
4
  Summary: Ecephys and behavior workflows for the Mindscope Neuropixels team.
5
5
  Author-email: Ben Hardcastle <ben.hardcastle@alleninstitute.org>
6
6
  License: MIT
@@ -14,7 +14,7 @@ Classifier: Operating System :: POSIX :: Linux
14
14
  Requires-Python: ==3.11.*
15
15
  Description-Content-Type: text/markdown
16
16
  Requires-Dist: ipykernel
17
- Requires-Dist: np-services>=0.1.69
17
+ Requires-Dist: np-services>=0.1.74
18
18
  Requires-Dist: np-session>=0.6.48
19
19
  Requires-Dist: np-config>=0.4.33
20
20
  Requires-Dist: ipywidgets>=7
@@ -25,6 +25,9 @@ Requires-Dist: universal-pathlib>=0.1.0
25
25
  Requires-Dist: s3fs>=2023.6.0
26
26
  Requires-Dist: npc-shields>=0.1.10
27
27
  Requires-Dist: jupyter-bokeh>=4.0.5
28
+ Provides-Extra: pynwb
29
+ Requires-Dist: hdmf-zarr==0.11.0; extra == "pynwb"
30
+ Requires-Dist: pynwb==3.0.0; extra == "pynwb"
28
31
 
29
32
  # np_workflows
30
33
 
@@ -2,7 +2,7 @@ np_workflows/__init__.py,sha256=5ZC3gO-VV7PfP13WenHePtvU2wlP68ar6j47pJVvUCM,231
2
2
  np_workflows/experiments/__init__.py,sha256=voWNXF2Kl3mmB4PwqnZ4DcD5zhvBq1j2xLUHnLe6So8,39
3
3
  np_workflows/experiments/dynamic_routing/__init__.py,sha256=M2oiBrVpy_Wrt7oC8J1wzHvKTYdA2K1UIb0-_7S6SuQ,123
4
4
  np_workflows/experiments/dynamic_routing/main.py,sha256=BHleH7NmomD_tMhVPVIpbebetABooOoVClFkggLQS10,2617
5
- np_workflows/experiments/dynamic_routing/widgets.py,sha256=q9X0hitKO63wZhv-ryB97xuluU-EWyt2frfC5qi1-oU,4246
5
+ np_workflows/experiments/dynamic_routing/widgets.py,sha256=a0vb27Jc6TL3KTehG2uDDUnEG3kaC28WTORdRsk1MxA,4239
6
6
  np_workflows/experiments/openscope_P3/P3_workflow_widget.py,sha256=MmGgo-ir4Xy-PDjY3YRhxy5lATAeQ3F9bsuGtF6Bu5I,2361
7
7
  np_workflows/experiments/openscope_P3/__init__.py,sha256=g1SzGmPdWB4MPzx7Zaye4YQU89BDocywCfcAs2ITC5A,133
8
8
  np_workflows/experiments/openscope_P3/main_P3_pilot.py,sha256=39vcLIEVPoB85TdPQ-QlF0sT7Ej9R7oIQHpGJ-dt1Q0,7007
@@ -41,8 +41,8 @@ np_workflows/shared/__init__.py,sha256=YErshr5fY7jU8TJgWqEHz07tUHnEJEZ_mY31DIpQ5
41
41
  np_workflows/shared/base_experiments.py,sha256=KTxsltWtvNlHmlHJkIbMj7qon-RULAlb_Q224c2dtI0,35395
42
42
  np_workflows/shared/npxc.py,sha256=R6n6xrLGr31epoDX_99D_Wy7BYgmjjiZ6efl3UOoK3Y,6642
43
43
  np_workflows/shared/widgets.py,sha256=xF4PKZugYfyHtCPyYxwYgeH5jpB8vyoGDgenEodTTzo,27799
44
- np_workflows-1.6.94.dist-info/METADATA,sha256=VGccVYWAt-BY4bB4h26uMtvn8P5D8gqhJ3ALa8aFEXI,3399
45
- np_workflows-1.6.94.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
46
- np_workflows-1.6.94.dist-info/entry_points.txt,sha256=XBvlXc6-LK4_pCjspQZF_yBbopODJIquhZ8J4LhxlaI,41
47
- np_workflows-1.6.94.dist-info/top_level.txt,sha256=lndEdwvoxg_3fCYd2tyIUfcdvCFegVm3lWUdEf85u8M,13
48
- np_workflows-1.6.94.dist-info/RECORD,,
44
+ np_workflows-1.6.96.dist-info/METADATA,sha256=kuiq0un7rznwvx_Re-HSQjbUlFHhnEmuU_k84fUM9Lg,3518
45
+ np_workflows-1.6.96.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
46
+ np_workflows-1.6.96.dist-info/entry_points.txt,sha256=XBvlXc6-LK4_pCjspQZF_yBbopODJIquhZ8J4LhxlaI,41
47
+ np_workflows-1.6.96.dist-info/top_level.txt,sha256=lndEdwvoxg_3fCYd2tyIUfcdvCFegVm3lWUdEf85u8M,13
48
+ np_workflows-1.6.96.dist-info/RECORD,,