Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
kis_tools
Manage
Activity
Members
Labels
Plan
Issues
35
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sdc
kis_tools
Commits
3d4d1a33
Commit
3d4d1a33
authored
3 years ago
by
Carl Schaffer
Browse files
Options
Downloads
Patches
Plain Diff
switching date retrieval to use a more robust method
parent
3bf7b707
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!201
Mapgen fixes
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
kis_tools/gris/GrisMapExtractor.py
+2
-2
2 additions, 2 deletions
kis_tools/gris/GrisMapExtractor.py
with
2 additions
and
2 deletions
kis_tools/gris/GrisMapExtractor.py
+
2
−
2
View file @
3d4d1a33
...
...
@@ -47,7 +47,7 @@ def get_limits(penfile):
class
GrisMapExtractor
:
# class for extracting gris maps f
o
rm save file in batch
# class for extracting gris maps fr
o
m save file in batch
def
__init__
(
self
,
path_to_day
,
outdir
):
"""
Class to extract maps from IDL save files. The Class is
...
...
@@ -76,7 +76,7 @@ class GrisMapExtractor:
# Extract basic info from path and filesystem
self
.
path
=
abspath
(
path_to_day
)
self
.
folder_name
=
basename
(
self
.
path
)
self
.
date
=
date
time
.
datetime
.
strptime
(
self
.
folder_name
.
split
(
"
_
"
)[
0
],
"
%Y%m%d
"
)
self
.
date
=
date
_from_fn
(
self
.
folder_name
)
# Setup paths to subfolders:
self
.
outdir
=
join
(
outdir
,
"
context_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