Skip to content

v2.0.9 - Patch Release

Choose a tag to compare

@yaniker yaniker released this 19 May 20:46
· 113 commits to main since this release
9ff4d53

Release Date: 2025-05-19

Enhancements & Fixes

  1. Included version = "2.0.9" in trustpy/init.py for programmatic version access:
import trustpy
print(trustpy.__version__)  # 2.0.9
  1. Added all = ['NTS', 'CNTS'] to restrict from trustpy import * to only public classes.
  2. Before writing plots or CSV files, the code now checks for write permissions using:
if not os.access(output_dir, os.W_OK):
    raise PermissionError(...)

This helps prevent runtime crashes on read-only filesystems or restricted environments.

  1. In README documentation clarified where plots are saved, added instructions to run tests post-install.
  2. Updated incorrect error string in CNTS init from 'Predictions must be a 1D array' → 'Predictions must be a 2D array'.
  3. alpha, beta, and other optional parameters in NTS and CNTS constructors must now be passed by keyword.