Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data release photometry for lightcurve panel #543

Merged
merged 11 commits into from
Dec 24, 2023
Merged
5 changes: 4 additions & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import dash
import dash_bootstrap_components as dbc
from dash.long_callback import DiskcacheLongCallbackManager
from dash import DiskcacheManager

# import jpype

Expand All @@ -24,6 +25,7 @@

cache = diskcache.Cache("./cache")
long_callback_manager = DiskcacheLongCallbackManager(cache)
background_callback_manager = DiskcacheManager(cache)

args = yaml.load(open('config.yml'), yaml.Loader)

Expand Down Expand Up @@ -56,7 +58,8 @@
"name": "viewport",
"content": "width=device-width, initial-scale=1"
}],
long_callback_manager=long_callback_manager
long_callback_manager=long_callback_manager,
background_callback_manager=background_callback_manager,
)


Expand Down
26 changes: 25 additions & 1 deletion apps/cards.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,31 @@ def card_lightcurve_summary():
)
)
),
help_popover(lc_help, 'help_lc'),
dmc.Group(
[
dmc.Button(
"Request data release photometry",
id='lightcurve_request_release',
variant="outline",
color='gray',
radius='xl', size='xs',
compact=False,
),
help_popover(
lc_help,
JulienPeloton marked this conversation as resolved.
Show resolved Hide resolved
'help_lc',
trigger=dmc.ActionIcon(
DashIconify(icon="mdi:help"),
id='help_lc',
color='gray',
variant="outline",
radius='xl',
size='md',
)
),
],
position='center',
)
], radius='xl', p='md', shadow='xl', withBorder=True
)
return card
Expand Down
Loading
Loading