Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
arovai committed Aug 4, 2023
1 parent 2faad41 commit c05d5e6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cvrmap/cvrmap
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ Created: May 2022
"""

# todo: read from config file
# todo: normalize delay shift by computing delay of ROI of reference

# imports
import os # to interact with dirs
Expand Down Expand Up @@ -96,7 +95,7 @@ def main():
global_signal_shift = compute_delays(global_signal, probe, parameters['absolute_shift_list'])[0]

if not os.path.exists(outputs['delay']) or flags['overwrite']:
# compute delays and fit parameters (this is the most time-consuming step)

if flags['sloppy']:
msg_warning('Working in sloppy mode, only for quick testing!')
zmask = mask.data
Expand All @@ -116,8 +115,10 @@ def main():
results = compute_delays(denoised, probe, shift_options)
results['delay'].units = 'seconds'
results['delay'].measurement_type = 'delay'

# save the obtained map
results['delay'].save(outputs['delay'], denoised.path)

# compute and save response maps
results['cvr'] = compute_response(results['intercept'], results['slope'], probe.baseline, np.mean(probe.data))
results['cvr'].units = "Percentage of BOLD variation/%s" % probe.units
Expand Down

0 comments on commit c05d5e6

Please sign in to comment.