Skip to content

Conversation

@deepgabani8
Copy link
Contributor

No description provided.

Copy link
Contributor

@alxmrs alxmrs left a comment

Choose a reason for hiding this comment

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

A nit to try to make the code simpler. Otherwise, this LGTM.

I have a slight hesitation that this will break some pipelines, though I realize it will make weather-mv compatible with others, still.

channel_names: A list of channel names in the asset.
start_time: Image start time in floating point seconds since epoch.
end_time: Image end time in floating point seconds since epoch.
start_time: Image start time in '%Y-%m-%dT%H:%M:%SZ' format.
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this the same as isoformat? If it is, let's just call it that.

"""Turn a numpy datetime64 into UTC timestring."""
timestamp = float((np_time - np.datetime64(0, 's')) / np.timedelta64(1, 's'))
if isinstance(time, datetime.datetime):
return time.strftime('%Y-%m-%dT%H:%M:%SZ')
Copy link
Contributor

Choose a reason for hiding this comment

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

If this is isofromat, let's use time.isoformat()

Copy link
Contributor

Choose a reason for hiding this comment

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

Same with the line below.

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.

3 participants