You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Resolve 30 skipped tests after all dependencies are installed and released correctly #90
I suggest that we move this issue to a later release because this can only be done when all of our other packages are released. Additionally, we are facing problems with sasmodels right now as discussed in #126
Here is the result of running pytest after the changes in #126:
========================================== warnings summary ==========================================
tests/test_sas.py::test_generator
tests/test_sas.py::testGenerator2
/Users/zhimingxu/miniconda3/envs/srfit-env/lib/python3.13/site-packages/pyopencl/cache.py:496: CompilerWarning: Non-empty compiler output encountered. Set the environment variable PYOPENCL_COMPILER_OUTPUT=1 to see more.
_create_built_program_from_source_cached(
tests/test_sas.py::test_generator
tests/test_sas.py::testGenerator2
/Users/zhimingxu/miniconda3/envs/srfit-env/lib/python3.13/site-packages/pyopencl/cache.py:500: CompilerWarning: Non-empty compiler output encountered. Set the environment variable PYOPENCL_COMPILER_OUTPUT=1 to see more.
prg.build(options_bytes, devices)
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
============================= 84 passed, 27 skipped, 4 warnings in 5.24s =============================
Although I'm still in progress with refactoring the code to use the updated sasview api, I dealt with the three tests in test_sas.py that were initially skipped. Next, there are four more tests in test_characteristicfunctions.py that has to be skipped because the calculate_ER function raises a NotImplementedError. This makes for a total of 7 tests total out of the original 30 skipped tests that are related to the sas issue.
The reason is that the current version of diffpy.structure accepts a filename string, not a filename pathlib.Path. It is also mentioned in diffpy/diffpy.structure#124
Great, thanks. Let's make sure that any unmerged issues from this list have their own issue on diffpy.structure or diffpy.srfit for us to fix later (for example, but not limited to, the sas issues). Then we can close this.
Activity
sbillinge commentedon Sep 26, 2024
I think we don't want to skip these, so we just have CI install these things?
bobleesj commentedon Sep 26, 2024
yes we don't want to, while we re-cookiecut, i will add these dependencies under
run.txtand see what happens.bobleesj commentedon Sep 29, 2024
Discussed with @sbillinge in #89
diffpy.structureunderrun-ext.txtsbillinge commentedon Sep 30, 2024
reopening. Let's close when it is merged into main and fully resolved.
zmx27 commentedon Aug 3, 2025
I suggest that we move this issue to a later release because this can only be done when all of our other packages are released. Additionally, we are facing problems with
sasmodelsright now as discussed in #126sbillinge commentedon Aug 3, 2025
Please can you review how many skips we have left now, and how many are related to the sas issue, just for review.
zmx27 commentedon Aug 4, 2025
Here is the result of running
pytestafter the changes in #126:Although I'm still in progress with refactoring the code to use the updated sasview api, I dealt with the three tests in
test_sas.pythat were initially skipped. Next, there are four more tests intest_characteristicfunctions.pythat has to be skipped because thecalculate_ERfunction raises aNotImplementedError. This makes for a total of 7 tests total out of the original 30 skipped tests that are related to the sas issue.ycexiao commentedon Aug 4, 2025
I have successfully run other tests. There are two similar errors
The reason is that the current version of
diffpy.structureaccepts a filename string, not a filenamepathlib.Path. It is also mentioned in diffpy/diffpy.structure#124sbillinge commentedon Aug 4, 2025
Great, thanks. Let's make sure that any unmerged issues from this list have their own issue on diffpy.structure or diffpy.srfit for us to fix later (for example, but not limited to, the sas issues). Then we can close this.
sbillinge commentedon Aug 6, 2025
closing as addressed by fixing or creating issues.