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

Fixes retrieval of chunk sizes for datasets #83

Merged
merged 3 commits into from
Mar 21, 2022

Conversation

tomchor
Copy link
Contributor

@tomchor tomchor commented Mar 19, 2022

Closes #82

This fixes the issue for me. Although I did notice some minor issues when using Datasets (like the package giving me this warning even with the keyword fieldname: UserWarning: No fieldname supplied. Defaults to air), but I think those are best left for future PRs.

@codecov
Copy link

codecov bot commented Mar 19, 2022

Codecov Report

Merging #83 (64dbac8) into master (de467be) will decrease coverage by 0.97%.
The diff coverage is 20.00%.

@@            Coverage Diff             @@
##           master      #83      +/-   ##
==========================================
- Coverage   79.62%   78.65%   -0.98%     
==========================================
  Files           3        3              
  Lines         324      328       +4     
  Branches       59       61       +2     
==========================================
  Hits          258      258              
- Misses         43       46       +3     
- Partials       23       24       +1     
Flag Coverage Δ
unittests 78.35% <20.00%> (-0.97%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
xmovie/core.py 85.27% <20.00%> (-1.77%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update de467be...64dbac8. Read the comment docs.

Copy link
Owner

@jbusecke jbusecke left a comment

Choose a reason for hiding this comment

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

Amazing! Thanks for this fix @tomchor.

xmovie/core.py Outdated
"xmovie presets do not yet support the input of xr.Datasets. \
In order to use datasets as inputs, set `input_check` to False. \
Note that this requires you to manually set colorlimits etc."
"xmovie presets do not yet support the input of xr.Datasets.\nIn order to use datasets as inputs, set `input_check` to False.\nNote that this requires you to manually set colorlimits etc."
Copy link
Owner

Choose a reason for hiding this comment

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

should we modify this to 'fully supports xr.Datasets'? Might be more true to the code? Just a suggestion

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I agree and I modified it :)

@tomchor
Copy link
Contributor Author

tomchor commented Mar 21, 2022

Feel free to merge whenever you're ready!

@tomchor
Copy link
Contributor Author

tomchor commented Mar 21, 2022

Although (since I've heard about this bug from other people too) maybe it'd be good to tag a patch release immediately as well?

@jbusecke
Copy link
Owner

Do you want to add an entry to docs/whats-new.rst? Ill make a patch release right after this is merged.

@tomchor
Copy link
Contributor Author

tomchor commented Mar 21, 2022

Do you want to add an entry to docs/whats-new.rst? Ill make a patch release right after this is merged.

Done!

@jbusecke
Copy link
Owner

Phenomenal. Merging now.

@jbusecke jbusecke merged commit 27bc529 into jbusecke:master Mar 21, 2022
@jbusecke
Copy link
Owner

I guess an additional test (or a parametrization for the existing ones) would have been ideal. In case you are up for adding that, I would wait, but not a big deal in my view.

@tomchor
Copy link
Contributor Author

tomchor commented Mar 21, 2022

I guess an additional test (or a parametrization for the existing ones) would have been ideal. In case you are up for adding that, I would wait, but not a big deal in my view.

I agree, but that would take considerably longer and I'm going to take some time off starting today. I thought it was better to get the bug fix out as soon as possible.

I can help you out in the future if you want to add tests for datasets and make that aspect of xmovies fully supported.

@jbusecke
Copy link
Owner

Awesome, thanks for the offer. Enjoy your vacation!

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.

Parallel plotting isn't working with Datasets
2 participants