lincc-frameworks / tdastro

MIT License
4 stars 0 forks source link

Add a helper function for looking at variables #154

Closed jeremykubica closed 1 month ago

jeremykubica commented 1 month ago

For common parameters, we might want to extract them from the GraphState without going through the node. This is useful in both logging and debugging. This PR adds a helper function that can extract (uniquely named) parameters from arbitrary nodes in the graph.

github-actions[bot] commented 1 month ago
Before [61bd1673] After [b9b5d07e] Ratio Benchmark (Parameter)
1.40±0.01s 1.40±0.01s 1 benchmarks.time_x1_from_hostmass
7.20±0.2ms 7.06±0.05ms 0.98 benchmarks.time_chained_evaluate

Click here to view all benchmarks.