Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
V
VLBI-cwl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ResearchAndDevelopment
VLBI-cwl
Commits
9040a9a1
Commit
9040a9a1
authored
1 year ago
by
Matthijs van der Wild
Browse files
Options
Downloads
Patches
Plain Diff
Bugfix prep delay
parent
ea57e453
No related branches found
No related tags found
1 merge request
!46
Bugfix prep delay
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/TargetListToCoords.py
+4
-8
4 additions, 8 deletions
scripts/TargetListToCoords.py
with
4 additions
and
8 deletions
scripts/TargetListToCoords.py
+
4
−
8
View file @
9040a9a1
...
...
@@ -30,13 +30,11 @@ def plugin_main(**kwargs):
if
mode
==
'
delay_calibration
'
:
RA_val
=
[
RA_val
[
0
]]
DEC_val
=
[
DEC_val
[
0
]]
Source_id
=
Source_id
[:
1
]
if
str
(
Source_id
[
0
])[
0
:
1
]
==
'
I
'
:
pass
elif
str
(
Source_id
[
0
])[
0
:
1
]
==
'
S
'
:
Source_id
=
Source_id
[
0
]
if
isinstance
(
Source_id
,
str
):
pass
else
:
Source_id
=
[
'
S
'
+
str
(
x
)
for
x
in
Source_id
[
0
]
]
Source_id
=
[
'
S
'
+
str
(
Source_id
)
]
# make a string of coordinates for the DP3 command
ss
=
[
'
[
'
+
str
(
x
)
+
'
deg,
'
+
str
(
y
)
+
'
deg]
'
for
x
,
y
in
zip
(
RA_val
,
DEC_val
)
]
...
...
@@ -49,6 +47,4 @@ def plugin_main(**kwargs):
+
"
\"
delay_calibration
\"
,
\"
split_directions
\"
"
+
f
"
but was
{
mode
}
.
"
)
result
=
{
'
name
'
:
"
,
"
.
join
(
Source_id
),
'
coords
'
:
ss
}
return
result
return
{
'
name
'
:
"
,
"
.
join
(
Source_id
),
'
coords
'
:
ss
}
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