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
3c568294
Commit
3c568294
authored
1 year ago
by
Jorrit Schaap
Browse files
Options
Downloads
Patches
Plain Diff
TMSS-2877
: use latest constraint schema, with target sky min_distance constraints
parent
d29c6d43
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!1270
TMSS-2877
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
SAS/TMSS/backend/src/tmss/tmssapp/populate.py
+4
-4
4 additions, 4 deletions
SAS/TMSS/backend/src/tmss/tmssapp/populate.py
with
4 additions
and
4 deletions
SAS/TMSS/backend/src/tmss/tmssapp/populate.py
+
4
−
4
View file @
3c568294
...
...
@@ -312,7 +312,7 @@ def populate_test_data():
from
lofar.sas.tmss.tmss.tmssapp.subtasks
import
schedule_subtask
from
lofar.common.json_utils
import
get_default_json_object_for_schema
constraints_template
=
models
.
SchedulingConstraintsTemplate
.
get_
version_or_
latest
(
name
=
"
constraints
"
)
constraints_template
=
models
.
SchedulingConstraintsTemplate
.
get_latest
(
name
=
"
constraints
"
)
constraints_spec
=
get_default_json_object_for_schema
(
constraints_template
.
schema
)
next_fixed_time_start_time
=
datetime
.
utcnow
()
+
timedelta
(
minutes
=
5
)
...
...
@@ -348,7 +348,7 @@ def populate_test_data():
constraints_spec
[
'
scheduler
'
]
=
'
fixed_time
'
constraints_spec
[
'
time
'
]
=
{
'
at
'
:
"
2023-02-07T09:00:00.00000Z
"
}
constraints_spec
[
'
sky
'
][
'
min_elevation
'
]
=
{
"
calibrator
"
:
0.5235987755982988
,
"
target
"
:
0.8726646259971648
}
constraints_spec
[
'
sky
'
][
'
min_distance
'
]
=
{
"
sun
"
:
30
*
3.1415
/
180.0
,
"
moon
"
:
15
*
3.1415
/
180.0
,
"
jupiter
"
:
20
*
3.1415
/
180.0
}
constraints_spec
[
'
sky
'
][
'
min_distance
'
]
=
{
"
target
"
:
{
"
sun
"
:
30
*
3.1415
/
180.0
,
"
moon
"
:
15
*
3.1415
/
180.0
,
"
jupiter
"
:
20
*
3.1415
/
180.0
}
}
constraints_spec
[
'
sky
'
][
'
transit_offset
'
]
=
{
"
from
"
:
-
5400
,
"
to
"
:
5400
}
constraints_spec
[
'
sky
'
][
'
reference_pointing
'
]
=
{
"
enabled
"
:
True
,
"
pointing
"
:
{
"
angle1
"
:
5.2
,
"
angle2
"
:
0.793
,
"
direction_type
"
:
"
J2000
"
,
"
target
"
:
"
REF
"
}}
elif
strategy_template
.
name
==
'
IM HBA LoTSS - 2 Beams
'
:
...
...
@@ -363,7 +363,7 @@ def populate_test_data():
constraints_spec
[
'
scheduler
'
]
=
'
fixed_time
'
constraints_spec
[
'
time
'
]
=
{
'
at
'
:
"
2023-02-08T09:00:00.00000Z
"
}
constraints_spec
[
'
sky
'
][
'
min_elevation
'
]
=
{
"
calibrator
"
:
0.25235987755982988
,
"
target
"
:
0.8726646259971648
}
constraints_spec
[
'
sky
'
][
'
min_distance
'
]
=
{
"
sun
"
:
30
*
3.1415
/
180.0
,
"
moon
"
:
15
*
3.1415
/
180.0
,
"
jupiter
"
:
20
*
3.1415
/
180.0
}
constraints_spec
[
'
sky
'
][
'
min_distance
'
]
=
{
"
target
"
:
{
"
sun
"
:
30
*
3.1415
/
180.0
,
"
moon
"
:
15
*
3.1415
/
180.0
,
"
jupiter
"
:
20
*
3.1415
/
180.0
}
}
constraints_spec
[
'
sky
'
][
'
transit_offset
'
]
=
{
"
from
"
:
-
5400
,
"
to
"
:
5400
}
constraints_spec
[
'
sky
'
][
'
reference_pointing
'
]
=
{
"
enabled
"
:
False
,
"
pointing
"
:
{
"
angle1
"
:
5.2
,
"
angle2
"
:
0.793
,
"
direction_type
"
:
"
J2000
"
,
"
target
"
:
"
REF
"
}}
elif
strategy_template
.
name
==
'
IM HBA - 1 Beam
'
:
...
...
@@ -377,7 +377,7 @@ def populate_test_data():
# constraints_spec['scheduler'] = 'fixed_time'
# constraints_spec['time'] = {'at': "2023-02-09T06:00:00.00000Z" }
constraints_spec
[
'
sky
'
][
'
min_elevation
'
]
=
{
"
calibrator
"
:
0.2
,
"
target
"
:
0.3
}
constraints_spec
[
'
sky
'
][
'
min_distance
'
]
=
{
"
sun
"
:
30
*
3.1415
/
180.0
,
"
moon
"
:
15
*
3.1415
/
180.0
,
"
jupiter
"
:
20
*
3.1415
/
180.0
}
constraints_spec
[
'
sky
'
][
'
min_distance
'
]
=
{
"
target
"
:
{
"
sun
"
:
30
*
3.1415
/
180.0
,
"
moon
"
:
15
*
3.1415
/
180.0
,
"
jupiter
"
:
20
*
3.1415
/
180.0
}
}
constraints_spec
[
'
sky
'
][
'
transit_offset
'
]
=
{
"
from
"
:
-
5400
,
"
to
"
:
5400
}
constraints_spec
[
'
sky
'
][
'
reference_pointing
'
]
=
{
"
enabled
"
:
False
,
"
pointing
"
:
{
"
angle1
"
:
5.2
,
"
angle2
"
:
0.793
,
"
direction_type
"
:
"
J2000
"
,
"
target
"
:
"
REF
"
}}
...
...
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