Skip to content

Fix bug when loading 2d timeseries#21

Open
Cody-G wants to merge 1 commit into
timholy:masterfrom
Cody-G:master
Open

Fix bug when loading 2d timeseries#21
Cody-G wants to merge 1 commit into
timholy:masterfrom
Cody-G:master

Conversation

@Cody-G
Copy link
Copy Markdown
Collaborator

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

Fixes #20

@Cody-G
Copy link
Copy Markdown
Collaborator Author

Cody-G commented Mar 13, 2018

Failures are only on nightly

Comment thread src/ImagineFormat.jl
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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.

2 participants