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 for returning Quantity objects from Dask Futures #84

Merged
merged 9 commits into from
Jul 19, 2023

Conversation

wtbarnes
Copy link
Owner

This PR has some needed quick fixes for returning astropy.units.Quantity object from Dask Futures. The root of the problem is described here: dask/distributed#6808.

Additionally, this PR contains several other changes that greatly increase performance when simulating time-dependent emission for many loops. A lot of this code is pretty ugly and it would be good to find a way to deal with these problems in a more elegant way.

@wtbarnes wtbarnes marked this pull request as ready for review July 19, 2023 19:26
@codecov-commenter
Copy link

codecov-commenter commented Jul 19, 2023

Codecov Report

Patch coverage: 36.09% and project coverage change: +0.17 🎉

Comparison is base (77bbd6d) 42.87% compared to head (2d72cfd) 43.04%.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #84      +/-   ##
==========================================
+ Coverage   42.87%   43.04%   +0.17%     
==========================================
  Files          33       34       +1     
  Lines        1880     1956      +76     
==========================================
+ Hits          806      842      +36     
- Misses       1074     1114      +40     
Impacted Files Coverage Δ
synthesizAR/atomic/idl.py 18.47% <0.00%> (+0.76%) ⬆️
synthesizAR/interfaces/ebtel/util.py 19.00% <0.00%> (ø)
synthesizAR/instruments/base.py 29.12% <16.41%> (-2.43%) ⬇️
synthesizAR/instruments/util.py 47.61% <33.33%> (-2.39%) ⬇️
synthesizAR/atomic/population_fractions.py 27.02% <40.00%> (-0.25%) ⬇️
synthesizAR/instruments/physical.py 41.22% <50.00%> (+3.13%) ⬆️
synthesizAR/util/decorators.py 63.63% <63.63%> (ø)
synthesizAR/models/geometry.py 82.60% <75.00%> (-0.73%) ⬇️
synthesizAR/skeleton.py 64.00% <84.61%> (+0.87%) ⬆️
synthesizAR/instruments/hinode.py 34.26% <100.00%> (+0.93%) ⬆️
... and 2 more

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@wtbarnes wtbarnes merged commit 06c9c74 into main Jul 19, 2023
7 checks passed
@wtbarnes wtbarnes deleted the dask-quantity-fixes branch July 20, 2023 13:08
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