Skip to content
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

Fix bug when loading 2d timeseries #21

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

Cody-G
Copy link
Collaborator

@Cody-G Cody-G commented Mar 10, 2018

Fixes #20

@Cody-G
Copy link
Collaborator Author

Cody-G commented Mar 13, 2018

Failures are only on nightly

dz = abs(pstart - pstop)/(sz[3]-1)
else dz = 0.0 end
#Setting dz to something > 0.0 prevents an error when creating an AxisArray with a zero step
dz = (pstart == pstop) ? 1.0 : abs(pstart - pstop)/(sz[3]-1)
Copy link
Owner

Choose a reason for hiding this comment

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

Sorry I failed to notice this.

Should we also check that sz[3] == 1? In such cases would it be better to return a space × space × time array?

Copy link
Owner

Choose a reason for hiding this comment

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

Also see fcda3d2

@timholy
Copy link
Owner

timholy commented Nov 16, 2018

Is this still an issue? If so could use a test.

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.

None yet

2 participants