Skip to content

Release 3.7.0

Choose a tag to compare

@fsoubelet fsoubelet released this 25 Apr 19:39
· 18 commits to master since this release
0666329

Release 3.7.0 adds some functionality with a reworked TfsCollection class.

  • Changed:

    • The old write_to and get_filename of the TfsCollection class have been renamed to _write_to and _get_filename as they
      could only be accessed internally (due to the input parameters not available to the user).
    • The column which is set as index can now also be defined manually by overwriting the INDEX attribute, which defaults to "NAME".
    • The define properties functions have been moved into the Tfs-attribute marker class.
    • The MaybeCall class returns None in case of attribute not found, instead of previously an empty function.
  • Added:

    • A get_filename(name) function to TfsCollection which returns the associated filename to the property with name name.
    • A get_path(name) function to TfsCollection which returns the actual file path of the property name.
    • A flush() function to TfsCollection which writes the current state of the TfsDataFrames into their respective files.
    • A write_tfs(filename, data_frame) function to TfsCollection which writes the data_frame to self.directory with the given filename.
    • A defined_properties property to TfsCollection which returns a tuple of strings of the defined properties on this instance.
    • A filenames property to TfsCollection which is a convenience wrapper for get_filename():

For details see the API documentation.

What's Changed

  • TFSCollections cleaned and with paths by @JoschD in #122

Full Changelog: v3.6.0...v3.7.0