Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
finam
Manage
Activity
Members
Labels
Plan
Issues
31
Issue boards
Milestones
Code
Merge requests
3
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
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
FINAM
finam
Merge requests
!258
Grid mask support
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Grid mask support
grid_mask_support
into
main
Overview
10
Commits
30
Pipelines
18
Changes
13
All threads resolved!
Hide all comments
Merged
Sebastian Müller
requested to merge
grid_mask_support
into
main
1 year ago
Overview
10
Commits
30
Pipelines
18
Changes
1
All threads resolved!
Hide all comments
Expand
👍
0
👎
0
Merge request reports
Viewing commit
1966af67
Prev
Next
Show latest version
1 file
+
2
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
1966af67
Grid: fix 1D/2D structured vtk export for rectilinear
· 1966af67
Sebastian Müller
authored
1 year ago
src/finam/data/grid_base.py
+
2
−
2
Options
@@ -457,8 +457,8 @@ class StructuredGrid(Grid):
)
path
=
str
(
Path
(
path
).
with_suffix
(
""
))
x
=
np
.
ascontiguousarray
(
self
.
axes
[
0
])
y
=
np
.
ascontiguousarray
(
self
.
axes
[
1
]
if
self
.
dim
>
1
else
np
.
array
([
1
.0
]))
z
=
np
.
ascontiguousarray
(
self
.
axes
[
2
]
if
self
.
dim
>
2
else
np
.
array
([
1
.0
]))
y
=
np
.
ascontiguousarray
(
self
.
axes
[
1
]
if
self
.
dim
>
1
else
np
.
array
([
0
.0
]))
z
=
np
.
ascontiguousarray
(
self
.
axes
[
2
]
if
self
.
dim
>
2
else
np
.
array
([
0
.0
]))
gridToVTK
(
path
,
x
,
y
,
z
,
**
kw
)
def
to_canonical
(
self
,
data
):
Loading