MIT-PSFC / disruption-py

An open-source physics-based Scientific Framework for Disruption Analysis of Fusion Plasmas for AI/ML applications
https://mit-psfc.github.io/disruption-py/
MIT License
11 stars 0 forks source link

Fix merge error during testing against cache #309

Closed amdecker closed 2 months ago

amdecker commented 2 months ago

Problem

The test against cache threw an error when using a shot without cached sql data.

Proposed solution

A few small logic changes including

Verification

Run

poetry run python tests/test_against_cache.py --shot 177985

And the test will say the comparison failed because Have fresh data and Missing cache data.

All other tests pass/xfail appropriately.