Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
pynamic-pigeon-auralization
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
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
Code review analytics
Issue analytics
Insights
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
IHTA
Auralization
pynamic-pigeon-auralization
Commits
8d77d2bc
Commit
8d77d2bc
authored
8 months ago
by
Chalotorn Möhlmann
Browse files
Options
Downloads
Plain Diff
Merge branch 'fix/path-dehasing'
parents
6df53668
87f40e6f
No related branches found
No related tags found
1 merge request
!20
Draft: Resolve "pynamic-plot: path dehasing does not work all the time"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/pynamic_pigeon_auralization/plotting/__main__.py
+8
-4
8 additions, 4 deletions
src/pynamic_pigeon_auralization/plotting/__main__.py
with
8 additions
and
4 deletions
src/pynamic_pigeon_auralization/plotting/__main__.py
+
8
−
4
View file @
8d77d2bc
...
...
@@ -22,10 +22,14 @@ inv_propagation_parameter_abbreviations = {v: k for k, v in propagation_paramete
def
update_path_names
(
ds
:
xr
.
Dataset
,
matlab_ids
:
dict
[
str
,
str
])
->
xr
.
Dataset
:
translated_names
=
[
matlab_ids
[
name
.
replace
(
"
path_
"
,
""
)]
if
name
in
matlab_ids
else
name
for
name
in
ds
.
coords
[
"
paths
"
].
values
]
translated_names
=
[]
for
name
in
ds
.
coords
[
"
paths
"
].
values
:
matlab_id
=
name
.
replace
(
"
path_
"
,
""
)
if
matlab_id
in
matlab_ids
:
translated_names
.
append
(
matlab_ids
[
matlab_id
])
else
:
translated_names
.
append
(
name
)
ds
=
ds
.
assign_coords
(
paths
=
translated_names
)
return
ds
...
...
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