Skip to content

Commit

Permalink
fix boxcar handling
Browse files Browse the repository at this point in the history
  • Loading branch information
OnnoKampman committed May 8, 2024
1 parent b83303a commit 36c60ca
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions benchmarks/fmri/sim/train_models/save_TVFC_estimates.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,11 @@
cfg['data-dir'], noise_type, f'trial_{i_trial:03d}',
'checkerboard_covariance.csv'
)
if not os.path.exists(data_filepath):
logging.warning(f"Node time series not found: '{data_filepath:s}'")
if not os.path.exists(data_filepath):
logging.warning(f"Node time series not found: '{data_filepath:s}'")
continue
else:
continue
continue

tvfc_estimates_savedir = os.path.join(
cfg['experiments-basedir'], noise_type, f'trial_{i_trial:03d}', 'TVFC_estimates',
Expand All @@ -64,8 +65,6 @@
data_filepath,
verbose=False,
) # (N, 1), (N, D)
num_time_steps = x.shape[0]
num_time_series = y.shape[1]

match data_split:
case "LEOO":
Expand All @@ -86,7 +85,7 @@
data_split=data_split,
noise_type=noise_type,
i_trial=i_trial,
covs_type=covs_type
covs_type=covs_type,
)
if estimated_tvfc is None:
continue
Expand Down

0 comments on commit 36c60ca

Please sign in to comment.