Changeset 13941


Ignore:
Timestamp:
Nov 4, 2019 9:19:23 AM (2 weeks ago)
Author:
randersson
Message:

#5819 Updated two methods to return data of type string instead of bytes

Location:
PyFMI/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • PyFMI/trunk/CHANGELOG

    r13925 r13941  
    55      are now attributes that consists of strings instead of bytes in Python 3.
    66    * Fixed issue with set_string when input was a list of strings in Python 3.
     7    * Methods _get_types_platform and get_version now returns data of type string
     8      instead of bytes with Python 3.
    79    * Fixed other bytes/string incompabilities that caused exceptions with
    810      Python 3.
  • PyFMI/trunk/src/pyfmi/fmi.pyx

    r13849 r13941  
    12851285        """
    12861286        version = FMIL.fmi1_import_get_version(self._fmu)
    1287         return version
     1287        return decode(version)
    12881288
    12891289    def _get_version(self):
     
    27222722            model.types_platform
    27232723        """
    2724         return FMIL.fmi1_import_get_types_platform(self._fmu)
     2724        types_platform = FMIL.fmi1_import_get_types_platform(self._fmu)
     2725        return decode(types_platform)
    27252726
    27262727    types_platform = property(fget=_get_types_platform)
     
    30903091    def reset(self):
    30913092        """
    3092         This metod resets the FMU by first calling fmiTerminate and
     3093        This method resets the FMU by first calling fmiTerminate and
    30933094        fmiFreeModelInstance and then reloads the DLL and finally
    30943095        re-instantiates using fmiInstantiateModel.
Note: See TracChangeset for help on using the changeset viewer.