diff --git a/sarpy/io/general/nitf_elements/tres/tre_elements.py b/sarpy/io/general/nitf_elements/tres/tre_elements.py index 487ed0de..cc55ff3c 100644 --- a/sarpy/io/general/nitf_elements/tres/tre_elements.py +++ b/sarpy/io/general/nitf_elements/tres/tre_elements.py @@ -174,7 +174,7 @@ def to_dict(self): out = OrderedDict() for fld in self._field_ordering: val = getattr(self, fld) - if val is None or isinstance(val, (bytes, str, int)): + if val is None or isinstance(val, (bytes, str, int, float)): out[fld] = val elif isinstance(val, TREElement): out[fld] = val.to_dict()