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
A download test which renames a file at run-time, test_data.py::TestData::test_not_allow_download_raises, fails in the hyperspy-extension-list CI. Discovered in hyperspy/hyperspy-extensions-list#65, with this log.
Relevant part of log.
__________ERRORatsetupofTestData.test_not_allow_download_raises___________@pytest.fixturedefnickel_ebsd_large_h5ebsd_renamed() ->Generator[Path, None, None]:
f1=Path(marshall.path) /"data/nickel_ebsd_large/patterns.h5">f2=f1.rename(f1.with_suffix(".bak"))
/home/runner/miniconda3/envs/test/lib/python3.11/site-packages/kikuchipy/conftest.py:367:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self=PosixPath('/home/runner/.cache/kikuchipy/develop/data/nickel_ebsd_large/patterns.h5')
target=PosixPath('/home/runner/.cache/kikuchipy/develop/data/nickel_ebsd_large/patterns.bak')
defrename(self, target):
""" Rename this path to the target path. The target path may be absolute or relative. Relative paths are interpreted relative to the current working directory, *not* the directory of the Path object. Returns the new Path instance pointing to the target path. """>os.rename(self, target)
EFileNotFoundError: [Errno2] Nosuchfileordirectory: '/home/runner/.cache/kikuchipy/develop/data/nickel_ebsd_large/patterns.h5'->'/home/runner/.cache/kikuchipy/develop/data/nickel_ebsd_large/patterns.bak'/home/runner/miniconda3/envs/test/lib/python3.11/pathlib.py:1175: FileNotFoundError===============================warningssummary===============================
../../../miniconda3/envs/test/lib/python3.11/site-packages/traits/observation/_generated_parser.py:258/home/runner/miniconda3/envs/test/lib/python3.11/site-packages/traits/observation/_generated_parser.py:258: DeprecationWarning: module'sre_parse'isdeprecatedimportsre_parse
../../../miniconda3/envs/test/lib/python3.11/site-packages/traits/observation/_generated_parser.py:259/home/runner/miniconda3/envs/test/lib/python3.11/site-packages/traits/observation/_generated_parser.py:259: DeprecationWarning: module'sre_constants'isdeprecatedimportsre_constantstests/test_indexing/test_merge_crystal_maps.py::TestMergeCrystalMaps::test_merge_crystal_maps_1d[map_shape1-1-phase_names1]
tests/test_indexing/test_merge_crystal_maps.py::TestMergeCrystalMaps::test_merge_crystal_maps_1d[map_shape1-1-phase_names1]
tests/test_indexing/test_merge_crystal_maps.py::TestMergeCrystalMaps::test_merge_crystal_maps_1d[map_shape1-1-phase_names1]
tests/test_indexing/test_merge_crystal_maps.py::TestMergeCrystalMaps::test_merge_crystal_maps_1d[map_shape3-1-phase_names3]
tests/test_indexing/test_merge_crystal_maps.py::TestMergeCrystalMaps::test_merge_crystal_maps_1d[map_shape3-1-phase_names3]
tests/test_indexing/test_merge_crystal_maps.py::TestMergeCrystalMaps::test_merge_crystal_maps_1d[map_shape3-1-phase_names3]
/home/runner/miniconda3/envs/test/lib/python3.11/site-packages/kikuchipy/tests/test_indexing/test_merge_crystal_maps.py:71: DeprecationWarning: Conversionofanarraywithndim>0toascalarisdeprecated, andwillerrorinfuture. Ensureyouextractasingleelementfromyourarraybeforeperformingthisoperation. (DeprecatedNumPy1.25.)
desired_scores[i] =xmap[i].prop[scores_prop]
tests/test_indexing/test_merge_crystal_maps.py::TestMergeCrystalMaps::test_merge_crystal_maps_1d[map_shape1-1-phase_names1]
tests/test_indexing/test_merge_crystal_maps.py::TestMergeCrystalMaps::test_merge_crystal_maps_1d[map_shape1-1-phase_names1]
tests/test_indexing/test_merge_crystal_maps.py::TestMergeCrystalMaps::test_merge_crystal_maps_1d[map_shape1-1-phase_names1]
tests/test_indexing/test_merge_crystal_maps.py::TestMergeCrystalMaps::test_merge_crystal_maps_1d[map_shape3-1-phase_names3]
tests/test_indexing/test_merge_crystal_maps.py::TestMergeCrystalMaps::test_merge_crystal_maps_1d[map_shape3-1-phase_names3]
tests/test_indexing/test_merge_crystal_maps.py::TestMergeCrystalMaps::test_merge_crystal_maps_1d[map_shape3-1-phase_names3]
/home/runner/miniconda3/envs/test/lib/python3.11/site-packages/kikuchipy/tests/test_indexing/test_merge_crystal_maps.py:72: DeprecationWarning: Conversionofanarraywithndim>0toascalarisdeprecated, andwillerrorinfuture. Ensureyouextractasingleelementfromyourarraybeforeperformingthisoperation. (DeprecatedNumPy1.25.)
desired_idx[i] =xmap[i].prop[sim_idx_prop]
tests/test_indexing/test_merge_crystal_maps.py::TestMergeCrystalMaps::test_merge_crystal_maps_2d[map_shape1-1-phase_names1-1]
tests/test_indexing/test_merge_crystal_maps.py::TestMergeCrystalMaps::test_merge_crystal_maps_2d[map_shape1-1-phase_names1-1]
tests/test_indexing/test_merge_crystal_maps.py::TestMergeCrystalMaps::test_merge_crystal_maps_2d[map_shape1-1-phase_names1-1]
tests/test_indexing/test_merge_crystal_maps.py::TestMergeCrystalMaps::test_merge_crystal_maps_2d[map_shape3-1-phase_names3-1]
tests/test_indexing/test_merge_crystal_maps.py::TestMergeCrystalMaps::test_merge_crystal_maps_2d[map_shape3-1-phase_names3-1]
tests/test_indexing/test_merge_crystal_maps.py::TestMergeCrystalMaps::test_merge_crystal_maps_2d[map_shape3-1-phase_names3-1]
/home/runner/miniconda3/envs/test/lib/python3.11/site-packages/kikuchipy/tests/test_indexing/test_merge_crystal_maps.py:156: DeprecationWarning: Conversionofanarraywithndim>0toascalarisdeprecated, andwillerrorinfuture. Ensureyouextractasingleelementfromyourarraybeforeperformingthisoperation. (DeprecatedNumPy1.25.)
desired_scores[j] =xmap[idx].prop[scores_prop]
tests/test_indexing/test_merge_crystal_maps.py::TestMergeCrystalMaps::test_merge_crystal_maps_2d[map_shape1-1-phase_names1-1]
tests/test_indexing/test_merge_crystal_maps.py::TestMergeCrystalMaps::test_merge_crystal_maps_2d[map_shape1-1-phase_names1-1]
tests/test_indexing/test_merge_crystal_maps.py::TestMergeCrystalMaps::test_merge_crystal_maps_2d[map_shape1-1-phase_names1-1]
tests/test_indexing/test_merge_crystal_maps.py::TestMergeCrystalMaps::test_merge_crystal_maps_2d[map_shape3-1-phase_names3-1]
tests/test_indexing/test_merge_crystal_maps.py::TestMergeCrystalMaps::test_merge_crystal_maps_2d[map_shape3-1-phase_names3-1]
tests/test_indexing/test_merge_crystal_maps.py::TestMergeCrystalMaps::test_merge_crystal_maps_2d[map_shape3-1-phase_names3-1]
/home/runner/miniconda3/envs/test/lib/python3.11/site-packages/kikuchipy/tests/test_indexing/test_merge_crystal_maps.py:157: DeprecationWarning: Conversionofanarraywithndim>0toascalarisdeprecated, andwillerrorinfuture. Ensureyouextractasingleelementfromyourarraybeforeperformingthisoperation. (DeprecatedNumPy1.25.)
desired_idx[j] =xmap[idx].prop[sim_idx_prop]
tests/test_io/test_kikuchipy_h5ebsd.py::TestKikuchipyH5EBSD::test_save_load_0d_nav[h5]
/home/runner/miniconda3/envs/test/lib/python3.11/site-packages/orix/crystal_map/crystal_map.py:288: DeprecationWarning: Callingnonzeroon0darraysisdeprecated, asitbehavessurprisingly. Use`atleast_1d(cond).nonzero()`iftheoldbehaviorwasintended. Ifthecontextofthiswarningisoftheform`arr[nonzero(cond)]`, justuse`arr[cond]`.
The test will be skipped there until it is fixed in a release here.
The text was updated successfully, but these errors were encountered:
A download test which renames a file at run-time,
test_data.py::TestData::test_not_allow_download_raises
, fails in the hyperspy-extension-list CI. Discovered in hyperspy/hyperspy-extensions-list#65, with this log.Relevant part of log.
The test will be skipped there until it is fixed in a release here.
The text was updated successfully, but these errors were encountered: