Skip to content

Use numpy.can_cast instead of casting and checking #8108

Use numpy.can_cast instead of casting and checking

Use numpy.can_cast instead of casting and checking #8108

Triggered via pull request May 11, 2023 06:39
Status Failure
Total duration 29m 52s
Artifacts 10
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

ci.yaml

on: pull_request
detect ci trigger
3s
detect ci trigger
Event File
3s
Event File
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

91 errors
ubuntu-latest py3.9 bare-minimum: xarray/tests/test_coding_times.py#L595
test_cf_timedelta[1D-days-numbers0] AssertionError: assert dtype('int64') == dtype('float64') + where dtype('int64') = array(1).dtype + and dtype('float64') = array(1.).dtype
ubuntu-latest py3.9 bare-minimum: xarray/tests/test_coding_times.py#L595
test_cf_timedelta[timedeltas1-days-numbers1] AssertionError: assert dtype('int64') == dtype('float64') + where dtype('int64') = array([1, 2, 3]).dtype + and dtype('float64') = array([1., 2., 3.]).dtype
ubuntu-latest py3.9 bare-minimum: xarray/tests/test_coding_times.py#L595
test_cf_timedelta[1h-hours-numbers2] AssertionError: assert dtype('int64') == dtype('float64') + where dtype('int64') = array(1).dtype + and dtype('float64') = array(1.).dtype
ubuntu-latest py3.9 bare-minimum: xarray/tests/test_coding_times.py#L595
test_cf_timedelta[1ms-milliseconds-numbers3] AssertionError: assert dtype('int64') == dtype('float64') + where dtype('int64') = array(1).dtype + and dtype('float64') = array(1.).dtype
ubuntu-latest py3.9 bare-minimum: xarray/tests/test_coding_times.py#L595
test_cf_timedelta[1us-microseconds-numbers4] AssertionError: assert dtype('int64') == dtype('float64') + where dtype('int64') = array(1).dtype + and dtype('float64') = array(1.).dtype
ubuntu-latest py3.9 bare-minimum: xarray/tests/test_coding_times.py#L595
test_cf_timedelta[1ns-nanoseconds-numbers5] AssertionError: assert dtype('int64') == dtype('float64') + where dtype('int64') = array(1).dtype + and dtype('float64') = array(1.).dtype
ubuntu-latest py3.9 bare-minimum
Process completed with exit code 1.
ubuntu-latest py3.9: xarray/tests/test_coding_times.py#L595
test_cf_timedelta[1D-days-numbers0] AssertionError: assert dtype('int64') == dtype('float64') + where dtype('int64') = array(1).dtype + and dtype('float64') = array(1.).dtype
ubuntu-latest py3.9: xarray/tests/test_coding_times.py#L595
test_cf_timedelta[timedeltas1-days-numbers1] AssertionError: assert dtype('int64') == dtype('float64') + where dtype('int64') = array([1, 2, 3]).dtype + and dtype('float64') = array([1., 2., 3.]).dtype
ubuntu-latest py3.9: xarray/tests/test_coding_times.py#L595
test_cf_timedelta[1h-hours-numbers2] AssertionError: assert dtype('int64') == dtype('float64') + where dtype('int64') = array(1).dtype + and dtype('float64') = array(1.).dtype
ubuntu-latest py3.9: xarray/tests/test_coding_times.py#L595
test_cf_timedelta[1ms-milliseconds-numbers3] AssertionError: assert dtype('int64') == dtype('float64') + where dtype('int64') = array(1).dtype + and dtype('float64') = array(1.).dtype
ubuntu-latest py3.9: xarray/tests/test_coding_times.py#L595
test_cf_timedelta[1us-microseconds-numbers4] AssertionError: assert dtype('int64') == dtype('float64') + where dtype('int64') = array(1).dtype + and dtype('float64') = array(1.).dtype
ubuntu-latest py3.9: xarray/tests/test_coding_times.py#L595
test_cf_timedelta[1ns-nanoseconds-numbers5] AssertionError: assert dtype('int64') == dtype('float64') + where dtype('int64') = array(1).dtype + and dtype('float64') = array(1.).dtype
ubuntu-latest py3.9
Process completed with exit code 1.
ubuntu-latest py3.11: xarray/tests/test_coding_times.py#L595
test_cf_timedelta[1D-days-numbers0] AssertionError: assert dtype('int64') == dtype('float64') + where dtype('int64') = array(1).dtype + and dtype('float64') = array(1.).dtype
ubuntu-latest py3.11: xarray/tests/test_coding_times.py#L595
test_cf_timedelta[timedeltas1-days-numbers1] AssertionError: assert dtype('int64') == dtype('float64') + where dtype('int64') = array([1, 2, 3]).dtype + and dtype('float64') = array([1., 2., 3.]).dtype
ubuntu-latest py3.11: xarray/tests/test_coding_times.py#L595
test_cf_timedelta[1h-hours-numbers2] AssertionError: assert dtype('int64') == dtype('float64') + where dtype('int64') = array(1).dtype + and dtype('float64') = array(1.).dtype
ubuntu-latest py3.11: xarray/tests/test_coding_times.py#L595
test_cf_timedelta[1ms-milliseconds-numbers3] AssertionError: assert dtype('int64') == dtype('float64') + where dtype('int64') = array(1).dtype + and dtype('float64') = array(1.).dtype
ubuntu-latest py3.11: xarray/tests/test_coding_times.py#L595
test_cf_timedelta[1us-microseconds-numbers4] AssertionError: assert dtype('int64') == dtype('float64') + where dtype('int64') = array(1).dtype + and dtype('float64') = array(1.).dtype
ubuntu-latest py3.11: xarray/tests/test_coding_times.py#L595
test_cf_timedelta[1ns-nanoseconds-numbers5] AssertionError: assert dtype('int64') == dtype('float64') + where dtype('int64') = array(1).dtype + and dtype('float64') = array(1.).dtype
ubuntu-latest py3.11
Process completed with exit code 1.
ubuntu-latest py3.10: xarray/tests/test_coding_times.py#L595
test_cf_timedelta[1D-days-numbers0] AssertionError: assert dtype('int64') == dtype('float64') + where dtype('int64') = array(1).dtype + and dtype('float64') = array(1.).dtype
ubuntu-latest py3.10: xarray/tests/test_coding_times.py#L595
test_cf_timedelta[timedeltas1-days-numbers1] AssertionError: assert dtype('int64') == dtype('float64') + where dtype('int64') = array([1, 2, 3]).dtype + and dtype('float64') = array([1., 2., 3.]).dtype
ubuntu-latest py3.10: xarray/tests/test_coding_times.py#L595
test_cf_timedelta[1h-hours-numbers2] AssertionError: assert dtype('int64') == dtype('float64') + where dtype('int64') = array(1).dtype + and dtype('float64') = array(1.).dtype
ubuntu-latest py3.10: xarray/tests/test_coding_times.py#L595
test_cf_timedelta[1ms-milliseconds-numbers3] AssertionError: assert dtype('int64') == dtype('float64') + where dtype('int64') = array(1).dtype + and dtype('float64') = array(1.).dtype
ubuntu-latest py3.10: xarray/tests/test_coding_times.py#L595
test_cf_timedelta[1us-microseconds-numbers4] AssertionError: assert dtype('int64') == dtype('float64') + where dtype('int64') = array(1).dtype + and dtype('float64') = array(1.).dtype
ubuntu-latest py3.10: xarray/tests/test_coding_times.py#L595
test_cf_timedelta[1ns-nanoseconds-numbers5] AssertionError: assert dtype('int64') == dtype('float64') + where dtype('int64') = array(1).dtype + and dtype('float64') = array(1.).dtype
ubuntu-latest py3.10
Process completed with exit code 1.
ubuntu-latest py3.10 all-but-dask: xarray/tests/test_coding_times.py#L595
test_cf_timedelta[1D-days-numbers0] AssertionError: assert dtype('int64') == dtype('float64') + where dtype('int64') = array(1).dtype + and dtype('float64') = array(1.).dtype
ubuntu-latest py3.10 all-but-dask: xarray/tests/test_coding_times.py#L595
test_cf_timedelta[timedeltas1-days-numbers1] AssertionError: assert dtype('int64') == dtype('float64') + where dtype('int64') = array([1, 2, 3]).dtype + and dtype('float64') = array([1., 2., 3.]).dtype
ubuntu-latest py3.10 all-but-dask: xarray/tests/test_coding_times.py#L595
test_cf_timedelta[1h-hours-numbers2] AssertionError: assert dtype('int64') == dtype('float64') + where dtype('int64') = array(1).dtype + and dtype('float64') = array(1.).dtype
ubuntu-latest py3.10 all-but-dask: xarray/tests/test_coding_times.py#L595
test_cf_timedelta[1ms-milliseconds-numbers3] AssertionError: assert dtype('int64') == dtype('float64') + where dtype('int64') = array(1).dtype + and dtype('float64') = array(1.).dtype
ubuntu-latest py3.10 all-but-dask: xarray/tests/test_coding_times.py#L595
test_cf_timedelta[1us-microseconds-numbers4] AssertionError: assert dtype('int64') == dtype('float64') + where dtype('int64') = array(1).dtype + and dtype('float64') = array(1.).dtype
ubuntu-latest py3.10 all-but-dask: xarray/tests/test_coding_times.py#L595
test_cf_timedelta[1ns-nanoseconds-numbers5] AssertionError: assert dtype('int64') == dtype('float64') + where dtype('int64') = array(1).dtype + and dtype('float64') = array(1.).dtype
ubuntu-latest py3.10 all-but-dask
Process completed with exit code 1.
ubuntu-latest py3.10 flaky: xarray/tests/test_coding_times.py#L595
test_cf_timedelta[1D-days-numbers0] AssertionError: assert dtype('int64') == dtype('float64') + where dtype('int64') = array(1).dtype + and dtype('float64') = array(1.).dtype
ubuntu-latest py3.10 flaky: xarray/tests/test_coding_times.py#L595
test_cf_timedelta[timedeltas1-days-numbers1] AssertionError: assert dtype('int64') == dtype('float64') + where dtype('int64') = array([1, 2, 3]).dtype + and dtype('float64') = array([1., 2., 3.]).dtype
ubuntu-latest py3.10 flaky: xarray/tests/test_coding_times.py#L595
test_cf_timedelta[1h-hours-numbers2] AssertionError: assert dtype('int64') == dtype('float64') + where dtype('int64') = array(1).dtype + and dtype('float64') = array(1.).dtype
ubuntu-latest py3.10 flaky: xarray/tests/test_coding_times.py#L595
test_cf_timedelta[1ms-milliseconds-numbers3] AssertionError: assert dtype('int64') == dtype('float64') + where dtype('int64') = array(1).dtype + and dtype('float64') = array(1.).dtype
ubuntu-latest py3.10 flaky: xarray/tests/test_coding_times.py#L595
test_cf_timedelta[1us-microseconds-numbers4] AssertionError: assert dtype('int64') == dtype('float64') + where dtype('int64') = array(1).dtype + and dtype('float64') = array(1.).dtype
ubuntu-latest py3.10 flaky: xarray/tests/test_coding_times.py#L595
test_cf_timedelta[1ns-nanoseconds-numbers5] AssertionError: assert dtype('int64') == dtype('float64') + where dtype('int64') = array(1).dtype + and dtype('float64') = array(1.).dtype
ubuntu-latest py3.10 flaky
Process completed with exit code 1.
ubuntu-latest py3.9 min-all-deps: xarray/tests/test_coding_times.py#L595
test_cf_timedelta[1D-days-numbers0] AssertionError: assert dtype('int64') == dtype('float64') + where dtype('int64') = array(1).dtype + and dtype('float64') = array(1.).dtype
ubuntu-latest py3.9 min-all-deps: xarray/tests/test_coding_times.py#L595
test_cf_timedelta[timedeltas1-days-numbers1] AssertionError: assert dtype('int64') == dtype('float64') + where dtype('int64') = array([1, 2, 3]).dtype + and dtype('float64') = array([1., 2., 3.]).dtype
ubuntu-latest py3.9 min-all-deps: xarray/tests/test_coding_times.py#L595
test_cf_timedelta[1h-hours-numbers2] AssertionError: assert dtype('int64') == dtype('float64') + where dtype('int64') = array(1).dtype + and dtype('float64') = array(1.).dtype
ubuntu-latest py3.9 min-all-deps: xarray/tests/test_coding_times.py#L595
test_cf_timedelta[1ms-milliseconds-numbers3] AssertionError: assert dtype('int64') == dtype('float64') + where dtype('int64') = array(1).dtype + and dtype('float64') = array(1.).dtype
ubuntu-latest py3.9 min-all-deps: xarray/tests/test_coding_times.py#L595
test_cf_timedelta[1us-microseconds-numbers4] AssertionError: assert dtype('int64') == dtype('float64') + where dtype('int64') = array(1).dtype + and dtype('float64') = array(1.).dtype
ubuntu-latest py3.9 min-all-deps: xarray/tests/test_coding_times.py#L595
test_cf_timedelta[1ns-nanoseconds-numbers5] AssertionError: assert dtype('int64') == dtype('float64') + where dtype('int64') = array(1).dtype + and dtype('float64') = array(1.).dtype
ubuntu-latest py3.9 min-all-deps
Process completed with exit code 1.
windows-latest py3.9: xarray\tests\test_coding_times.py#L595
test_cf_timedelta[1D-days-numbers0] AssertionError: assert dtype('int64') == dtype('float64') + where dtype('int64') = array(1, dtype=int64).dtype + and dtype('float64') = array(1.).dtype
windows-latest py3.9: xarray\tests\test_coding_times.py#L595
test_cf_timedelta[timedeltas1-days-numbers1] AssertionError: assert dtype('int64') == dtype('float64') + where dtype('int64') = array([1, 2, 3], dtype=int64).dtype + and dtype('float64') = array([1., 2., 3.]).dtype
windows-latest py3.9: xarray\tests\test_coding_times.py#L595
test_cf_timedelta[1h-hours-numbers2] AssertionError: assert dtype('int64') == dtype('float64') + where dtype('int64') = array(1, dtype=int64).dtype + and dtype('float64') = array(1.).dtype
windows-latest py3.9: xarray\tests\test_coding_times.py#L595
test_cf_timedelta[1ms-milliseconds-numbers3] AssertionError: assert dtype('int64') == dtype('float64') + where dtype('int64') = array(1, dtype=int64).dtype + and dtype('float64') = array(1.).dtype
windows-latest py3.9: xarray\tests\test_coding_times.py#L595
test_cf_timedelta[1us-microseconds-numbers4] AssertionError: assert dtype('int64') == dtype('float64') + where dtype('int64') = array(1, dtype=int64).dtype + and dtype('float64') = array(1.).dtype
windows-latest py3.9: xarray\tests\test_coding_times.py#L595
test_cf_timedelta[1ns-nanoseconds-numbers5] AssertionError: assert dtype('int64') == dtype('float64') + where dtype('int64') = array(1, dtype=int64).dtype + and dtype('float64') = array(1.).dtype
windows-latest py3.9
Process completed with exit code 1.
windows-latest py3.11: xarray\tests\test_coding_times.py#L595
test_cf_timedelta[1D-days-numbers0] AssertionError: assert dtype('int64') == dtype('float64') + where dtype('int64') = array(1, dtype=int64).dtype + and dtype('float64') = array(1.).dtype
windows-latest py3.11: xarray\tests\test_coding_times.py#L595
test_cf_timedelta[timedeltas1-days-numbers1] AssertionError: assert dtype('int64') == dtype('float64') + where dtype('int64') = array([1, 2, 3], dtype=int64).dtype + and dtype('float64') = array([1., 2., 3.]).dtype
windows-latest py3.11: xarray\tests\test_coding_times.py#L595
test_cf_timedelta[1h-hours-numbers2] AssertionError: assert dtype('int64') == dtype('float64') + where dtype('int64') = array(1, dtype=int64).dtype + and dtype('float64') = array(1.).dtype
windows-latest py3.11: xarray\tests\test_coding_times.py#L595
test_cf_timedelta[1ms-milliseconds-numbers3] AssertionError: assert dtype('int64') == dtype('float64') + where dtype('int64') = array(1, dtype=int64).dtype + and dtype('float64') = array(1.).dtype
windows-latest py3.11: xarray\tests\test_coding_times.py#L595
test_cf_timedelta[1us-microseconds-numbers4] AssertionError: assert dtype('int64') == dtype('float64') + where dtype('int64') = array(1, dtype=int64).dtype + and dtype('float64') = array(1.).dtype
windows-latest py3.11: xarray\tests\test_coding_times.py#L595
test_cf_timedelta[1ns-nanoseconds-numbers5] AssertionError: assert dtype('int64') == dtype('float64') + where dtype('int64') = array(1, dtype=int64).dtype + and dtype('float64') = array(1.).dtype
windows-latest py3.11
Process completed with exit code 1.
macos-latest py3.11: xarray/tests/test_coding_times.py#L595
test_cf_timedelta[1D-days-numbers0] AssertionError: assert dtype('int64') == dtype('float64') + where dtype('int64') = array(1).dtype + and dtype('float64') = array(1.).dtype
macos-latest py3.11: xarray/tests/test_coding_times.py#L595
test_cf_timedelta[timedeltas1-days-numbers1] AssertionError: assert dtype('int64') == dtype('float64') + where dtype('int64') = array([1, 2, 3]).dtype + and dtype('float64') = array([1., 2., 3.]).dtype
macos-latest py3.11: xarray/tests/test_coding_times.py#L595
test_cf_timedelta[1h-hours-numbers2] AssertionError: assert dtype('int64') == dtype('float64') + where dtype('int64') = array(1).dtype + and dtype('float64') = array(1.).dtype
macos-latest py3.11: xarray/tests/test_coding_times.py#L595
test_cf_timedelta[1ms-milliseconds-numbers3] AssertionError: assert dtype('int64') == dtype('float64') + where dtype('int64') = array(1).dtype + and dtype('float64') = array(1.).dtype
macos-latest py3.11: xarray/tests/test_coding_times.py#L595
test_cf_timedelta[1us-microseconds-numbers4] AssertionError: assert dtype('int64') == dtype('float64') + where dtype('int64') = array(1).dtype + and dtype('float64') = array(1.).dtype
macos-latest py3.11: xarray/tests/test_coding_times.py#L595
test_cf_timedelta[1ns-nanoseconds-numbers5] AssertionError: assert dtype('int64') == dtype('float64') + where dtype('int64') = array(1).dtype + and dtype('float64') = array(1.).dtype
macos-latest py3.11
Process completed with exit code 1.
macos-latest py3.9: xarray/tests/test_coding_times.py#L595
test_cf_timedelta[1D-days-numbers0] AssertionError: assert dtype('int64') == dtype('float64') + where dtype('int64') = array(1).dtype + and dtype('float64') = array(1.).dtype
macos-latest py3.9: xarray/tests/test_coding_times.py#L595
test_cf_timedelta[timedeltas1-days-numbers1] AssertionError: assert dtype('int64') == dtype('float64') + where dtype('int64') = array([1, 2, 3]).dtype + and dtype('float64') = array([1., 2., 3.]).dtype
macos-latest py3.9: xarray/tests/test_coding_times.py#L595
test_cf_timedelta[1h-hours-numbers2] AssertionError: assert dtype('int64') == dtype('float64') + where dtype('int64') = array(1).dtype + and dtype('float64') = array(1.).dtype
macos-latest py3.9: xarray/tests/test_coding_times.py#L595
test_cf_timedelta[1ms-milliseconds-numbers3] AssertionError: assert dtype('int64') == dtype('float64') + where dtype('int64') = array(1).dtype + and dtype('float64') = array(1.).dtype
macos-latest py3.9: xarray/tests/test_coding_times.py#L595
test_cf_timedelta[1us-microseconds-numbers4] AssertionError: assert dtype('int64') == dtype('float64') + where dtype('int64') = array(1).dtype + and dtype('float64') = array(1.).dtype
macos-latest py3.9: xarray/tests/test_coding_times.py#L595
test_cf_timedelta[1ns-nanoseconds-numbers5] AssertionError: assert dtype('int64') == dtype('float64') + where dtype('int64') = array(1).dtype + and dtype('float64') = array(1.).dtype
macos-latest py3.9
Process completed with exit code 1.
windows-latest py3.10: xarray\tests\test_coding_times.py#L595
test_cf_timedelta[1D-days-numbers0] AssertionError: assert dtype('int64') == dtype('float64') + where dtype('int64') = array(1, dtype=int64).dtype + and dtype('float64') = array(1.).dtype
windows-latest py3.10: xarray\tests\test_coding_times.py#L595
test_cf_timedelta[timedeltas1-days-numbers1] AssertionError: assert dtype('int64') == dtype('float64') + where dtype('int64') = array([1, 2, 3], dtype=int64).dtype + and dtype('float64') = array([1., 2., 3.]).dtype
windows-latest py3.10: xarray\tests\test_coding_times.py#L595
test_cf_timedelta[1h-hours-numbers2] AssertionError: assert dtype('int64') == dtype('float64') + where dtype('int64') = array(1, dtype=int64).dtype + and dtype('float64') = array(1.).dtype
windows-latest py3.10: xarray\tests\test_coding_times.py#L595
test_cf_timedelta[1ms-milliseconds-numbers3] AssertionError: assert dtype('int64') == dtype('float64') + where dtype('int64') = array(1, dtype=int64).dtype + and dtype('float64') = array(1.).dtype
windows-latest py3.10: xarray\tests\test_coding_times.py#L595
test_cf_timedelta[1us-microseconds-numbers4] AssertionError: assert dtype('int64') == dtype('float64') + where dtype('int64') = array(1, dtype=int64).dtype + and dtype('float64') = array(1.).dtype
windows-latest py3.10: xarray\tests\test_coding_times.py#L595
test_cf_timedelta[1ns-nanoseconds-numbers5] AssertionError: assert dtype('int64') == dtype('float64') + where dtype('int64') = array(1, dtype=int64).dtype + and dtype('float64') = array(1.).dtype
windows-latest py3.10
Process completed with exit code 1.
macos-latest py3.10: xarray/tests/test_coding_times.py#L595
test_cf_timedelta[1D-days-numbers0] AssertionError: assert dtype('int64') == dtype('float64') + where dtype('int64') = array(1).dtype + and dtype('float64') = array(1.).dtype
macos-latest py3.10: xarray/tests/test_coding_times.py#L595
test_cf_timedelta[timedeltas1-days-numbers1] AssertionError: assert dtype('int64') == dtype('float64') + where dtype('int64') = array([1, 2, 3]).dtype + and dtype('float64') = array([1., 2., 3.]).dtype
macos-latest py3.10: xarray/tests/test_coding_times.py#L595
test_cf_timedelta[1h-hours-numbers2] AssertionError: assert dtype('int64') == dtype('float64') + where dtype('int64') = array(1).dtype + and dtype('float64') = array(1.).dtype
macos-latest py3.10: xarray/tests/test_coding_times.py#L595
test_cf_timedelta[1ms-milliseconds-numbers3] AssertionError: assert dtype('int64') == dtype('float64') + where dtype('int64') = array(1).dtype + and dtype('float64') = array(1.).dtype
macos-latest py3.10: xarray/tests/test_coding_times.py#L595
test_cf_timedelta[1us-microseconds-numbers4] AssertionError: assert dtype('int64') == dtype('float64') + where dtype('int64') = array(1).dtype + and dtype('float64') = array(1.).dtype
macos-latest py3.10: xarray/tests/test_coding_times.py#L595
test_cf_timedelta[1ns-nanoseconds-numbers5] AssertionError: assert dtype('int64') == dtype('float64') + where dtype('int64') = array(1).dtype + and dtype('float64') = array(1.).dtype
macos-latest py3.10
Process completed with exit code 1.

Artifacts

Produced during runtime
Name Size
Event File Expired
26.9 KB
Test results for Linux-3.10 Expired
2.34 MB
Test results for Linux-3.11 Expired
2.32 MB
Test results for Linux-3.9 Expired
2.35 MB
Test results for Windows-3.10 Expired
2.34 MB
Test results for Windows-3.11 Expired
2.32 MB
Test results for Windows-3.9 Expired
2.34 MB
Test results for macOS-3.10 Expired
2.35 MB
Test results for macOS-3.11 Expired
2.33 MB
Test results for macOS-3.9 Expired
2.35 MB