runtraj.identity.stage_hash#
- runtraj.identity.stage_hash(name, settings, result_hash, reads=None, result='particles')[source]#
Return the hash of the results of the stage name with settings.
A stage’s results are named by what they were made from and with: the hash of the transport model’s result (result_hash, keyed by its type result,
particlesunless the stage reads another), the hash of each stage it reads (reads, by the stage’s name), and the stage’s own settings record (runtraj.stages.Stage.settings()). So results made from other particles, or from another stage’s results under other settings, never share a folder.Examples
>>> stage_hash("footprint", {"tres": "1h"}, "a3f9c2") == settings_hash( ... {"particles": "a3f9c2", "footprint": {"tres": "1h"}} ... ) True