AnyPyTools Change Log¶
Fixed regression with Python 3.8 where model output could not be serialzed. This happend because empty folders (represented by “…”) would become the python elipsis object.
A potential bug when using the pytest plugin and expected errors in AnyScript test files.
Fixed a bug with the pytest plugin not working with pytest 5.4
Fixed a bug where log files would be removed even if the processing failed.
Changed: - Progressbars are now draw using tqdm. This enables error
messages while the progress bar is rendering, and solves a problem with detecting when the code is running in Jupyter notebook and not.
Running the pytest plugin with the
--anytest-saveargument now deselects all tests which doesn’t save data to HDF 5 files.
New option for running the GUI version of AMS with AnyPyTools instead of the console.
Task meta info (i.e.
task_macroetc.) are now hidden by default in the when printing the object witht the default __repr__()
AnyPyProcessclass is now deprecated and task information is always include in the output.
Changed: - Changed the interface for the pytest plugin when saving hdf5 files from anybody tests.
- Fixed problem with Ctrl-C events not working.
some fortran routines which hijacked the key event and caused a crash instead.
Fixed an issue with process time not being reported correctly.
Fixed an issue with macros which were a mixture of normal strings and macro-command helper classes from
Fixed: - Add a work-around for a bug in AnyBody < 7.2.2 which cause the AnyBody console
to start in interactive mode when launched from AnyPyTools. This could cause the console application to hang if something fails in AnyBody.
- Pytest plugin: Option to set the
faltal_warnings variable as a list
to select the warnings which should trigger an error.
Pytest plugin: Deprecated the
warnings_to_includevariable. Instead use the fatal_warnings variable to select specific warnings.
Fix a bug with pytest plugin which caused expected errors to still show up in the error list.
--runslowargument in pytest plugin api. This setting caused problem when the user defined it them self.
Add an option to add pytest markers to in the AnyScript test files. This is done by setting
pytest_markers=["slow"]in in the header. It is the same as decorating Python tests with
Add an option to the pytest plugin to set the
debug_modefor the console application.
Pytest plugin can now handle new error messages from the upcoming AnyBody Modeling System 7.2.
Deprecation warnings from using abstract base classes in the Python collection module.
Fix bug in pytest plugin when pytest-xdist is installed.
logfileargument to the
app.start_macro()function. This allow for setting an explicit name for a log file. If
start_macro()runs muliple instances the logfile will have the task number appended.
debug_modeoption to the
AnyPyProcessclass. This will the debug mode of the console application (e.g. the
Fixed a problem with pytest plugin when the pytest-xdist plugin is missing.
Source code now formatted with black formatter.
Added a feature to the pytest plugin to save HDF5 files when running AnyScript tests. The purpose of this feature is to easily generated data for comparing the simulation of two different models or the same model with a different version of AMS.
Support for legacy Python (2) was dropped. This also removes the dependency on the
Fixed a regression when accessing the output of the
AnyPyProcessOutputList) for aggregated results across multiple macros.
Minor problem with building documentation with sphinx 1.8.
Make sure anypytools works in IPython/Jupyter even when ipywidgets is not installed.
Fix problem with dump’ing variables which are references in the AnyBody Output structure. Now the variables will have the same name in the output as given in the dump command.
Fix problem with log-files beeing removed if AnyBody crashed or exited unexpectedly.
Added a simple functionality to save hdf5 files from the pytest plugin.
Fix regression in for
AnyPyTools.macro_comands.SetValue_randomwhich caused a crash when generating macros.
Missing newlines in error output from pytest plugin.
Fix a problem where the
AnyPyProcess()could not filter warnings when they were considered as errors with the
Better error message when
anybodycon.execan not be found.
Pytest plugin adds support for specifying
fatal_warningsin the header of AnyScript test files.
The output from pytest plugin is restructured to be more readable.
Added option to the set the priority of the macro operations. The option is an argument to
from anypytools import IDLE_PRIORITY_CLASS app = AnyPyProcess(priority = IDLE_PRIORITY_CLASS)
BELOW_NORMAL_PRIORITY_CLASS, and possible values are
AnyPyProcess()which treat warnings as errors when running macros.
app = AnyPyProces(warnings_to_include=['OBJ.MCH.KIN9'], fatal_warnings=True)
The argument will only triggers for specific warnings given by
Macro operation now run with slightly lower priority (BELOW_NORMAL_PRIORITY_CLASS) to prevent Windows to become unusable when running many processes.
Fixed a bug preventing really large variables to be read by AnyPyTools. The AnyBody Modeling System could split really large data matrixes across several lines in the log files which meant they were not picked up. The function
anypytools.tools.parse_anybodycon_output()has been rewritten to fix this.
The AnyScript Pygments plugin is no longer part of AnyPyTools. It now has its own library pygments_anyscript.
Fix crash when
--defineoption was not provided.
Add option to the pytest plugin, to set the define statements with an argument to pytest.
Wrong error report when AnyBody exists abnormally during batch processing.
Always append ‘exit’ command to all macros. Seems to solve problem with AMS not shutting down correctly.
Only enable pytest plugin on Windows platform
Bug where no AMS license was not detected as a failed macro.
Crash when the starting pytest plug-in when no AnyBody licenses are available
Pytest plugin support for the
ANYBODY_PATH_AMMRpath statement which will be used in the AMS 7.1
The pytest plugin can now get the BM configurations directly from the AMMR if they are availble. The will be for AMMR 2. This will eliminate the problem of keeping AnyPyTools in sync with the AMMR.
Update pytest plugin to support AMMR 2.0 Parameters. AMMR 1 parameters are still supported using
--ammr-versionargument to pytest.
Support new BodyModel statements, which starts and end with a underscore.
Improved exception handling when trying to access data which is not avaible in the output.
Detect if AnyBodyCon exited from a license problem and report that in the log files.
_execute_anybodycon()into a public function.
Remove the deprecated
dispargument to the
Updates and fixes to the documentation website.
Added flake8 testing on Travis CI
Fix crash using pytest on systems where git is not installed.
Merged pull requests:
The before times… See GitHub for a full [Full Changelog](https://github.com/AnyBody-Research-Group/AnyPyTools/compare/0.1…0.8.0)