Skip to content

Conversation

kthyng
Copy link
Collaborator

@kthyng kthyng commented May 19, 2023

No description provided.


if isinstance(x, xr.DataArray):
# find dt in units of hours
dt = (x.cf["T"][1] - x.cf["T"][0]) * 1e-9 / 3600
Copy link
Member

Choose a reason for hiding this comment

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

This will get clobbered below, no?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Those other lines use an input dt though, they just assume 1 hour, then modify the dt according to T.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

(though I did test with an hourly dataset so...)

@ocefpaf
Copy link
Member

ocefpaf commented May 19, 2023

Can I add you to the team here so we don't have to "approve and run" the CIs all the time?

@kthyng
Copy link
Collaborator Author

kthyng commented May 19, 2023

Can I add you to the team here so we don't have to "approve and run" the CIs all the time?

Ok, but can I ping you to review still?

@ocefpaf
Copy link
Member

ocefpaf commented May 19, 2023

Ok, but can I ping you to review still?

Sure. I owe some other reviews but this one will be quicker 😬

@kthyng
Copy link
Collaborator Author

kthyng commented May 19, 2023

@ocefpaf Should I merge?

@ocefpaf ocefpaf merged commit 71a7e90 into pyoceans:main May 19, 2023
@ocefpaf
Copy link
Member

ocefpaf commented May 19, 2023

I'll try to get a new release out soon. Probably next Tuesday.

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