diff --git a/conftest.py b/conftest.py index e0f2bee..2baa7ef 100644 --- a/conftest.py +++ b/conftest.py @@ -52,7 +52,7 @@ def download_data_test_zip(directory): check_local_first=True, check_hash=True, hash_type='MD5', - # hash_hex=r'd7662fcbaa44b4d0ebcf86bbdc6daa66', + hash_hex=r'fcd17f02d3817da53a9f538e8119fc15', mkdir=True, allow_overwrite=True, write_mode='wb', diff --git a/notebooks/interactive_pipeline_basic.ipynb b/notebooks/interactive_pipeline_basic.ipynb index bcbff01..aef94cd 100644 --- a/notebooks/interactive_pipeline_basic.ipynb +++ b/notebooks/interactive_pipeline_basic.ipynb @@ -665,6 +665,26 @@ " print(f\"run_data equality check finished successfully\")" ] }, + { + "cell_type": "code", + "execution_count": 27, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "'fcd17f02d3817da53a9f538e8119fc15'" + ] + }, + "execution_count": 27, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "fr.helpers.hash_file(path='/media/rich/bigSSD/downloads_tmp/data_test.zip')" + ] + }, { "cell_type": "code", "execution_count": null, diff --git a/tests/data_test.zip b/tests/data_test.zip index 01c8959..066e12c 100644 Binary files a/tests/data_test.zip and b/tests/data_test.zip differ diff --git a/tests/data_test/inputs/ROIs.h5 b/tests/data_test/inputs/ROIs.h5 deleted file mode 100644 index a32d24d..0000000 Binary files a/tests/data_test/inputs/ROIs.h5 and /dev/null differ diff --git a/tests/data_test/inputs/demo_mouse0322N20230430cam4_1.avi b/tests/data_test/inputs/demo_mouse0322N20230430cam4_1.avi deleted file mode 100644 index e10ebb5..0000000 Binary files a/tests/data_test/inputs/demo_mouse0322N20230430cam4_1.avi and /dev/null differ diff --git a/tests/data_test/inputs/demo_mouse0322N20230430cam4_2.avi b/tests/data_test/inputs/demo_mouse0322N20230430cam4_2.avi deleted file mode 100644 index bd4c39e..0000000 Binary files a/tests/data_test/inputs/demo_mouse0322N20230430cam4_2.avi and /dev/null differ diff --git a/tests/data_test/outputs/analysis_files/Dataset_videos.h5 b/tests/data_test/outputs/analysis_files/Dataset_videos.h5 deleted file mode 100644 index e7c17d8..0000000 Binary files a/tests/data_test/outputs/analysis_files/Dataset_videos.h5 and /dev/null differ diff --git a/tests/data_test/outputs/analysis_files/PointTracker.h5 b/tests/data_test/outputs/analysis_files/PointTracker.h5 deleted file mode 100644 index 3e0684d..0000000 Binary files a/tests/data_test/outputs/analysis_files/PointTracker.h5 and /dev/null differ diff --git a/tests/data_test/outputs/analysis_files/ROIs.h5 b/tests/data_test/outputs/analysis_files/ROIs.h5 deleted file mode 100644 index b1ba5c0..0000000 Binary files a/tests/data_test/outputs/analysis_files/ROIs.h5 and /dev/null differ diff --git a/tests/data_test/outputs/analysis_files/TCA.h5 b/tests/data_test/outputs/analysis_files/TCA.h5 deleted file mode 100644 index 320cd15..0000000 Binary files a/tests/data_test/outputs/analysis_files/TCA.h5 and /dev/null differ diff --git a/tests/data_test/outputs/analysis_files/VQT_Analyzer.h5 b/tests/data_test/outputs/analysis_files/VQT_Analyzer.h5 deleted file mode 100644 index 1046b40..0000000 Binary files a/tests/data_test/outputs/analysis_files/VQT_Analyzer.h5 and /dev/null differ diff --git a/tests/data_test/outputs/config.yaml b/tests/data_test/outputs/config.yaml deleted file mode 100644 index aec42ce..0000000 --- a/tests/data_test/outputs/config.yaml +++ /dev/null @@ -1,83 +0,0 @@ -general: - date_created: '2024-01-28 17:30:29' - date_modified: '2024-01-28 17:30:46' - path_created: /tmp/tmpm167_hrz/project/config.yaml -paths: - project: /tmp/tmpm167_hrz/project - config: /tmp/tmpm167_hrz/project/config.yaml - run_info: /tmp/tmpm167_hrz/project/run_info.json -Dataset_videos: - paths_videos: - - /media/rich/Home_Linux_partition/github_repos/face-rhythm/tests/data_test/inputs/demo_mouse0322N20230430cam4_1.avi - - /media/rich/Home_Linux_partition/github_repos/face-rhythm/tests/data_test/inputs/demo_mouse0322N20230430cam4_2.avi - contiguous: false - frame_rate_clamp: null - verbose: 2 -ROIs: - select_mode: file - exampleImage: true - path_file: /media/rich/Home_Linux_partition/github_repos/face-rhythm/tests/data_test/inputs/ROIs.h5 - roi_points: false - point_positions: false - mask_images: false - verbose: 2 -PointTracker: - contiguous: true - visualize_video: false - params_optical_flow: - method: lucas_kanade - mesh_rigidity: 0.025 - mesh_n_neighbors: 8 - relaxation: 0.0015 - kwargs_method: - winSize: - - 20 - - 20 - maxLevel: 2 - criteria: - - 3 - - 2 - - 0.03 - params_outlier_handling: - threshold_displacement: 150 - framesHalted_before: 10 - framesHalted_after: 10 - params_visualization: - alpha: 0.2 - point_sizes: 2 - verbose: 2 -VQT_Analyzer: - params_VQT: - Q_lowF: 4 - Q_highF: 10 - F_min: 1.0 - F_max: 60 - n_freq_bins: 36 - win_size: 501 - symmetry: center - taper_asymmetric: true - plot_pref: false - downsample_factor: 20 - padding: valid - batch_size: 10 - return_complex: false - progressBar: true - Fs_sample: 120.0 - DEVICE_compute: cpu - normalization_factor: 0.95 - spectrogram_exponent: 1.0 - one_over_f_exponent: 0.5 - verbose: 2 -TCA: - verbose: 2 - method: CP_NN_HALS - backend: pytorch - params_method: - rank: 10 - n_iter_max: 200 - init: random - svd: truncated_svd - tol: 1.0e-09 - random_state: 0 - verbose: true - device: cpu diff --git a/tests/data_test/outputs/run_info.json b/tests/data_test/outputs/run_info.json deleted file mode 100644 index dc7e307..0000000 --- a/tests/data_test/outputs/run_info.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "Dataset_videos": { - "frame_rate": 120.0, - "num_frames_total": 2000, - "frame_height_width": [ - 582, - 784 - ], - "num_channels": 3, - "metadata": { - "paths_videos": [ - "/media/rich/Home_Linux_partition/github_repos/face-rhythm/tests/data_test/inputs/demo_mouse0322N20230430cam4_1.avi", - "/media/rich/Home_Linux_partition/github_repos/face-rhythm/tests/data_test/inputs/demo_mouse0322N20230430cam4_2.avi" - ], - "num_frames": [ - 1000, - 1000 - ], - "frame_rate": [ - 120.0, - 120.0 - ], - "frame_height_width": [ - [ - 582, - 784 - ], - [ - 582, - 784 - ] - ], - "num_channels": [ - 3, - 3 - ] - } - }, - "ROIs": { - "img_hw": [ - 582, - 784, - 3 - ] - }, - "PointTracker": { - "num_videos": 1, - "num_frames": [ - 2000 - ], - "num_frames_total": 2000, - "num_points": 347, - "violation_fraction": [ - 0 - ] - }, - "VQT_Analyzer": {}, - "TCA": { - "names_dims_array": [ - "(xy points)", - "frequency", - "time" - ], - "name_dim_dictElements": "session", - "num_dictElements": 1 - } -} \ No newline at end of file diff --git a/tests/test_environment.py b/tests/test_environment.py index d690752..7446ea9 100644 --- a/tests/test_environment.py +++ b/tests/test_environment.py @@ -4,7 +4,7 @@ def test_python_version( look_for_verion_in_environmentYaml=True, - filename_environmentYaml='environment_GPU.yml', + filename_environmentYaml='environment.yml', fallback_version=3.11, verbose=1, ):