Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
finam
Manage
Activity
Members
Labels
Plan
Issues
32
Issue boards
Milestones
Code
Merge requests
4
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
Commits
1966af67
Commit
1966af67
authored
1 year ago
by
Sebastian Müller
🐈
Browse files
Options
Downloads
Patches
Plain Diff
Grid: fix 1D/2D structured vtk export for rectilinear
parent
b8b12795
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!258
Grid mask support
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/finam/data/grid_base.py
+2
-2
2 additions, 2 deletions
src/finam/data/grid_base.py
with
2 additions
and
2 deletions
src/finam/data/grid_base.py
+
2
−
2
View file @
1966af67
...
...
@@ -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
):
...
...
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