np-workflows 1.6.84__tar.gz → 1.6.86__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.
- {np_workflows-1.6.84 → np_workflows-1.6.86}/PKG-INFO +1 -1
- {np_workflows-1.6.84 → np_workflows-1.6.86}/pyproject.toml +1 -1
- {np_workflows-1.6.84 → np_workflows-1.6.86}/src/np_workflows/shared/base_experiments.py +11 -1
- {np_workflows-1.6.84 → np_workflows-1.6.86}/README.md +0 -0
- {np_workflows-1.6.84 → np_workflows-1.6.86}/src/np_workflows/__init__.py +0 -0
- {np_workflows-1.6.84 → np_workflows-1.6.86}/src/np_workflows/assets/images/logo_np_hab.png +0 -0
- {np_workflows-1.6.84 → np_workflows-1.6.86}/src/np_workflows/assets/images/logo_np_vis.png +0 -0
- {np_workflows-1.6.84 → np_workflows-1.6.86}/src/np_workflows/experiments/__init__.py +0 -0
- {np_workflows-1.6.84 → np_workflows-1.6.86}/src/np_workflows/experiments/dynamic_routing/__init__.py +0 -0
- {np_workflows-1.6.84 → np_workflows-1.6.86}/src/np_workflows/experiments/dynamic_routing/main.py +0 -0
- {np_workflows-1.6.84 → np_workflows-1.6.86}/src/np_workflows/experiments/dynamic_routing/widgets.py +0 -0
- {np_workflows-1.6.84 → np_workflows-1.6.86}/src/np_workflows/experiments/openscope_barcode/__init__.py +0 -0
- {np_workflows-1.6.84 → np_workflows-1.6.86}/src/np_workflows/experiments/openscope_barcode/barcode_workflow_widget.py +0 -0
- {np_workflows-1.6.84 → np_workflows-1.6.86}/src/np_workflows/experiments/openscope_barcode/camstim_scripts/barcode_mapping_script.py +0 -0
- {np_workflows-1.6.84 → np_workflows-1.6.86}/src/np_workflows/experiments/openscope_barcode/camstim_scripts/barcode_opto_script.py +0 -0
- {np_workflows-1.6.84 → np_workflows-1.6.86}/src/np_workflows/experiments/openscope_barcode/main_barcode_pilot.py +0 -0
- {np_workflows-1.6.84 → np_workflows-1.6.86}/src/np_workflows/experiments/openscope_loop/__init__.py +0 -0
- {np_workflows-1.6.84 → np_workflows-1.6.86}/src/np_workflows/experiments/openscope_loop/camstim_scripts/barcode_mapping_script.py +0 -0
- {np_workflows-1.6.84 → np_workflows-1.6.86}/src/np_workflows/experiments/openscope_loop/camstim_scripts/barcode_opto_script.py +0 -0
- {np_workflows-1.6.84 → np_workflows-1.6.86}/src/np_workflows/experiments/openscope_loop/loop_workflow_widget.py +0 -0
- {np_workflows-1.6.84 → np_workflows-1.6.86}/src/np_workflows/experiments/openscope_loop/main_loop_pilot.py +0 -0
- {np_workflows-1.6.84 → np_workflows-1.6.86}/src/np_workflows/experiments/openscope_psycode/__init__.py +0 -0
- {np_workflows-1.6.84 → np_workflows-1.6.86}/src/np_workflows/experiments/openscope_psycode/main_psycode_pilot.py +0 -0
- {np_workflows-1.6.84 → np_workflows-1.6.86}/src/np_workflows/experiments/openscope_psycode/psycode_workflow_widget.py +0 -0
- {np_workflows-1.6.84 → np_workflows-1.6.86}/src/np_workflows/experiments/openscope_vippo/__init__.py +0 -0
- {np_workflows-1.6.84 → np_workflows-1.6.86}/src/np_workflows/experiments/openscope_vippo/main_vippo_pilot.py +0 -0
- {np_workflows-1.6.84 → np_workflows-1.6.86}/src/np_workflows/experiments/openscope_vippo/vippo_workflow_widget.py +0 -0
- {np_workflows-1.6.84 → np_workflows-1.6.86}/src/np_workflows/experiments/task_trained_network/__init__.py +0 -0
- {np_workflows-1.6.84 → np_workflows-1.6.86}/src/np_workflows/experiments/task_trained_network/camstim_scripts/make_tt_stims.py +0 -0
- {np_workflows-1.6.84 → np_workflows-1.6.86}/src/np_workflows/experiments/task_trained_network/camstim_scripts/oct22_tt_stim_script.py +0 -0
- {np_workflows-1.6.84 → np_workflows-1.6.86}/src/np_workflows/experiments/task_trained_network/camstim_scripts/stims/densely_annotated_00.stim +0 -0
- {np_workflows-1.6.84 → np_workflows-1.6.86}/src/np_workflows/experiments/task_trained_network/camstim_scripts/stims/densely_annotated_01.stim +0 -0
- {np_workflows-1.6.84 → np_workflows-1.6.86}/src/np_workflows/experiments/task_trained_network/camstim_scripts/stims/densely_annotated_02.stim +0 -0
- {np_workflows-1.6.84 → np_workflows-1.6.86}/src/np_workflows/experiments/task_trained_network/camstim_scripts/stims/densely_annotated_03.stim +0 -0
- {np_workflows-1.6.84 → np_workflows-1.6.86}/src/np_workflows/experiments/task_trained_network/camstim_scripts/stims/densely_annotated_04.stim +0 -0
- {np_workflows-1.6.84 → np_workflows-1.6.86}/src/np_workflows/experiments/task_trained_network/camstim_scripts/stims/densely_annotated_05.stim +0 -0
- {np_workflows-1.6.84 → np_workflows-1.6.86}/src/np_workflows/experiments/task_trained_network/camstim_scripts/stims/densely_annotated_06.stim +0 -0
- {np_workflows-1.6.84 → np_workflows-1.6.86}/src/np_workflows/experiments/task_trained_network/camstim_scripts/stims/densely_annotated_07.stim +0 -0
- {np_workflows-1.6.84 → np_workflows-1.6.86}/src/np_workflows/experiments/task_trained_network/camstim_scripts/stims/densely_annotated_08.stim +0 -0
- {np_workflows-1.6.84 → np_workflows-1.6.86}/src/np_workflows/experiments/task_trained_network/camstim_scripts/stims/densely_annotated_09.stim +0 -0
- {np_workflows-1.6.84 → np_workflows-1.6.86}/src/np_workflows/experiments/task_trained_network/camstim_scripts/stims/densely_annotated_10.stim +0 -0
- {np_workflows-1.6.84 → np_workflows-1.6.86}/src/np_workflows/experiments/task_trained_network/camstim_scripts/stims/densely_annotated_11.stim +0 -0
- {np_workflows-1.6.84 → np_workflows-1.6.86}/src/np_workflows/experiments/task_trained_network/camstim_scripts/stims/densely_annotated_12.stim +0 -0
- {np_workflows-1.6.84 → np_workflows-1.6.86}/src/np_workflows/experiments/task_trained_network/camstim_scripts/stims/densely_annotated_13.stim +0 -0
- {np_workflows-1.6.84 → np_workflows-1.6.86}/src/np_workflows/experiments/task_trained_network/camstim_scripts/stims/densely_annotated_14.stim +0 -0
- {np_workflows-1.6.84 → np_workflows-1.6.86}/src/np_workflows/experiments/task_trained_network/camstim_scripts/stims/densely_annotated_15.stim +0 -0
- {np_workflows-1.6.84 → np_workflows-1.6.86}/src/np_workflows/experiments/task_trained_network/camstim_scripts/stims/densely_annotated_16.stim +0 -0
- {np_workflows-1.6.84 → np_workflows-1.6.86}/src/np_workflows/experiments/task_trained_network/camstim_scripts/stims/densely_annotated_17.stim +0 -0
- {np_workflows-1.6.84 → np_workflows-1.6.86}/src/np_workflows/experiments/task_trained_network/camstim_scripts/stims/densely_annotated_18.stim +0 -0
- {np_workflows-1.6.84 → np_workflows-1.6.86}/src/np_workflows/experiments/task_trained_network/camstim_scripts/stims/flash_250ms.stim +0 -0
- {np_workflows-1.6.84 → np_workflows-1.6.86}/src/np_workflows/experiments/task_trained_network/camstim_scripts/stims/gabor_20_deg_250ms.stim +0 -0
- {np_workflows-1.6.84 → np_workflows-1.6.86}/src/np_workflows/experiments/task_trained_network/camstim_scripts/stims/old_stim.stim +0 -0
- {np_workflows-1.6.84 → np_workflows-1.6.86}/src/np_workflows/experiments/task_trained_network/camstim_scripts/stims/shuffle_reversed.stim +0 -0
- {np_workflows-1.6.84 → np_workflows-1.6.86}/src/np_workflows/experiments/task_trained_network/camstim_scripts/stims/shuffle_reversed_1st.stim +0 -0
- {np_workflows-1.6.84 → np_workflows-1.6.86}/src/np_workflows/experiments/task_trained_network/camstim_scripts/stims/shuffle_reversed_2nd.stim +0 -0
- {np_workflows-1.6.84 → np_workflows-1.6.86}/src/np_workflows/experiments/task_trained_network/camstim_scripts/ttn_main_script.py +0 -0
- {np_workflows-1.6.84 → np_workflows-1.6.86}/src/np_workflows/experiments/task_trained_network/camstim_scripts/ttn_mapping_script.py +0 -0
- {np_workflows-1.6.84 → np_workflows-1.6.86}/src/np_workflows/experiments/task_trained_network/camstim_scripts/ttn_opto_script.py +0 -0
- {np_workflows-1.6.84 → np_workflows-1.6.86}/src/np_workflows/experiments/task_trained_network/main_ttn_pilot.py +0 -0
- {np_workflows-1.6.84 → np_workflows-1.6.86}/src/np_workflows/experiments/task_trained_network/ttn_session_widget.py +0 -0
- {np_workflows-1.6.84 → np_workflows-1.6.86}/src/np_workflows/experiments/task_trained_network/ttn_stim_config.py +0 -0
- {np_workflows-1.6.84 → np_workflows-1.6.86}/src/np_workflows/experiments/templeton/__init__.py +0 -0
- {np_workflows-1.6.84 → np_workflows-1.6.86}/src/np_workflows/experiments/templeton/main.py +0 -0
- {np_workflows-1.6.84 → np_workflows-1.6.86}/src/np_workflows/experiments/templeton/widgets.py +0 -0
- {np_workflows-1.6.84 → np_workflows-1.6.86}/src/np_workflows/shared/__init__.py +0 -0
- {np_workflows-1.6.84 → np_workflows-1.6.86}/src/np_workflows/shared/camstim_scripts/flash_250ms.stim +0 -0
- {np_workflows-1.6.84 → np_workflows-1.6.86}/src/np_workflows/shared/camstim_scripts/gabor_20_deg_250ms.stim +0 -0
- {np_workflows-1.6.84 → np_workflows-1.6.86}/src/np_workflows/shared/npxc.py +0 -0
- {np_workflows-1.6.84 → np_workflows-1.6.86}/src/np_workflows/shared/widgets.py +0 -0
- {np_workflows-1.6.84 → np_workflows-1.6.86}/tests/model_sandbox.py +0 -0
- {np_workflows-1.6.84 → np_workflows-1.6.86}/tests/widget_sandbox.ipynb +0 -0
|
@@ -382,6 +382,12 @@ class PipelineExperiment(WithSession):
|
|
|
382
382
|
renamed_folders.append(renamed)
|
|
383
383
|
logger.info('Renamed split ephys folders %r', split_folders)
|
|
384
384
|
np_services.OpenEphys.data_files = renamed_folders
|
|
385
|
+
|
|
386
|
+
@staticmethod
|
|
387
|
+
def contains_uuid(text: str) -> bool:
|
|
388
|
+
hexchars = '[0-9a-fA-F]'
|
|
389
|
+
pattern = rf"{hexchars}{{8}}-{hexchars}{{4}}-{hexchars}{{4}}-{hexchars}{{4}}-{hexchars}{{12}}"
|
|
390
|
+
return re.search(pattern, text) is not None
|
|
385
391
|
|
|
386
392
|
def copy_data_files(self) -> None:
|
|
387
393
|
"""Copy data files from raw data storage to session folder for all services."""
|
|
@@ -402,9 +408,13 @@ class PipelineExperiment(WithSession):
|
|
|
402
408
|
if file.suffix == '.h5':
|
|
403
409
|
renamed = f'{self.session.folder}.sync'
|
|
404
410
|
elif file.suffix == '.pkl':
|
|
405
|
-
for _ in ('opto', 'main', 'mapping'):
|
|
411
|
+
for _ in ('opto', 'main', 'mapping', 'behavior'):
|
|
406
412
|
if _ in file.name:
|
|
407
413
|
renamed = f'{self.session.folder}.{"stim" if _ == "main" else _}.pkl'
|
|
414
|
+
break
|
|
415
|
+
else:
|
|
416
|
+
if self.contains_uuid(file.name):
|
|
417
|
+
renamed = f'{self.session.folder}.behavior.pkl'
|
|
408
418
|
elif file.suffix in ('.json', '.mp4') and (cam_label := re.match('Behavior|Eye|Face',file.name)):
|
|
409
419
|
renamed = f'{self.session.folder}.{cam_label.group().lower()}{file.suffix}'
|
|
410
420
|
elif file.suffix in ('.json', '.mp4') and (cam_label := re.match('BEH|EYE|FACE',file.name)):
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{np_workflows-1.6.84 → np_workflows-1.6.86}/src/np_workflows/experiments/dynamic_routing/__init__.py
RENAMED
|
File without changes
|
{np_workflows-1.6.84 → np_workflows-1.6.86}/src/np_workflows/experiments/dynamic_routing/main.py
RENAMED
|
File without changes
|
{np_workflows-1.6.84 → np_workflows-1.6.86}/src/np_workflows/experiments/dynamic_routing/widgets.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{np_workflows-1.6.84 → np_workflows-1.6.86}/src/np_workflows/experiments/openscope_loop/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{np_workflows-1.6.84 → np_workflows-1.6.86}/src/np_workflows/experiments/openscope_vippo/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{np_workflows-1.6.84 → np_workflows-1.6.86}/src/np_workflows/experiments/templeton/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{np_workflows-1.6.84 → np_workflows-1.6.86}/src/np_workflows/experiments/templeton/widgets.py
RENAMED
|
File without changes
|
|
File without changes
|
{np_workflows-1.6.84 → np_workflows-1.6.86}/src/np_workflows/shared/camstim_scripts/flash_250ms.stim
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|