Skip to content

Document plotting helpers and move moving_average#385

Merged
mhellstr merged 2 commits intofix2026from
mhellstr/plotting-helpers
Mar 24, 2026
Merged

Document plotting helpers and move moving_average#385
mhellstr merged 2 commits intofix2026from
mhellstr/plotting-helpers

Conversation

@mhellstr
Copy link
Copy Markdown
Contributor

@mhellstr mhellstr commented Mar 24, 2026

Summary

  • add linear_fit_extrapolate_to_0 to the plotting helpers and document the new helper locations
  • add
    moving_average to scm.plams.tools.postprocess_results
  • add explicit import-path blocks to the utilities docs
    for each tools section
  • add/update unit tests for the plotting and postprocessing helpers

Validation

  • /home/hellstrom/adfhome/bin/ amspython -m pytest -q test_tools_plot.py test_tools_postprocess_results.py
  • PYTHONPATH=src /home/hellstrom/adfhome/bin/amspython -m mypy src/scm/plams/tools/plot.py src/scm/plams/tools/postprocess_results.py
  • IGNORE_IMPORT_ERRORS=true /home/hellstrom/adfhome/bin/amspython build_plams_doc

@mhellstr mhellstr force-pushed the mhellstr/plotting-helpers branch from ad88ce7 to a055f1e Compare March 24, 2026 06:44

If ``0`` is already present in ``x``, it is not appended a second time.
"""
try:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use @requires_optional_package("scipy") instead

@mhellstr mhellstr merged commit ea3941e into fix2026 Mar 24, 2026
21 checks passed
@mhellstr mhellstr deleted the mhellstr/plotting-helpers branch March 24, 2026 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants