Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
psy-transect
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
psyplot
psy-transect
Commits
ce7159fb
Verified
Commit
ce7159fb
authored
1 year ago
by
Philipp S. Sommer
Browse files
Options
Downloads
Patches
Plain Diff
minor fixes
parent
2fa6a94d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#344637
failed
1 year ago
Stage: test
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
psy_transect/plotters.py
+4
-1
4 additions, 1 deletion
psy_transect/plotters.py
psy_transect/utils.py
+2
-2
2 additions, 2 deletions
psy_transect/utils.py
with
6 additions
and
3 deletions
psy_transect/plotters.py
+
4
−
1
View file @
ce7159fb
...
...
@@ -209,9 +209,12 @@ class Transect(Formatoption):
# update the data - this also updates the data for the plotter
self
.
data
=
new_ds
.
psy
[
data
.
name
]
cell_dim
=
self
.
transect_method
.
method_kws
.
get
(
"
cell_dim
"
,
"
transect_cell
"
)
decoder
=
CFDecoder
(
new_ds
,
x
=
{
s
el
f
.
data
.
dims
[
-
1
]
},
x
=
{
c
el
l_dim
},
y
=
{
self
.
raw_data
.
psy
.
get_coord
(
"
z
"
).
name
},
)
...
...
This diff is collapsed.
Click to expand it.
psy_transect/utils.py
+
2
−
2
View file @
ce7159fb
...
...
@@ -533,9 +533,9 @@ def select_level(level, ds, coord, dim):
for
da
in
arrays
:
if
da
.
name
in
ds
.
coords
:
new_ds
.
coords
[
da
.
name
]
=
da
[
selection
]
new_ds
.
coords
[
da
.
name
]
=
da
.
sel
(
**
{
dim
:
selection
.
values
})
else
:
new_ds
[
da
.
name
]
=
da
[
selection
]
new_ds
[
da
.
name
]
=
da
.
sel
(
**
{
dim
:
selection
.
values
})
remove_coordinates
(
da
.
attrs
,
[
coord
.
name
])
remove_coordinates
(
da
.
encoding
,
[
coord
.
name
])
new_ds
.
coords
[
coord
.
name
]
=
((),
level
,
coord
.
attrs
)
...
...
This diff is collapsed.
Click to expand it.
Philipp S. Sommer
@Chilipp
mentioned in commit
a4dc57bd
·
1 year ago
mentioned in commit
a4dc57bd
mentioned in commit a4dc57bda613753b96e4fd0fcf8e94a0895dd43a
Toggle commit list
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