Skip to content

Chunk filename format can be 'time' or 'number' depending on use case - #96

Open
aurelienfalco wants to merge 2 commits into
mainfrom
chunk_rename
Open

aurelienfalco wants to merge 2 commits into
mainfrom
chunk_rename

Conversation

@aurelienfalco

Copy link
Copy Markdown
Collaborator

chunk filename

@atrabattoni

Copy link
Copy Markdown
Contributor

What if there is no "time" dimension ? what if the "time" dimension is not datetime64 ?

@aurelienfalco

Copy link
Copy Markdown
Collaborator Author

Well you can always use the "number" then. (We can make "number" the default to copy the previous behavior")

@atrabattoni

Copy link
Copy Markdown
Contributor

Yes use the previous default. If we can have a more agnostic solution that would be best (at least use self.dim rather than hardcoded "time"). And make it fail nicely if it cannot find datetime64. Maybe format could be "index" and "datetime" and we could also be more generic (passing some format string or something ?).

The test are failing right now maybe because you changed the default.

This branch has not been deployed

No deployments
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