v0.2.20
Pre-release
Pre-release
[0.2.20] - 2021.05.12
Added
- Add
Task.cleanupattribute that can be used to optionally specify a list of glob patterns, representing file names to remove at the end ofWorkflow.process_task_element. Useful for removing very large simulation outputs that are not required after MatFlow has extracted the requested data. - Add methods to
Elementobject:get_file_linesandprint_file_lines, which take a file name and a slice of lines to get or print.
Changed
- Change working directory to element directory for invoking input/output/function mapper functions. This is required in some cases where a tool or script does not accept a file path as an argument.
- Allow specifying the
task_idxdirectly when importing parameters. This overrides any specifiedcontext.
Fixed
- Catch
ImportErrorandSyntaxErrorwhen trying to load extensions. - Import from the highest task index when importing a parameter that has been through a parameter-modifying task - fix #103. The can be overrode by specifying a
task_idxdirectly.