Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
L
LOFAR-calculator
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Astronomy and Operations
SDC Operations
LOFAR-calculator
Commits
7f573131
Commit
7f573131
authored
Sep 24, 2020
by
sarrvesh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
show remote and international stations in incoherent mode
parent
44243b2e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
19 deletions
+22
-19
calculator.py
calculator.py
+22
-19
No files found.
calculator.py
View file @
7f573131
...
...
@@ -46,14 +46,6 @@ app.title = 'LUCI - LOFAR Unified Calculator for Imaging'
Output
(
'stokesRowL'
,
'style'
),
Output
(
'stokesRow'
,
'style'
),
Output
(
'nRemoteForm'
,
'style'
),
Output
(
'nRemoteRow'
,
'style'
),
Output
(
'nRemoteRowL'
,
'style'
),
Output
(
'nIntForm'
,
'style'
),
Output
(
'nIntRow'
,
'style'
),
Output
(
'nIntRowL'
,
'style'
),
Output
(
'nRingsForm'
,
'style'
),
Output
(
'nRingsRow'
,
'style'
),
Output
(
'nRingsRowL'
,
'style'
),
...
...
@@ -63,26 +55,22 @@ app.title = 'LUCI - LOFAR Unified Calculator for Imaging'
],
[
Input
(
'obsModeRow'
,
'value'
)]
)
def
toggle_obs_mode
(
value
):
def
toggle_obs_mode
(
obs_
value
):
"""Function to show relevant observational setup fields
depending on the user's choice"""
all_pipelines
=
{
'Interferometric'
:
[
'none'
,
'preprocessing'
],
'Beamformed'
:
[
'none'
,
'pulp'
]
}
valid_pipes
=
[{
'label'
:
i
,
'value'
:
i
}
for
i
in
all_pipelines
[
value
]]
if
value
==
'Interferometric'
:
return
{
'display'
:
'none'
},
{
'display'
:
'none'
},
{
'display'
:
'none'
},
''
,
\
valid_pipes
=
[{
'label'
:
i
,
'value'
:
i
}
for
i
in
all_pipelines
[
obs_
value
]]
if
obs_
value
==
'Interferometric'
:
return
{
'display'
:
'none'
},
{
'display'
:
'none'
},
{
'display'
:
'none'
},
'
Incoherent
'
,
\
{
'display'
:
'none'
},
{
'display'
:
'none'
},
{
'display'
:
'none'
},
\
{},
{
'display'
:
'block'
},
{
'display'
:
'block'
},
\
{},
{
'display'
:
'block'
},
{
'display'
:
'block'
},
\
{
'display'
:
'none'
},
{
'display'
:
'none'
},
{
'display'
:
'none'
},
\
valid_pipes
,
'none'
else
:
return
{},
{
'display'
:
'block'
},
{
'display'
:
'block'
},
'
C
oherent'
,
\
return
{},
{
'display'
:
'block'
},
{
'display'
:
'block'
},
'
Inc
oherent'
,
\
{},
{
'display'
:
'block'
},
{
'display'
:
'block'
},
\
{
'display'
:
'none'
},
{
'display'
:
'none'
},
{
'display'
:
'none'
},
\
{
'display'
:
'none'
},
{
'display'
:
'none'
},
{
'display'
:
'none'
},
\
{},
{
'display'
:
'block'
},
{
'display'
:
'block'
},
\
valid_pipes
,
'none'
...
...
@@ -91,7 +79,15 @@ def toggle_obs_mode(value):
################################################
@
app
.
callback
(
[
Output
(
'stokesRow'
,
'options'
),
Output
(
'stokesRow'
,
'value'
)
Output
(
'stokesRow'
,
'value'
),
Output
(
'nRemoteForm'
,
'style'
),
Output
(
'nRemoteRow'
,
'style'
),
Output
(
'nRemoteRowL'
,
'style'
),
Output
(
'nIntForm'
,
'style'
),
Output
(
'nIntRow'
,
'style'
),
Output
(
'nIntRowL'
,
'style'
),
],
[
Input
(
'tabModeRow'
,
'value'
)]
)
...
...
@@ -105,7 +101,14 @@ def toggle_stokes(value):
'Incoherent'
:
[
'I'
,
'IQUV'
]
}
valid_stokes
=
[{
'label'
:
i
,
'value'
:
i
}
for
i
in
all_stokes
[
value
]]
return
valid_stokes
,
'I'
if
value
==
'Incoherent'
:
return
valid_stokes
,
'I'
,
\
{},
{
'display'
:
'block'
},
{
'display'
:
'block'
},
\
{},
{
'display'
:
'block'
},
{
'display'
:
'block'
}
else
:
return
valid_stokes
,
'I'
,
\
{
'display'
:
'none'
},
{
'display'
:
'none'
},
{
'display'
:
'none'
},
\
{
'display'
:
'none'
},
{
'display'
:
'none'
},
{
'display'
:
'none'
},
##############################################
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment