def narps(): basedir = '/tmp/data' assert os.path.exists(basedir) narps = Narps(basedir) narps.load_data() narps.metadata = pandas.read_csv( os.path.join(narps.dirs.dirs['metadata'], 'all_metadata.csv')) return (narps)
print('info.json no present - data downloading will be disabled') # set up simulation if specified if args.simulate: print('using simulated data') # load main class from real analysis narps_orig = Narps(basedir, overwrite=False) # create simulated data # setup main class from original data narps = Narps(basedir) narps.load_data() # Load full metadata and put into narps structure narps.metadata = pandas.read_csv( os.path.join(narps.dirs.dirs['metadata'], 'all_metadata.csv')) basedir = setup_simulated_data(narps, verbose=False) make_orig_image_sets(narps, basedir, verbose=True, n_teams=32, n_flip_teams=6, n_noise_teams=6, n_highvar_teams=0, testing=False) # doublecheck basedir name assert basedir.find('_simulated') > -1