v2.0.9 - Patch Release
Release Date: 2025-05-19
Enhancements & Fixes
- Included version = "2.0.9" in trustpy/init.py for programmatic version access:
import trustpy
print(trustpy.__version__) # 2.0.9- Added all = ['NTS', 'CNTS'] to restrict from trustpy import * to only public classes.
- 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.
- In README documentation clarified where plots are saved, added instructions to run tests post-install.
- Updated incorrect error string in CNTS init from 'Predictions must be a 1D array' → 'Predictions must be a 2D array'.
- alpha, beta, and other optional parameters in NTS and CNTS constructors must now be passed by keyword.