• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pyiron / pyiron_workflow / 10171148434

30 Jul 2024 09:59PM UTC coverage: 92.442% (+0.05%) from 92.392%
10171148434

push

github

web-flow
[patch] Introduce caching (#395)

* Refactor: output signals to emission

Wrap them in `emit()` and `emitting_channels` instead of manually calling them. This lets us tighten up If-like nodes too.

* Introduce caching

To shortcut actually running a node and just return existing output if its cached input matches its current input (by `==` test)

* Extend speedup test to include caching

* Add docstring

* Expose use_cache as a class attribute

So it can be set at class definition time, even by decorators

* Discuss caching in the deepdive

* Format black

---------

Co-authored-by: pyiron-runner <pyiron@mpie.de>

3241 of 3506 relevant lines covered (92.44%)

0.92 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

94.57
/node.py


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc