Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
coyote
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nils
coyote
Commits
0ed3bfc8
Commit
0ed3bfc8
authored
1 month ago
by
Nils-Arne Dreier
Committed by
Siddhant Tibrewal
1 month ago
Browse files
Options
Downloads
Patches
Plain Diff
fix: handle get_var_group correctly if the parent group is root
parent
06e7b209
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#101309
waiting for manual action
Stage: lint
Stage: build
Stage: test
Stage: verify
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
apps/hiopy/_zarr_utils.py
+6
-3
6 additions, 3 deletions
apps/hiopy/_zarr_utils.py
with
6 additions
and
3 deletions
apps/hiopy/_zarr_utils.py
+
6
−
3
View file @
0ed3bfc8
...
...
@@ -2,6 +2,9 @@ import zarr
def
get_var_group
(
v
):
store
=
zarr
.
open
(
v
.
store
)
parent_group_path
=
'
/
'
.
join
(
v
.
path
.
split
(
'
/
'
)[:
-
1
])
return
store
[
parent_group_path
]
z
=
zarr
.
open
(
v
.
store
)
parent_group_path
=
"
/
"
.
join
(
v
.
path
.
split
(
"
/
"
)[:
-
1
])
if
parent_group_path
==
""
:
return
z
else
:
return
z
[
parent_group_path
]
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment