Skip to content

Commit

Permalink
hot fix
Browse files Browse the repository at this point in the history
  • Loading branch information
arovai committed Feb 9, 2023
2 parents 02c4ae2 + 83ad96f commit 3866e97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@ def bids_load(self, layout, filters, data_type, **kwargs):
units = lf['co2']['Units']
if units == '%':
# convert % of co2 partial pressure to mmHg
data = data/7.6
units = 'mmHg'
data = data*7.6
else:
if not units == 'mmHg':
msg_warning('The units read from json file, %s, are unknown. This affects the units of CVR.' % str(units))
Expand All @@ -90,6 +89,7 @@ def bids_load(self, layout, filters, data_type, **kwargs):
self.data = data
self.data_type = data_type
self.path = data_path
self.units = units

def nifti_load(self, path):
"""
Expand Down

0 comments on commit 3866e97

Please sign in to comment.