Skip to content

v0.2.20

Pre-release
Pre-release

Choose a tag to compare

@aplowman aplowman released this 12 May 09:12
· 29 commits to master since this release

[0.2.20] - 2021.05.12

Added

  • Add Task.cleanup attribute that can be used to optionally specify a list of glob patterns, representing file names to remove at the end of Workflow.process_task_element. Useful for removing very large simulation outputs that are not required after MatFlow has extracted the requested data.
  • Add methods to Element object: get_file_lines and print_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_idx directly when importing parameters. This overrides any specified context.

Fixed

  • Catch ImportError and SyntaxError when 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_idx directly.