Skip to content

Commit

Permalink
fix: incorrect if statement for manual depth range
Browse files Browse the repository at this point in the history
  • Loading branch information
versey-sherry committed Nov 10, 2021
1 parent 651265f commit 8337b37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion moseq2_extract/helpers/wrappers.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def get_roi_wrapper(input_file, config_data, output_dir=None):
write_image(join(output_dir, 'bground.tiff'), bground_im, scale=True)

# readjust depth range
if config_data.get('manual_set_depth_range', False):
if not config_data.get('manual_set_depth_range', False):
# search for depth values between the max distance and the halfway point to the camera
print('Automatically setting depth range. To manually set range values,'
' set "manual_set_depth_range" to True.\n For CLI users: use the --manual-set-depth-range flag.')
Expand Down

0 comments on commit 8337b37

Please sign in to comment.