Loading DMT/core/mc_parameter.py +14 −0 Original line number Diff line number Diff line Loading @@ -1042,6 +1042,20 @@ class McParameterCollection(object): return self._values def to_dict(self): """Returns itself as a dictionary with name:value only fitting to unpack into a function call. Returns ------- dict {name: value} """ dict_a = {} for para in self.paras: dict_a[para.name] = para.value return dict_a def print_parameters(self, paras=None, line_break=""): """Just some pretty printing Loading DMT/core/sweep.py +1 −1 Original line number Diff line number Diff line Loading @@ -554,7 +554,7 @@ class Sweep(object): # add the output variables and fill them with Nans------------------------------------------------- for output in self.outputdef: if not output in self.df.columns: self.df[output] = np.NaN self.df[output] = np.nan # add the optional variables and fill them--------------------------------------------------------- for key, value in self.othervar.items(): Loading setup.py +1 −1 Original line number Diff line number Diff line Loading @@ -48,7 +48,7 @@ setuptools.setup( include_package_data=True, install_requires=[ "scipy", "numpy<2.0.0", "numpy", "scikit-rf", "reprint", "pandas", Loading Loading
DMT/core/mc_parameter.py +14 −0 Original line number Diff line number Diff line Loading @@ -1042,6 +1042,20 @@ class McParameterCollection(object): return self._values def to_dict(self): """Returns itself as a dictionary with name:value only fitting to unpack into a function call. Returns ------- dict {name: value} """ dict_a = {} for para in self.paras: dict_a[para.name] = para.value return dict_a def print_parameters(self, paras=None, line_break=""): """Just some pretty printing Loading
DMT/core/sweep.py +1 −1 Original line number Diff line number Diff line Loading @@ -554,7 +554,7 @@ class Sweep(object): # add the output variables and fill them with Nans------------------------------------------------- for output in self.outputdef: if not output in self.df.columns: self.df[output] = np.NaN self.df[output] = np.nan # add the optional variables and fill them--------------------------------------------------------- for key, value in self.othervar.items(): Loading
setup.py +1 −1 Original line number Diff line number Diff line Loading @@ -48,7 +48,7 @@ setuptools.setup( include_package_data=True, install_requires=[ "scipy", "numpy<2.0.0", "numpy", "scikit-rf", "reprint", "pandas", Loading