Commit 3ef72111 authored by Jesse VanderWees's avatar Jesse VanderWees 🐘

parse params to dict

parent 0bcb5a39
......@@ -69,9 +69,10 @@ class CSVMixin(SimulationProblem):
logger.debug("CSVMixin: Read timeseries.")
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