-
Notifications
You must be signed in to change notification settings - Fork 14
Fix bug in cfdm.netcdf_indexer that sometimes caused a failure with a np.newaxis index
#400
New issue
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
Changes from 5 commits
50afef5
9a9e256
60cdc87
e629f08
fab89db
2a477c4
2064aab
8d65ddd
db1f21c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -57,6 +57,7 @@ | |
| RTOL, | ||
| abspath, | ||
| atol, | ||
| axis_dropping_index, | ||
| chunksize, | ||
| configuration, | ||
| dirname, | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -82,9 +82,6 @@ def _get_array(self, index=None): | |
| # Cache the variable | ||
| self._set_component("variable", variable, copy=False) | ||
|
|
||
| self.close(dataset0) | ||
| del dataset, dataset0 | ||
|
Comment on lines
-85
to
-86
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Did you intend to remove these cleanup calls? If so what's the justification - were they redundant or made so?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah yes - I did mean to move these :) It was a bug to have them higher because once closed, the
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sorry - a bit confused. The correct close is lower down in the code - these deleted lines crept in, somewhere down the line and needed to be booted out.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. OK sure - so it's all good then? I can mark this as resolved or go for it if you want to. |
||
|
|
||
| # Get the data, applying masking and scaling as required. | ||
| array = netcdf_indexer( | ||
| variable, | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.