Skip to content

Commit

Permalink
nest print statements within elif verbose
Browse files Browse the repository at this point in the history
  • Loading branch information
alessandratrapani committed Oct 29, 2024
1 parent aa75268 commit 29e5abb
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def session_to_nwb(
if minian_folder_path.is_dir():
source_data.update(dict(MinianSegmentation=dict(folder_path=minian_folder_path)))
conversion_options.update(dict(MinianSegmentation=dict(stub_test=stub_test)))
else:
elif verbose:
print("No Minian data found at {}".format(minian_folder_path))

# Add Motion Correction
Expand All @@ -75,15 +75,15 @@ def session_to_nwb(
dict(MinianMotionCorrection=dict(folder_path=minian_folder_path, video_file_path=motion_corrected_video))
)
conversion_options.update(dict(MinianMotionCorrection=dict(stub_test=stub_test)))
else:
elif verbose:
print("No motion corrected data found at {}".format(motion_corrected_video))

# Add Behavioral Video
video_file_path = experiment_dir_path / session_id / (session_id + ".wmv")
if video_file_path.is_file():
source_data.update(dict(Video=dict(file_paths=[video_file_path])))
conversion_options.update(dict(Video=dict(stub_test=stub_test)))
else:
elif verbose:
print("No behavioral video found at {}".format(video_file_path))

# Add Freezing Analysis output
Expand All @@ -92,7 +92,7 @@ def session_to_nwb(
source_data.update(
dict(FreezingBehavior=dict(file_path=freezing_output_file_path, video_sampling_frequency=30.0))
)
else:
elif verbose:
print("No freezing output csv file found at {}".format(freezing_output_file_path))

# Add EEG, EMG, Temperature and Activity signals
Expand All @@ -103,7 +103,7 @@ def session_to_nwb(
if edf_file_path.is_file():
source_data.update(dict(EDFSignals=dict(file_path=edf_file_path)))
conversion_options.update(dict(EDFSignals=dict(stub_test=stub_test)))
else:
elif verbose:
print("No .edf file found at {}".format(edf_file_path))

converter = Zaki2024NWBConverter(source_data=source_data)
Expand Down

0 comments on commit 29e5abb

Please sign in to comment.