Skip to content

Releases: pace-neutrons/light_python_wrapper

v0.4.0

01 Dec 11:44
Compare
Choose a tag to compare
v0.4.0 Pre-release
Pre-release
  • Improvements:

    • Automatic conversion to int using the function signature will now use the type
      annotations, then the default value if no annotation is present. Optional[int]
      values will be converted to int.
  • Bug fixes:

    • In some distributions of MATLAB the automatic conversion from Numpy ndarray using
      MATLAB's double does not work. If it fails, convert to a regular py.array
      first, this should be more reliable.

v0.3.0

10 Aug 10:56
Compare
Choose a tag to compare
v0.3.0 Pre-release
Pre-release
  • Bug fixes

    • Check for correct Matlab version (>=2019a) when converting Numpy arrays with
      double. Converting with double works for Numpy arrays with >=2019a,
      but only works for native py.array.array arrays in 2018a/b.
  • Improvements

    • Only warn once if converting a Numpy array in an old Matlab version (less than 2019a)
    • Only determine Matlab version once for increased performance

New help and doc functions

13 Jan 11:45
Compare
Choose a tag to compare
Pre-release

This releases changes the API - now in addition to the pyobj property, subclasses must declare a classname which is a string being the Python class name of the wrapped class, obtained from type(obj) in Python.

This change enables the new overloaded help and doc functions to obtain a reference to the Python objects to get docstrings using the pydoc system. In addition it means that users no longer have to define the helpobj property as this can now be obtained from the classname.

Patch release to add warnings

14 Jun 12:50
Compare
Choose a tag to compare
Pre-release

Adds a static method to direct Python warnings to sys.stdout which is mirrored by Matlab, unlike sys.stderr.

First alpha release

01 Mar 13:03
Compare
Choose a tag to compare
First alpha release Pre-release
Pre-release

First alpha release.

  • Allows Matlab to wrap arbitrary Python classes.
  • Allows saving Python classes to mat files (data is pickled so any classes which cannot be pickled will not be saved correctly).
  • Overloads help command to print pydoc help text in Matlab.