We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test_globcurrent_time_extrapolation_error
I'm working on removing xfail from some tests so that we can use pytest.raises instead so that we're more specific. The following test
xfail
pytest.raises
Parcels/docs/examples/example_globcurrent.py
Lines 222 to 238 in aa716e4
errors with
@pytest.mark.parametrize("mode", ["scipy", "jit"]) @pytest.mark.parametrize("use_xarray", [True, False]) def test_globcurrent_time_extrapolation_error(mode, use_xarray): fieldset = set_globcurrent_fieldset(use_xarray=use_xarray) pset = parcels.ParticleSet( fieldset, pclass=ptype[mode], lon=[25], lat=[-35], > time=fieldset.U.time[0] - timedelta(days=1).total_seconds(), ) E AttributeError: 'Field' object has no attribute 'time' docs/examples/example_globcurrent.py:233: AttributeError ________________________________________ test_globcurrent_time_extrapolation_error[False-jit] _____
This is a broken test
(imo, xfail should be reserved for features that are not yet implemented, or platform incompatability, etc)
The text was updated successfully, but these errors were encountered:
Is this a matter of simply changing fieldset.U.time[0] to fieldset.U.grid.time[0]?
fieldset.U.time[0]
fieldset.U.grid.time[0]
Sorry, something went wrong.
Oh yes. I thought we had a property Field.time but it looks like its just lon and lat. I'll put up a patch
Field.time
No branches or pull requests
I'm working on removing
xfail
from some tests so that we can usepytest.raises
instead so that we're more specific. The following testParcels/docs/examples/example_globcurrent.py
Lines 222 to 238 in aa716e4
errors with
This is a broken test
(imo, xfail should be reserved for features that are not yet implemented, or platform incompatability, etc)
The text was updated successfully, but these errors were encountered: