Hi, I’m trying to fit a multi-state SMA model to a set of experiments.
The simulation did run when I used only one experiment, but error occurred when multiple experiments were specified.
ValueError Traceback (most recent call last)
~/ipykernel_6756/3712522068.py in <cell line: 8>()
6 json.dump(match_config.to_dict(), json_file, indent='\t')
7
----> 8 match = Match(match_config_file)
9 match.start_sim()
~\AppData\Roaming\Python\Python38\site-packages\CADETMatch\jupyter.py in __init__(self, json_path)
17 self.cache.setup_dir(json_path)
18 CADETMatch.match.createDirectories(self.cache, json_path)
---> 19 self.cache.setup(json_path)
20
21 def start_sim(self):
~\AppData\Roaming\Python\Python38\site-packages\CADETMatch\cache.py in setup(self, json_path, load_plugins)
145 ]
146 self.setupHeaders()
--> 147 self.setupTarget()
148 self.setupMinMax()
149
~\AppData\Roaming\Python\Python38\site-packages\CADETMatch\cache.py in setupTarget(self)
422
423 for experiment in self.settings["experiments"]:
...
---> 86 return ufunc.reduce(obj, axis, dtype, out, **passkwargs)
87
88
ValueError: zero-size array to reduction operation maximum which has no identity
The configuration is the same as using single experiment, with adding experiment2 and feature2.
experiment1 = Dict()
experiment1.name = 'pH7.5_20CV'
experiment1.csv = '../resources/20CV.csv'
experiment1.HDF5 = 'monomer_20CV_reference.h5'
experiment1.output_path = '/output/solution/unit_002/SOLUTION_OUTLET_COMP_001'
experiment2 = Dict()
experiment2.name = 'pH7.5_40CV'
experiment2.csv = '../resources/40CV.csv'
experiment2.HDF5 = 'monomer_40CV_reference.h5'
experiment2.output_path = '/output/solution/unit_002/SOLUTION_OUTLET_COMP_001'
match_config.experiments = [experiment1, experiment2,]
feature1 = Dict()
feature1.name = "Pulse"
feature1.type = 'Shape'
experiment1.features = [feature1,]
feature2 = Dict()
feature2.name = "Pulse"
feature2.type = 'Shape'
experiment2.features = [feature2,]
The reference h5 files for different experiments are already created, so I’m not sure why CADET-match has error when using more than 2 experiments.
Appreciate if you can help.