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
!255
Fix grid compatibility
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Fix grid compatibility
fix_grid_compatibility
into
main
Overview
1
Commits
15
Pipelines
6
Changes
7
All threads resolved!
Hide all comments
Merged
Sebastian Müller
requested to merge
fix_grid_compatibility
into
main
2 years ago
Overview
1
Commits
15
Pipelines
6
Changes
1
All threads resolved!
Hide all comments
Expand
Closes
#103 (closed)
👍
0
👎
0
Merge request reports
Viewing commit
0b226abc
Prev
Next
Show latest version
1 file
+
1
−
4
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
0b226abc
data_axes: fix calculation: no axes reversing if decreasing
· 0b226abc
Sebastian Müller
authored
1 year ago
src/finam/data/grid_tools.py
+
1
−
4
Options
@@ -768,10 +768,7 @@ class StructuredGrid(Grid):
def
data_axes
(
self
):
"""
list of np.ndarray: Axes as used for the data.
"""
axes
=
self
.
cell_axes
if
self
.
data_location
==
Location
.
CELLS
else
self
.
axes
return
[
(
axes
[
i
]
if
self
.
axes_increase
[
i
]
else
axes
[
i
][::
-
1
])
for
i
in
(
range
(
self
.
dim
)[::
-
1
]
if
self
.
axes_reversed
else
range
(
self
.
dim
))
]
return
reversed
(
axes
)
if
self
.
axes_reversed
else
axes
@property
def
data_axes_names
(
self
):
Loading