diff --git a/src/confighandler/controller/fields/FieldFloat.py b/src/confighandler/controller/fields/FieldFloat.py index 717751355a70c3c5bd9e40dfda6237eccd736b72..40f1b1a030716c9a7e9caed652905e9f409f4e17 100644 --- a/src/confighandler/controller/fields/FieldFloat.py +++ b/src/confighandler/controller/fields/FieldFloat.py @@ -20,3 +20,7 @@ class FieldFloat(Field): def _yaml_repr(self): return float(self.value) + + def __float__(self): + # return str(self.as_dataframe()) + return float(self.get()) \ No newline at end of file diff --git a/src/confighandler/controller/fields/FieldInt.py b/src/confighandler/controller/fields/FieldInt.py index 2309f47fea2633c236448e1c2d644b0bed01747b..47e09cb7a2814e6a7aecb44a5651102f26be762e 100644 --- a/src/confighandler/controller/fields/FieldInt.py +++ b/src/confighandler/controller/fields/FieldInt.py @@ -20,3 +20,7 @@ class FieldInt(Field): def _yaml_repr(self): return int(self.value) + + def __int__(self): + # return str(self.as_dataframe()) + return int(self.get()) \ No newline at end of file diff --git a/src/confighandler/controller/fields/FieldList.py b/src/confighandler/controller/fields/FieldList.py index 07e03eed13f083f3fdfaa468ea3871a28f9000fc..01567e38de2d3b692cd4a29b5f89744dd70e41ab 100644 --- a/src/confighandler/controller/fields/FieldList.py +++ b/src/confighandler/controller/fields/FieldList.py @@ -21,3 +21,7 @@ class FieldList(Field): def _yaml_repr(self): return str(self.value) + + def __iter__(self): + # return str(self.as_dataframe()) + return list(self.get()) \ No newline at end of file