Skip to content

Commit

Permalink
Fix attrs (#242)
Browse files Browse the repository at this point in the history
* fixing deletion of attributes in dataset varibles

* Change documented in history.md
  • Loading branch information
aladinor authored Nov 16, 2024
1 parent dc76619 commit b4684fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
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

0 comments on commit b4684fa

Please sign in to comment.