Skip to content

Releases: AnyBody-Research-Group/AnyPyTools

AnyPyTools v1.20.4

15 Jan 11:43
9392475

Choose a tag to compare

What's Changed

  • Fix crash with pytest plugin when saving output to h5 files.
  • Fixed a bug where ctrl-c events were not propagated and were silenced. This
    fixes an issue where using AnyPyTools in tools liek pytest or snakemake made
    it difficult to interrupt the process.

AnyPyTools v.1.20.2

12 Jan 10:58
4d5d6ff

Choose a tag to compare

What's Changed

  • rollback automatic detection of snakemake env by @melund in #132
  • fix: Ensure ctrl-c are not suppressed by @melund in #134

Full Changelog: 1.20.2...1.20.3

AnyPyTools v.1.20.2

08 Dec 09:57
6ffd0b3

Choose a tag to compare

  • Fixed a deprecation warning from the pytest plugin, and enable pytest 9 support.

AnyPyTools v. 1.20.1

23 Nov 21:47
ff2e0af

Choose a tag to compare

  • Fixed an issue with AnyPyTools when running directly in the main thread
    of the snakemake workflow tool (i.e., directly in the snakefile). This fix forces
    AnyPyTools to use the standard Python subprocess module when running in snakemake.

AnyPyTools v. 1.20

19 Nov 12:57
24efd1e

Choose a tag to compare

  • Fixed a problem that prevented multiple AnyPyTools instances from running
    simultaneously in the same process. Previously, other running AnyBody instances
    were shut down when the first AnyPyProcess.start_macro() call finished.

AnyPyTools v.1.19.2

28 Oct 15:03
1b1c5a9

Choose a tag to compare

AnyPyTools v.1.19.2

  • Fixed missing widget information is user-guide documentation.

1.19.1

28 Oct 11:45
4cb0901

Choose a tag to compare

AnyPyTools v.1.19.1

  • Fixed minor formatting issues in documentation.

AnyPyTools v1.19

28 Oct 11:28
aa196e7

Choose a tag to compare

Changed:

  • The results.to_dataframe() no longer returns the special task_* (meta data) in the output columns.
    To get the extra task info use results.to_dataframe(*, include_task_info=True)
  • The documentation page updated.

Added:

  • New macro_commands.ExtendOutput() helper macro that can add arbitrary values
    to the results output. This allows adding values that don't need to exist as
    variables in the AnyBody model. This is useful for adding extra metadata that will
    appear in the results output when creating the macros.

    macro = [
      mc.Load("MyModel.main.any"),
      mc.ExtendOutput("SubjectID", "S001"),
      mc.ExtendOutput("SubjectHeight", "1.8"),
    ]
    results = app.start_macro(macro)
    assert results[0]["SubjectID"] == "S001"
    assert results[0]["SubjectHeight"] == 1.8
  • results.to_dataframe() has a new argument
    exclude_task_info which can exclude task information (variables starting
    with 'task_') when exporting results to a dataframe

AnyPyTools v1.18

16 Oct 18:37
a3fc1a9

Choose a tag to compare

Added:

  • New macro_commands.Export() helper class that can save output with custom names.
    Similar to the "Dump" command, but allows variables to be saved with arbitrary names.

    See the following example:

    macro = [
      mc.Load("MyModel.main.any"),
      mc.RunOperation("MyModel.Study.Kinematics"),
      mc.Export("Main.Study.Output.EKin", "NewShortName"),
    ]
    results = app.start_macro(macro)

    The Main.Study.Output.EKin variable will be available in the results as results[0]['NewShortName'] instead of
    using the full variable name.

    This also allows the same variable to be exported multiple times during a
    single simulation with different names in the output. This was not possible
    with the "Dump" command, as only the last exported variable would be available in the
    results.

Changed:

  • When exporting a whole folder hierarchy, the folders themselves will no longer
    appear in the results as Main.MyFolder = "...". Instead, only actual values
    and strings will be included in the output.
  • AnyPyTools now requires a minimum of Python 3.10.
  • The helper macro class "OperationRun" has been renamed to "RunOperation". The old name still works for backwards compatibility.

AnyPyTools v.1.17.0

23 Jun 07:52
4511ef2

Choose a tag to compare

Changed:

  • Temporary macro files *.anymcr are now always deleted after a run.