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
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
Commits
04cf0176
Commit
04cf0176
authored
2 months ago
by
Sebastian Müller
🐈
Browse files
Options
Downloads
Patches
Plain Diff
NoGrid: default to scalar data
parent
32ddf520
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!286
Add mask to Info object
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/finam/data/grid_spec.py
+1
-6
1 addition, 6 deletions
src/finam/data/grid_spec.py
with
1 addition
and
6 deletions
src/finam/data/grid_spec.py
+
1
−
6
View file @
04cf0176
...
...
@@ -31,8 +31,6 @@ class NoGrid(GridBase):
"""
Indicator for data without a spatial grid.
Either dim or data_shape needed.
Parameters
----------
dim : int or None, optional
...
...
@@ -42,16 +40,13 @@ class NoGrid(GridBase):
Raises
------
ValueError
If none of dim or data_shape are given.
ValueError
If dim does not match the length of data_shape.
"""
def
__init__
(
self
,
dim
=
None
,
data_shape
=
None
):
if
dim
is
None
and
data_shape
is
None
:
msg
=
"
NoGrid: either dim or data_shape needed.
"
raise
ValueError
(
msg
)
dim
,
data_shape
=
0
,
tuple
()
if
data_shape
is
None
:
data_shape
=
(
-
1
,)
*
dim
if
dim
is
None
:
...
...
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