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
5e7e1549
Commit
5e7e1549
authored
1 year ago
by
Sebastian Müller
🐈
Browse files
Options
Downloads
Patches
Plain Diff
fix pylint dict issues
parent
66eb8ce2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!258
Grid mask support
Pipeline
#187259
passed with stages
in 4 minutes and 32 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/finam/data/esri_tools.py
+2
-2
2 additions, 2 deletions
src/finam/data/esri_tools.py
with
2 additions
and
2 deletions
src/finam/data/esri_tools.py
+
2
−
2
View file @
5e7e1549
...
...
@@ -91,7 +91,7 @@ def read_header(file):
"
xllcorner
"
and
"
yllcorner
"
resepectively.
"""
header_lines
=
_extract_header
(
file
)
return
standardize_header
(
{
n
:
v
for
(
n
,
v
)
in
header_lines
}
)
return
standardize_header
(
dict
(
header_lines
)
)
def
read_grid
(
file
,
dtype
=
None
):
...
...
@@ -120,7 +120,7 @@ def read_grid(file, dtype=None):
If data shape is not matching the given header.
"""
header_lines
=
_extract_header
(
file
)
header
=
standardize_header
(
{
n
:
v
for
(
n
,
v
)
in
header_lines
}
)
header
=
standardize_header
(
dict
(
header_lines
)
)
# last line could already be data if "nodata_value" is missing
numeric_last
=
_is_number
(
header_lines
[
-
1
][
0
])
header_size
=
len
(
header_lines
)
-
int
(
numeric_last
)
...
...
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