Skip to content

v0.3.0

Compare
Choose a tag to compare
@ClaasRostock ClaasRostock released this 09 Jan 14:57
· 225 commits to main since this release

v0.3.0 is a major update comprising one breaking change (see below).
Users are encouraged to update to this version.

Breaking Change

  • Moved classes 'Case' and 'Parameter' from farn.farn to farn.core

    As a consequence, if you imported these classes in your code, you need to
    adapt the respective import statements. I.e.
    old
    from farn.farn import Case, Parameter
    new
    from farn.core import Case, Parameter

Added

  • Added a 'Cases' class, acting as a container for Case instances.
    Cases inherits from List[Case] and can hence transparently be used as a Python list type.
    However, Cases provides additional convenience methods to export the attributes of all contained Case instances to a pandas DataFrame (Cases.to_pandas()) or to a numpy ndarray (Cases.to_numpy())
    Cases is located in the farn.core sub-package and can be imported from there, i.e:
    from farn.core import Case, Cases, Parameter