File tree 3 files changed +6
-18
lines changed
3 files changed +6
-18
lines changed Original file line number Diff line number Diff line change @@ -494,12 +494,8 @@ def open_datatree(
494
494
driver_kwds = driver_kwds ,
495
495
** kwargs ,
496
496
)
497
- if group :
498
- dt = datatree_from_dict_with_io_cleanup (groups_dict )
499
- dt .encoding ["source_group" ] = group
500
- return dt
501
- else :
502
- return datatree_from_dict_with_io_cleanup (groups_dict )
497
+
498
+ return datatree_from_dict_with_io_cleanup (groups_dict )
503
499
504
500
def open_groups_as_dict (
505
501
self ,
Original file line number Diff line number Diff line change @@ -729,12 +729,8 @@ def open_datatree(
729
729
autoclose = autoclose ,
730
730
** kwargs ,
731
731
)
732
- if group :
733
- dt = datatree_from_dict_with_io_cleanup (groups_dict )
734
- dt .encoding ["source_group" ] = group
735
- return dt
736
- else :
737
- return datatree_from_dict_with_io_cleanup (groups_dict )
732
+
733
+ return datatree_from_dict_with_io_cleanup (groups_dict )
738
734
739
735
def open_groups_as_dict (
740
736
self ,
Original file line number Diff line number Diff line change @@ -1466,12 +1466,8 @@ def open_datatree(
1466
1466
zarr_format = zarr_format ,
1467
1467
** kwargs ,
1468
1468
)
1469
- if group :
1470
- dt = datatree_from_dict_with_io_cleanup (groups_dict )
1471
- dt .encoding ["source_group" ] = group
1472
- return dt
1473
- else :
1474
- return datatree_from_dict_with_io_cleanup (groups_dict )
1469
+
1470
+ return datatree_from_dict_with_io_cleanup (groups_dict )
1475
1471
1476
1472
def open_groups_as_dict (
1477
1473
self ,
You can’t perform that action at this time.
0 commit comments