Closed cmazzio closed 2 weeks ago
Oh wait here's the saving_tau.py script saving_tau.txt
So it seems like the script is running all the way to the end (line 65) and breaking at the saving part. My guess is that you might not have the directory setup where it is trying to save the numpy file.
Try adding the following right before where the saving begins (right before line 65) and make sure that the path it is trying to save the file exists. If the folder does not exist, you have to make it either manually or in the script before the file can be saved there
print('/media/cmazzio/large_data/Change_point_models/'+exp_name[0]+'/'+exp_name[0]+'_'+model_id[0]+'_scaled_mode_tau.npy')
This is the error message I get when I add that print statement
Ok, that makes sense. Because there are multiple models which pass your conditions (table below), you have multiple paths so it's probably having trouble generating the save path correctly.
The rows below are what I'm left with after the above conditions. It might help to add the below lines to remove duplicates [LINK to lines]
fit_database.drop_duplicates()
fit_database.clear_mismatched_paths()
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40">
preprocess.time_lims | preprocess.bin_width | preprocess.data_transform | preprocess.preprocessor_name | model.states | model.fit | model.samples | model.model_kwargs | model.model_template_name | model.inference_func_name | data.data_dir | data.basename | data.animal_name | data.session_date | data.taste_num | data.laser_type | data.region_name | exp.exp_name | exp.model_id | exp.save_path | exp.fit_date | module.pymc3_version | module.theano_version -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- [2000, 4000] | 50 | None | preprocess_single_taste | 4 | 40000 | 20000 | {'None': None} | single_taste_poisson | advi_fit | /media/cmazzio/large_data/CM43/CM43_CTATest2_h2o_nacl_qhcl_240412_123531 | CM43_CTATest2_h2o_nacl_qhcl_240412_123531 | CM43 | 123531 | 2 | | gc1 | CM43_CTATest2_QHCl | 1003eda3 | /media/cmazzio/large_data/Change_point_models/CM43_CTATest2_QHCl/CM43_CTATest2_QHCl_1003eda3 | 6/2/2024 | 3.9.3 | 1.0.5 [2000, 4000] | 50 | None | preprocess_single_taste | 4 | 40000 | 20000 | {'None': None} | single_taste_poisson | advi_fit | /media/cmazzio/large_data/CM43/CM43_CTATest2_h2o_nacl_qhcl_240412_123531 | CM43_CTATest2_h2o_nacl_qhcl_240412_123531 | CM43 | 123531 | 2 | | gc1 | CM43_CTATest2_QHCl | 1c282bc0 | /media/cmazzio/large_data/Change_point_models/CM43_CTATest2_QHCl/CM43_CTATest2_QHCl_1c282bc0 | 6/2/2024 | 3.9.3 | 1.0.5 [2000, 4000] | 50 | None | preprocess_single_taste | 3 | 40000 | 20000 | {'None': None} | single_taste_poisson | advi_fit | /media/cmazzio/large_data/CM43/CM43_CTATest2_h2o_nacl_qhcl_240412_123531 | CM43_CTATest2_h2o_nacl_qhcl_240412_123531 | CM43 | 123531 | 2 | | gc1 | CM43_CTATest2_QHCl | 0a018752 | /media/cmazzio/large_data/Change_point_models/CM43_CTATest2_QHCl/CM43_CTATest2_QHCl_0a018752 | 6/2/2024 | 3.9.3 | 1.0.5 [2000, 4000] | 50 | None | preprocess_single_taste | 3 | 40000 | 20000 | {'None': None} | single_taste_poisson | advi_fit | /media/cmazzio/large_data/CM43/CM43_CTATest2_h2o_nacl_qhcl_240412_123531 | CM43_CTATest2_h2o_nacl_qhcl_240412_123531 | CM43 | 123531 | 2 | | gc1 | CM43_CTATest2_QHCl | 98dc7b91 | /media/cmazzio/large_data/Change_point_models/CM43_CTATest2_QHCl/CM43_CTATest2_QHCl_98dc7b91 | 6/2/2024 | 3.9.3 | 1.0.5
See model database and script for saving spike arrays below. When running saving_tau.py for CM43_Test2_qhcl (taste 2), I get the following error:
model_database.csv