Skip to content

Conversation

@lbdreyer
Copy link

In a test for the deprecated function iris.analysis._interpolate_private.linear a cube with lazy unmasked pp data is interpolated. After the interpolation the fill value is kept, but the test then passes the cube through normalise_order which resets the cube's data thereby losing the fill value.

I have not done anything to dtype as cube._dtype is always None throughout the test.

@lbdreyer
Copy link
Author

Fyi @pp-mo

# * scipy.interpolate.interp1d in 0.11.0 which is used in
# `Linear1dExtrapolator`.
cube_fill_val = cube.fill_value
print(cube._dtype, cube.dtype)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lbdreyer Nuke the print ? ... and also those below ?


self.assertCML(res, ('analysis', 'interpolation', 'linear',
'real_circular_2dslice.cml'), checksum=False)
self.assertEqual('a', 'b')
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lbdreyer What's this ? 😕

@lbdreyer
Copy link
Author

@bjlittle I have removed all the unnecessary print statements now

@bjlittle bjlittle merged commit 385cdb9 into bjlittle:fill-value-and-dtype Mar 14, 2017
@lbdreyer lbdreyer deleted the fix_fill_value branch July 23, 2018 10:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants