Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FloeNavi Toolbox
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FloeNavi - Coordinate Reference System
FloeNavi Toolbox
Commits
4a783564
Commit
4a783564
authored
4 years ago
by
Stefan Hendricks
Browse files
Options
Downloads
Patches
Plain Diff
use clear var names
parent
c9bfbbc9
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
floenavi/__init__.py
+3
-3
3 additions, 3 deletions
floenavi/__init__.py
with
3 additions
and
3 deletions
floenavi/__init__.py
+
3
−
3
View file @
4a783564
...
...
@@ -686,11 +686,11 @@ class FloeNaviGrid(object):
self
.
basestations
=
None
self
.
basestation_dict
=
{}
def
set_time_bounds
(
self
,
time_bounds
,
day_pad
=
True
):
def
set_time_bounds
(
self
,
dataset_
time_bounds
,
day_pad
=
True
):
"""
Specify the time bounds of the data set, which will trigger parsing the appropriate
basestation data.
:param time_bounds:
:param
dataset_
time_bounds:
:param day_pad:
:return:
"""
...
...
@@ -698,7 +698,7 @@ class FloeNaviGrid(object):
# if day_pad is set to True: Extend the range of the floenavi grid
# by two padding days (if the setup allows)
# NOTE: This can improve the solution right at the start and end of an UTC day
time_bounds
=
list
(
time_bounds
)
time_bounds
=
list
(
dataset_
time_bounds
)
if
day_pad
:
early_start_date
=
time_bounds
[
0
]
-
timedelta
(
days
=
1
)
if
early_start_date
>=
self
.
setup
.
time_bounds
[
0
]:
...
...
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