Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LOFAR
Manage
Activity
Members
Labels
Plan
Issues
Wiki
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
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
RadioObservatory
LOFAR
Commits
1cec47cf
Commit
1cec47cf
authored
4 years ago
by
Jörn Künsemöller
Browse files
Options
Downloads
Patches
Plain Diff
TMSS-250
: add endpoint for target rise and set, and add sky constraint logic that uses it
parent
9f328b4d
No related branches found
No related tags found
1 merge request
!291
Resolve TMSS-250
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
SAS/TMSS/services/scheduling/test/t_dynamic_scheduling.py
+3
-9
3 additions, 9 deletions
SAS/TMSS/services/scheduling/test/t_dynamic_scheduling.py
with
3 additions
and
9 deletions
SAS/TMSS/services/scheduling/test/t_dynamic_scheduling.py
+
3
−
9
View file @
1cec47cf
...
@@ -424,9 +424,7 @@ class TestDailyConstraints(TestCase):
...
@@ -424,9 +424,7 @@ class TestDailyConstraints(TestCase):
def
test_can_run_within_timewindow_with_daytime_constraint_returns_correct_value
(
self
):
def
test_can_run_within_timewindow_with_daytime_constraint_returns_correct_value
(
self
):
# todo: for time ranges across dates, consider removing the mock for this because the moving window cannot be easily mocked
# todo: for time ranges across dates, consider removing the mock for this because the moving window cannot be easily mocked
# remove other constraints:
# remove other constraints:
self
.
scheduling_unit_blueprint
.
draft
.
scheduling_constraints_doc
[
'
sky
'
][
'
min_distance
'
]
=
{}
self
.
scheduling_unit_blueprint
.
draft
.
scheduling_constraints_doc
[
'
sky
'
]
=
{}
self
.
scheduling_unit_blueprint
.
draft
.
scheduling_constraints_doc
[
'
sky
'
][
'
min_target_elevation
'
]
=
{}
self
.
scheduling_unit_blueprint
.
draft
.
scheduling_constraints_doc
[
'
sky
'
][
'
min_calibrator_elevation
'
]
=
{}
# set constraint to test
# set constraint to test
self
.
scheduling_unit_blueprint
.
draft
.
scheduling_constraints_doc
[
'
daily
'
][
'
require_day
'
]
=
True
self
.
scheduling_unit_blueprint
.
draft
.
scheduling_constraints_doc
[
'
daily
'
][
'
require_day
'
]
=
True
...
@@ -560,9 +558,7 @@ class TestDailyConstraints(TestCase):
...
@@ -560,9 +558,7 @@ class TestDailyConstraints(TestCase):
def
test_can_run_within_timewindow_with_nighttime_constraint_returns_correct_value
(
self
):
def
test_can_run_within_timewindow_with_nighttime_constraint_returns_correct_value
(
self
):
# todo: for time ranges across dates, consider removing the mock for this because the moving window cannot be easily mocked
# todo: for time ranges across dates, consider removing the mock for this because the moving window cannot be easily mocked
# remove other constraints:
# remove other constraints:
self
.
scheduling_unit_blueprint
.
draft
.
scheduling_constraints_doc
[
'
sky
'
][
'
min_distance
'
]
=
{}
self
.
scheduling_unit_blueprint
.
draft
.
scheduling_constraints_doc
[
'
sky
'
]
=
{}
self
.
scheduling_unit_blueprint
.
draft
.
scheduling_constraints_doc
[
'
sky
'
][
'
min_target_elevation
'
]
=
{}
self
.
scheduling_unit_blueprint
.
draft
.
scheduling_constraints_doc
[
'
sky
'
][
'
min_calibrator_elevation
'
]
=
{}
# set constraint to test
# set constraint to test
self
.
scheduling_unit_blueprint
.
draft
.
scheduling_constraints_doc
[
'
daily
'
][
'
require_night
'
]
=
True
self
.
scheduling_unit_blueprint
.
draft
.
scheduling_constraints_doc
[
'
daily
'
][
'
require_night
'
]
=
True
...
@@ -694,9 +690,7 @@ class TestDailyConstraints(TestCase):
...
@@ -694,9 +690,7 @@ class TestDailyConstraints(TestCase):
def
test_can_run_within_timewindow_with_twilight_constraint_returns_correct_value
(
self
):
def
test_can_run_within_timewindow_with_twilight_constraint_returns_correct_value
(
self
):
# todo: for time ranges across dates, consider removing the mock for this because the moving window cannot be easily mocked
# todo: for time ranges across dates, consider removing the mock for this because the moving window cannot be easily mocked
# remove other constraints:
# remove other constraints:
self
.
scheduling_unit_blueprint
.
draft
.
scheduling_constraints_doc
[
'
sky
'
][
'
min_distance
'
]
=
{}
self
.
scheduling_unit_blueprint
.
draft
.
scheduling_constraints_doc
[
'
sky
'
]
=
{}
self
.
scheduling_unit_blueprint
.
draft
.
scheduling_constraints_doc
[
'
sky
'
][
'
min_target_elevation
'
]
=
{}
self
.
scheduling_unit_blueprint
.
draft
.
scheduling_constraints_doc
[
'
sky
'
][
'
min_calibrator_elevation
'
]
=
{}
# set constraint to test
# set constraint to test
self
.
scheduling_unit_blueprint
.
draft
.
scheduling_constraints_doc
[
'
daily
'
][
'
avoid_twilight
'
]
=
True
self
.
scheduling_unit_blueprint
.
draft
.
scheduling_constraints_doc
[
'
daily
'
][
'
avoid_twilight
'
]
=
True
...
...
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