usnistgov / PyHyperScattering

Tools for hyperspectral x-ray and neutron scattering data loading, reduction, slicing, and visualization.
Other
7 stars 9 forks source link

Fix pytest fixture scoping for high memory usage. #68

Closed pbeaucage closed 1 year ago

pbeaucage commented 1 year ago

Fixes #66 by making the integrator fixtures inside tests\PFIntegrators.py have function scope, not module scope, and not be auto-used. This reduces GitHub Actions runner memory use enough to not trip limits.

In an unversioned but related change, I reduced the cyrsoxs test pack from 800 mb to 20 mb by reducing the number of energies, which should also speed up and reduce resource demand on the testing system.