Changelogs » Anypytools

PyUp Safety actively tracks 362,670 Python packages for vulnerabilities and notifies you when to upgrade.

Anypytools

1.7.5

**Fixed:**
  - Return code on linux is now correctly intercepted and reported.

1.7.4

**Fixed:**
  - Fixed pytest deprecation warnings.

1.7.3

**Fixed:**
  - Fixed a bug on linux when anybody was using it own internal Python hooks. Redirecting the output on the linux would cause
  python initialization to fail.

1.7.2

**Changed:**
  - Update documentation to use markdown.
  - Add error message when no files are found with
  `search_subdir` arguments (fixes [69](https://github.com/AnyBody-Research-Group/AnyPyTools/issues/69)).

1.7.1

**Fixed:**
  
  - Fix deprecation warnings in pytest plugin.

1.7.0

**Added:**
  
  - AnyPyTools can now be used on linux if the AnyBody Modeling System is installed using wine.

1.6.0

**Changed**:
  
  - The `to_dataframe()` methods have been updated.
  They now return a dataframe without an index by default.
  
  They also now support interpolation of the data.
  
  python
  app =  AnyPyProcess()
  results = app.start_marco(macro_list)
  
  df = results.to_dataframe(
  interp_var="Main.MyStudy.Output.Abscissa.t",
  interp_val=linspace(0,1,50)
  )
  
  
  **Added**:
  
  - Documentation on how to use the `to_dataframe()` method has been added to the tutorials.

1.5.0

Add methods for exporing simuation output as a pandas dataframe.
  
  python
  app =  AnyPyProcess()
  results = app.start_marco(macro_list)
  
  df = results.to_dataframe(index_var="Main.MyStudy.Output.Abscissa.t")
  
  
  The data has too be consistent across all macros. That means that the
  `index_var` must be present in all simulations. Also note that since
  pandas dataframes are 2D any 3D data will be flattened. For example 3D vectors
  which will be saved into three columns in the dataframe. E.g. `r[0]`, `r[1]`, `r[2]`.

1.4.7

Ensure that 'nan' values returned from AnyBody are treated as "float('nan')" when returned to Python.

1.4.6

Fixed a bug when using explicit logfile arguments to `start_macro` did not work with the
  `search_subdirs` argument.

1.4.5

Fixed a small issue with using AnyPyTools with pytest 6.0.0rc1

1.4.4

Adressed a deprecation warning from pytest plugin due to API change in pytest 5.4

1.4.3

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.

1.4.2

**Fixed:**
  
  - 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

1.4.1

**Fixed:**
  
  - Fixed a bug where log files would be removed even if the processing failed.

1.4.0

**Changed:**
  
  - Progressbars are now draw using [tqdm](https://github.com/tqdm/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-save` argument 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_logfile`, `task_macro` etc.) are now hidden by default in the
  when printing the object witht the default `__repr__()`
  - The `return_task_info` argument to `AnyPyProcess` class is now deprecated and task information is
  always include in the output.

1.3.0

**Changed:**
  
  - Changed the interface for the pytest plugin when saving hdf5 files from anybody tests.

1.2.2

**Fixed:**
  
  - Fixed problem with Ctrl-C events not working. `scipy.stats` used
  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 `anypytools.macro_commands`.

1.2.1

**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.

1.2.0

**Added:**
  
  - Pytest plugin: Option to set the `faltal_warnings` variable as a list
  to select the warnings which should trigger an error.
  
  **Removed:**
  
  - Pytest plugin: Deprecated the `warnings_to_include` variable. Instead use the `fatal_warnings`
  variable to select specific warnings.

1.1.5

**Fixed:**
  
  - Fix a bug with pytest plugin which caused expected errors to still show up in the error list.

1.1.4

**Removed:**
  
  - Removed an `--runslow` argument in pytest plugin api. This setting caused problem when the user defined it them self.

1.1.3

**Added:**
  
  - 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 `pytest.mark.slow`.

1.1.2

**Added:**
  
  - Add an option to the pytest plugin to set the `debug_mode` for the console application.
  
  **Fixed:**
  
  - 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.

1.1.1

**Fixed:**
  
  - Fix bug in pytest plugin when pytest-xdist is installed.

1.1

**Added:**
  
  - Added an `logfile` argument 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.
  - Added `debug_mode` option to the `AnyPyProcess` class. This will the debug mode of the
  console application (e.g. the `/deb ` flag).

1.0.1

**Fixed:**
  
  - Fixed a problem with pytest plugin when the pytest-xdist plugin is missing.

1.0.0

**Changed:**
  
  - Source code now formatted with [black](https://black.readthedocs.io/en/stable/) formatter.
  
  **Added:**
  
  - 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.
  
  **Removed:**
  
  - Support for legacy Python (2) was dropped. This also removes the dependency on the `future` package.
  
  **Fixed:**
  
  - Fixed a regression when accessing the output of the `start_macro` command
  (`AnyPyProcessOutputList`) for aggregated results across multiple macros.

0.14.1

**Fixed:**
  
  - Minor problem with building documentation with sphinx 1.8.

0.14

**Fixed:**
  
  - 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:**
  
  - Added a simple functionality to save hdf5 files from the pytest plugin.

0.13

**Fixed:**
  
  - Fix regression in for {class}`AnyPyTools.macro_comands.SetValue_random` which caused a
  crash when generating macros.

0.12

**Fixed:**
  
  - Missing newlines in error output from pytest plugin.
  - Fix a problem where the `ignore_errors` argument to {class}`AnyPyProcess()` could
  not filter warnings when they were considered as errors with the `fatal_warnings`
  arguments.
  
  **Changed:**
  
  - Better error message when `anybodycon.exe` can not be found.

0.11.1

**New:**
  
  - Pytest plugin adds support for specifying `warnings_to_include`,
  `fatal_warnings` in the header of AnyScript test files.
  
  **Changed:**
  
  - The output from pytest plugin is restructured to be more readable.

0.11.0

**New:**
  
  - Added option to the set the priority of the macro operations.
  The option is an argument to {class}`AnyPyProcess()`.
  
  python
  from anypytools import IDLE_PRIORITY_CLASS
  
  app = AnyPyProcess(priority = IDLE_PRIORITY_CLASS)
  
  
  Default is `BELOW_NORMAL_PRIORITY_CLASS`, and possible values are
  
  - `IDLE_PRIORITY_CLASS`
  - `BELOW_NORMAL_PRIORITY_CLASS`
  - `NORMAL_PRIORITY_CLASS`
  - `ABOVE_NORMAL_PRIORITY_CLASS`.
  
  - Added argument `fatal_warnings` to {class}`AnyPyProcess()` which
  treat warnings as errors when running macros.
  
  python
  app = AnyPyProces(warnings_to_include=['OBJ.MCH.KIN9'], fatal_warnings=True)
  
  
  The argument will only triggers for specific warnings given
  by `warnings_to_include` argument.
  
  **Changed:**
  
  - Macro operation now run with slightly lower priority (BELOW_NORMAL_PRIORITY_CLASS) to prevent
  Windows to become unusable when running many processes.
  
  **Fixed:**
  
  - 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 {func}`anypytools.tools.parse_anybodycon_output` has been
  rewritten to fix this.
  
  **Removed:**
  
  - The AnyScript Pygments plugin is no longer part of AnyPyTools. It now has its own library
  [pygments_anyscript](https://pypi.python.org/pypi/pygments-anyscript).

0.10.10

**fixed:**
  
  - Fix crash when `--define` option was not provided.

0.10.9

**New:**
  
  - Add option to the pytest plugin, to set the define statements with an argument to pytest.

0.10.8

**Fixed:**
  
  - Wrong error report when AnyBody exists abnormally during batch processing.

0.10.7

**Changed:**
  
  - Always append 'exit' command to all macros. Seems to solve problem with AMS not shutting down correctly.
  - Only enable pytest plugin on Windows platform

0.10.6

**Fixed:**
  
  - Bug where no AMS license was not detected as a failed macro.

0.10.5

**Fixed:**
  
  - Crash when the starting pytest plug-in when no AnyBody licenses are available
  
  **New:**
  
  - Pytest plugin support for the `ANYBODY_PATH_AMMR` path statement which will be
  used in the AMS 7.1

0.10.4

**Changed:**
  
  - 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.

0.10.3

**New:**
  
  - Update pytest plugin to support AMMR 2.0 Parameters. AMMR 1 parameters
  are still supported using `--ammr-version` argument to pytest.

0.10.2

**New:**
  
  - Support new BodyModel statements, which starts and end with a underscore.
  
  **Changed:**
  
  > - 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.
  - Refactor `_execute_anybodycon()` into a public function.
  
  **Removed:**
  
  > - Remove the deprecated `disp` argument to the `AnyPyProcess` class.

0.10.1

**Changed:**
  
  - Updates and fixes to the documentation website.
  - Added flake8 testing on Travis CI
  - Fix crash using pytest on systems where git is not installed.

0.10.0

**Merged pull requests:**
  
  - Fix PEP8 issues and remaining pytest issues
  [21](https://github.com/AnyBody-Research-Group/AnyPyTools/pull/21)
  ([melund](https://github.com/melund))
  - Update Documentaion and tutorials
  [20](https://github.com/AnyBody-Research-Group/AnyPyTools/pull/20)
  ([melund](https://github.com/melund))
  - Add SaveData MacroCommand for saving hdf5 files
  [19](https://github.com/AnyBody-Research-Group/AnyPyTools/pull/19)
  ([melund](https://github.com/melund))
  - Fix Crash on Python 2.7 when using h5py_wrapper
  [18](https://github.com/AnyBody-Research-Group/AnyPyTools/pull/18)
  ([melund](https://github.com/melund))
  - Setup Travis-CI for building documentation for publishing on github.io
  [13](https://github.com/AnyBody-Research-Group/AnyPyTools/pull/13)
  ([melund](https://github.com/melund))
  - Refactor the library for the new library documention.
  [12](https://github.com/AnyBody-Research-Group/AnyPyTools/pull/12)
  ([melund](https://github.com/melund))
  - Added `AnyPyProcessOutputList.tolist()` converting results to native Python
  [11](https://github.com/AnyBody-Research-Group/AnyPyTools/pull/11)
  ([KasperPRasmussen](https://github.com/KasperPRasmussen))
  
  \[Full Changelog\](<https://github.com/AnyBody-Research-Group/AnyPyTools/compare/0.9.7...master>)

0.9.7

\[Full Changelog\](<https://github.com/AnyBody-Research-Group/AnyPyTools/compare/0.9.6...0.9.7>)

0.9.6

\[Full Changelog\](<https://github.com/AnyBody-Research-Group/AnyPyTools/compare/0.9.5...0.9.6>)

0.9.5

\[Full Changelog\](<https://github.com/AnyBody-Research-Group/AnyPyTools/compare/0.9.4...0.9.5>)

0.9.4

\[Full Changelog\](<https://github.com/AnyBody-Research-Group/AnyPyTools/compare/0.9.3...0.9.4>)

0.9.3

\[Full Changelog\](<https://github.com/AnyBody-Research-Group/AnyPyTools/compare/0.9.2...0.9.3>)

0.9.2

\[Full Changelog\](<https://github.com/AnyBody-Research-Group/AnyPyTools/compare/0.9.1...0.9.2>)

0.9.1

\[Full Changelog\](<https://github.com/AnyBody-Research-Group/AnyPyTools/compare/0.9.0...0.9.1>)

0.9.0

\[Full Changelog\](<https://github.com/AnyBody-Research-Group/AnyPyTools/compare/0.8.3...0.9.0>)

0.8.3

\[Full Changelog\](<https://github.com/AnyBody-Research-Group/AnyPyTools/compare/0.8.2...0.8.3>)

0.8.2

\[Full Changelog\](<https://github.com/AnyBody-Research-Group/AnyPyTools/compare/0.8.1...0.8.2>)

0.8.1

\[Full Changelog\](<https://github.com/AnyBody-Research-Group/AnyPyTools/compare/0.8.0...0.8.1>)

0.8

The before times... See GitHub for a full
  \[Full Changelog\](<https://github.com/AnyBody-Research-Group/AnyPyTools/compare/0.1...0.8.0>)

0.8.0

\[Full Changelog\](<https://github.com/AnyBody-Research-Group/AnyPyTools/compare/0.7.9...0.8.0>)