Hi William,
I am familiarizing myself with the CADET-MATCH and working on a CADET-MATCH script for mobile-phase modulator isotherm for a salt based elution for a HIC experiment. I am using CADET-Tutorial Exercise 08 CADET-Match Introduction solution as a template and editing it for mobile phase modulator instead of Langmuir. I have also edited utils.py file (used in tutorial) accordingly.
When run the following section –
from CADETMatch.jupyter import Match
match_file = base_dir / 'mobile_phase_modulator.json'
with open(match_file, 'w') as json_file:
json.dump(match_config.to_dict(), json_file, indent='\t')
match = Match(match_file)
match.start_sim()
It executes only for 1 min 47.8 s and process shuts down. Could you help me in identifying and fixing the error in the script. Many thanks for your help in advance! Copied below is the run log of the command:
2021-01-22 16:14:06,868 match.py print_version 113 CADETMatch starting up version: 0.6.17
2021-01-22 16:14:06,907 match.py print_version 138 joblib version: 0.16.0 tested with 0.15.1
2021-01-22 16:14:06,912 match.py print_version 138 addict version: 2.2.1 tested with 2.2.1
2021-01-22 16:14:06,918 match.py print_version 138 corner version: 0.0.0 tested with 2.0.1
2021-01-22 16:14:06,924 match.py print_version 138 emcee version: 0.0.0 tested with 3.0.2
2021-01-22 16:14:06,930 match.py print_version 138 SALib version: 0.0+nnone tested with 0.0+nnone
2021-01-22 16:14:06,935 match.py print_version 138 deap version: 1.3.1 tested with 1.3.1
2021-01-22 16:14:06,943 match.py print_version 138 psutil version: 5.7.0 tested with 5.7.0
2021-01-22 16:14:06,948 match.py print_version 138 numpy version: 1.18.5 tested with 1.18.5
2021-01-22 16:14:06,953 match.py print_version 138 openpyxl version: 3.0.4 tested with 3.0.3
2021-01-22 16:14:06,960 match.py print_version 138 scipy version: 1.5.0 tested with 1.5.0
2021-01-22 16:14:06,966 match.py print_version 138 matplotlib version: 3.2.2 tested with 3.2.1
2021-01-22 16:14:06,971 match.py print_version 138 pandas version: 1.0.5 tested with 1.0.5
2021-01-22 16:14:06,977 match.py print_version 138 h5py version: 2.10.0 tested with 2.10.0
2021-01-22 16:14:06,983 match.py print_version 138 cadet version: 0.6 tested with 0.6
2021-01-22 16:14:06,989 match.py print_version 138 seaborn version: 0.10.1 tested with 0.10.1
2021-01-22 16:14:07,015 match.py print_version 138 scikit-learn version: 0.23.1 tested with 0.23.1
2021-01-22 16:14:07,021 match.py print_version 138 jstyleson version: 0.0.2 tested with 0.0.2
2021-01-22 16:14:08,146 auto_keq.py getHeaders 162 parameter ['/input/model/unit_001/adsorption/MPM_KA', '/input/model/unit_001/adsorption/MPM_KD'] log ka log keq
2021-01-22 16:14:08,146 auto.py getHeaders 159 parameter /input/model/unit_001/adsorption/MPM_QMAX linear
2021-01-22 16:14:08,146 auto.py getHeaders 159 parameter /input/model/unit_001/adsorption/MPM_QMAX linear
2021-01-22 16:14:08,759 util.py setupSimulation 1166 mobile_phase_modulator_reference.h5 abstol=1e-06 reltol=1e-06
2021-01-22 16:14:11,283 match.py setupTemplates 253 simulation took 2.5222630500793457
2021-01-22 16:14:13,590 match.py setupTemplates 289 simulation final took 2.2599635124206543
2021-01-22 16:14:16,266 gradFD.py create_template 38 grad simulation took 2.56714129447937
2021-01-22 16:14:16,267 gradFD.py create_template 40 grad C:/Users/kusum.solanki/CADET-Tutorial/08_CADET-Match_Introduction/results_exercise/misc/template_main_grad.h5 abstol=1e-06 reltol=1e-06
2021-01-22 16:15:46,732 loggerwriter.py write 10 Traceback (most recent call last):
2021-01-22 16:15:46,732 loggerwriter.py write 10 File "C:\Users\kusum.solanki\Anaconda3\lib\site-packages\pandas\core\internals\construction.py", line 496, in _list_to_arrays
2021-01-22 16:15:46,735 loggerwriter.py write 10
2021-01-22 16:15:46,735 loggerwriter.py write 10 result = _convert_object_array(
2021-01-22 16:15:46,736 loggerwriter.py write 10 File "C:\Users\kusum.solanki\Anaconda3\lib\site-packages\pandas\core\internals\construction.py", line 580, in _convert_object_array
2021-01-22 16:15:46,737 loggerwriter.py write 10
2021-01-22 16:15:46,737 loggerwriter.py write 10 raise AssertionError(
2021-01-22 16:15:46,738 loggerwriter.py write 10 AssertionError
2021-01-22 16:15:46,738 loggerwriter.py write 10 :
2021-01-22 16:15:46,738 loggerwriter.py write 10 14 columns passed, passed data had 13 columns
2021-01-22 16:15:46,739 loggerwriter.py write 10
The above exception was the direct cause of the following exception:
2021-01-22 16:15:46,739 loggerwriter.py write 10 Traceback (most recent call last):
2021-01-22 16:15:46,739 loggerwriter.py write 10 File "C:\Users\kusum.solanki\Anaconda3\lib\site-packages\CADETMatch\match.py", line 322, in <module>
2021-01-22 16:15:46,741 loggerwriter.py write 10
2021-01-22 16:15:46,742 loggerwriter.py write 10 main(map_function=map_function)
2021-01-22 16:15:46,742 loggerwriter.py write 10 File "C:\Users\kusum.solanki\Anaconda3\lib\site-packages\CADETMatch\match.py", line 33, in main
2021-01-22 16:15:46,743 loggerwriter.py write 10
2021-01-22 16:15:46,743 loggerwriter.py write 10 hof = evo.run(cache)
2021-01-22 16:15:46,744 loggerwriter.py write 10 File "C:\Users\kusum.solanki\Anaconda3\lib\site-packages\CADETMatch\evo.py", line 123, in run
2021-01-22 16:15:46,745 loggerwriter.py write 10
2021-01-22 16:15:46,745 loggerwriter.py write 10 return cache.search[searchMethod].run(cache, tools, creator)
2021-01-22 16:15:46,745 loggerwriter.py write 10 File "C:\Users\kusum.solanki\Anaconda3\lib\site-packages\CADETMatch\search\nsga3.py", line 36, in run
2021-01-22 16:15:46,747 loggerwriter.py write 10
2021-01-22 16:15:46,747 loggerwriter.py write 10 return checkpoint_algorithms.eaMuPlusLambda(
2021-01-22 16:15:46,747 loggerwriter.py write 10 File "C:\Users\kusum.solanki\Anaconda3\lib\site-packages\CADETMatch\checkpoint_algorithms.py", line 124, in eaMuPlusLambda
2021-01-22 16:15:46,749 loggerwriter.py write 10
2021-01-22 16:15:46,749 loggerwriter.py write 10 stalled, stallWarn, progressWarn = util.eval_population(
2021-01-22 16:15:46,749 loggerwriter.py write 10 File "C:\Users\kusum.solanki\Anaconda3\lib\site-packages\CADETMatch\util.py", line 926, in eval_population
2021-01-22 16:15:46,751 loggerwriter.py write 10
2021-01-22 16:15:46,752 loggerwriter.py write 10 return eval_population_base(
2021-01-22 16:15:46,752 loggerwriter.py write 10 File "C:\Users\kusum.solanki\Anaconda3\lib\site-packages\CADETMatch\util.py", line 942, in eval_population_base
2021-01-22 16:15:46,753 loggerwriter.py write 10
2021-01-22 16:15:46,754 loggerwriter.py write 10 return process_population(
2021-01-22 16:15:46,754 loggerwriter.py write 10 File "C:\Users\kusum.solanki\Anaconda3\lib\site-packages\CADETMatch\util.py", line 916, in process_population
2021-01-22 16:15:46,755 loggerwriter.py write 10
2021-01-22 16:15:46,755 loggerwriter.py write 10 writeMetaFront(cache, meta_hof, path_meta_csv)
2021-01-22 16:15:46,755 loggerwriter.py write 10 File "C:\Users\kusum.solanki\Anaconda3\lib\site-packages\CADETMatch\util.py", line 968, in writeMetaFront
2021-01-22 16:15:46,757 loggerwriter.py write 10
2021-01-22 16:15:46,757 loggerwriter.py write 10 new_data = pandas.DataFrame(new_data, columns=cache.headers)
2021-01-22 16:15:46,757 loggerwriter.py write 10 File "C:\Users\kusum.solanki\Anaconda3\lib\site-packages\pandas\core\frame.py", line 474, in __init__
2021-01-22 16:15:46,759 loggerwriter.py write 10
2021-01-22 16:15:46,760 loggerwriter.py write 10 arrays, columns = to_arrays(data, columns, dtype=dtype)
2021-01-22 16:15:46,760 loggerwriter.py write 10 File "C:\Users\kusum.solanki\Anaconda3\lib\site-packages\pandas\core\internals\construction.py", line 461, in to_arrays
2021-01-22 16:15:46,761 loggerwriter.py write 10
2021-01-22 16:15:46,762 loggerwriter.py write 10 return _list_to_arrays(data, columns, coerce_float=coerce_float, dtype=dtype)
2021-01-22 16:15:46,762 loggerwriter.py write 10 File "C:\Users\kusum.solanki\Anaconda3\lib\site-packages\pandas\core\internals\construction.py", line 500, in _list_to_arrays
2021-01-22 16:15:46,763 loggerwriter.py write 10
2021-01-22 16:15:46,763 loggerwriter.py write 10 raise ValueError(e) from e
2021-01-22 16:15:46,763 loggerwriter.py write 10 ValueError
2021-01-22 16:15:46,764 loggerwriter.py write 10 :
2021-01-22 16:15:46,764 loggerwriter.py write 10 14 columns passed, passed data had 13 columns
2021-01-22 16:15:46,765 util.py info 54 process shutting down
mobile_phase_modulator.json (1.1 KB)utils.ipynb (18.3 KB) 02_CADET-Match_exercise_solution_Mobile_phase_modulator.ipynb (2.8 MB)