Skip to content

Commit

Permalink
fix: config_data['true_depth'] cast to float
Browse files Browse the repository at this point in the history
  • Loading branch information
versey-sherry committed Dec 30, 2021
1 parent 3a2233d commit 3f7c582
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions moseq2_extract/helpers/wrappers.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,8 +397,8 @@ def extract_wrapper(input_file, output_dir, config_data, num_frames=None, skip=F

status_dict['complete'] = True
if status_dict['parameters'].get('true_depth') is None:
status_dict['parameters']['true_depth'] = config_data.get('true_depth')

# config_data.get('true_depth') is numpy.float64 and yaml.safe_dump can't represent the object
status_dict['parameters']['true_depth'] = float(config_data.get('true_depth'))
with open(status_filename, 'w') as f:
yaml.safe_dump(status_dict, f)

Expand Down

0 comments on commit 3f7c582

Please sign in to comment.