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
6b972b0a
Commit
6b972b0a
authored
1 month ago
by
Nils-Arne Dreier
Committed by
Siddhant Tibrewal
1 month ago
Browse files
Options
Downloads
Patches
Plain Diff
refactor: use the full array name as pass through name in hiopy
parent
8de5ca6b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
apps/hiopy/worker.py
+4
-2
4 additions, 2 deletions
apps/hiopy/worker.py
with
4 additions
and
2 deletions
apps/hiopy/worker.py
+
4
−
2
View file @
6b972b0a
...
...
@@ -150,8 +150,9 @@ def main():
src_comp
,
src_grid
=
v
.
attrs
[
"
hiopy::yac_source
"
]
else
:
assert
"
hiopy::parent
"
in
var_group
.
attrs
,
f
"
No source for field
{
v
.
name
}
specified
"
parent_var_name
=
var_group
.
attrs
[
"
hiopy::parent
"
]
+
"
/
"
+
v
.
name
.
split
(
"
/
"
)[
-
1
]
source_var
=
zarr
.
open
(
store
=
v
.
store
)[
parent_var_name
]
parent_var_path
=
var_group
.
attrs
[
"
hiopy::parent
"
]
+
"
/
"
+
src_name
source_var
=
zarr
.
open
(
store
=
v
.
store
)[
parent_var_path
]
src_name
=
source_var
.
name
source_var_gid
=
grid_id
(
source_var
)
src_comp
=
src_grid
=
f
"
{
args
.
process_group
}
_
{
source_var_gid
}
"
time_method
=
v
.
attrs
.
get
(
"
hiopy::time_method
"
,
"
point
"
)
...
...
@@ -186,6 +187,7 @@ def main():
yac_time_reduction
=
time_methods2yac
[
time_method
],
interpolation_stack_yaml
=
f
"
- nnn:
\n
n:
{
nnn
}
"
,
frac_mask
=
frac_mask
,
pass_through_name
=
v
.
name
,
)
def
get_source_triple
(
v
):
...
...
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