np-workflows 1.6.94__py3-none-any.whl → 1.6.95__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_workflows/experiments/dynamic_routing/widgets.py +10 -7
- {np_workflows-1.6.94.dist-info → np_workflows-1.6.95.dist-info}/METADATA +1 -1
- {np_workflows-1.6.94.dist-info → np_workflows-1.6.95.dist-info}/RECORD +6 -6
- {np_workflows-1.6.94.dist-info → np_workflows-1.6.95.dist-info}/WHEEL +0 -0
- {np_workflows-1.6.94.dist-info → np_workflows-1.6.95.dist-info}/entry_points.txt +0 -0
- {np_workflows-1.6.94.dist-info → np_workflows-1.6.95.dist-info}/top_level.txt +0 -0
|
@@ -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
|
|
102
|
-
f"\n\nThis cell will wait for a new file or an existing file to be modified
|
|
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
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
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!")
|
|
@@ -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=
|
|
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.
|
|
45
|
-
np_workflows-1.6.
|
|
46
|
-
np_workflows-1.6.
|
|
47
|
-
np_workflows-1.6.
|
|
48
|
-
np_workflows-1.6.
|
|
44
|
+
np_workflows-1.6.95.dist-info/METADATA,sha256=skvFVCb9OMs8h2a6IsO0nzzcUohoaxacwKM7KkvJUjM,3399
|
|
45
|
+
np_workflows-1.6.95.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
46
|
+
np_workflows-1.6.95.dist-info/entry_points.txt,sha256=XBvlXc6-LK4_pCjspQZF_yBbopODJIquhZ8J4LhxlaI,41
|
|
47
|
+
np_workflows-1.6.95.dist-info/top_level.txt,sha256=lndEdwvoxg_3fCYd2tyIUfcdvCFegVm3lWUdEf85u8M,13
|
|
48
|
+
np_workflows-1.6.95.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|