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

Fix attrs #242

Merged
merged 11 commits into from
Nov 16, 2024
1 change: 1 addition & 0 deletions docs/history.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

* ENH: Adding test to `open_datatree` function for all backends. Adding "scan_name" to nexradlevel2 datatree attributes ({pull}`238`) by [@aladinor](https://github.com/aladinor)
* FIX: Improving performance of `open_nexradlevel2_datatree` function and adding tests for `sweep` parameter. ({issue}`239`) ({pull}`240`) by [@aladinor](https://github.com/aladinor)
* FIX: Keeping attributes at each variable when using `open_nexradlevel2_datatree`. ({issue}`241`) ({pull}`242`) by [@aladinor](https://github.com/aladinor)

## 0.8.0 (2024-11-04)

Expand Down
2 changes: 1 addition & 1 deletion xradar/io/backends/nexrad_level2.py
Original file line number Diff line number Diff line change
Expand Up @@ -1642,7 +1642,7 @@ def open_nexradlevel2_datatree(
# todo: refactor _assign_root and _get_subgroup to recieve dict instead of list of datasets.
# avoiding remove the attributes in the following line
sweep_dict = {
sweep_path: sweep_dict[sweep_path].drop_attrs()
sweep_path: sweep_dict[sweep_path].drop_attrs(deep=False)
for sweep_path in sweep_dict.keys()
}
dtree = dtree | sweep_dict
Expand Down