PySDM icon indicating copy to clipboard operation
PySDM copied to clipboard

make all dimensional analysis tests use `physics` submodules directly rather than through `Formulae` (to avoid using `@pytest.mark.skipif("numba.config.DISABLE_JIT")`)

Open slayoo opened this issue 11 months ago • 2 comments

slayoo avatar Mar 15 '25 04:03 slayoo

For the record, one way of workarounding it, would be to access physics sybmodules (also) directly in unit tests, rather than through Formulae?

slayoo avatar Mar 26 '25 00:03 slayoo

Actually, accessing physics directly in unit tests (as done, e.g., here: #1565) makes the dimensional analysis checks work regardless of JIT settings. This makes it not necessary to repeat @pytest.mark.skipif("numba.config.DISABLE_JIT")for each test!

Renaming the test then...

slayoo avatar Apr 12 '25 22:04 slayoo