Commit 221ed8e6 authored by Jorn Baayen's avatar Jorn Baayen

Merge branch 'csv_sim_initial_state_as_param' into 'master'

parse params into dict

See merge request !64
parents ac6ec047 3ef72111
......@@ -69,9 +69,10 @@ class CSVMixin(SimulationProblem):
logger.debug("CSVMixin: Read timeseries.")
try:
self._parameters = csv.load(os.path.join(
_parameters = csv.load(os.path.join(
self._input_folder, 'parameters.csv'), delimiter=self.csv_delimiter)
logger.debug("CSVMixin: Read parameters.")
self._parameters = {key: float(_parameters[key]) for key in _parameters.dtype.names}
except IOError:
self._parameters = {}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment