Spaces:
Running
Running
kartikmandar
commited on
Commit
•
f0e5acf
1
Parent(s):
79a213a
add loading functionality
Browse files- assets/icons/svg.py +0 -1
- explorer.py +26 -13
- files/data/LightCurve_bexvar.fits +0 -0
- files/data/bexvar_results_band_0.npy +0 -0
- files/data/lcurveA.fits +1 -0
- files/data/lcurve_new.fits +9 -0
- files/data/monol_testA.evt +22 -0
- files/data/monol_testA_calib.evt +100 -0
- files/data/monol_testA_calib_unsrt.evt +100 -0
- files/data/nomission.evt +22 -0
- files/data/xte_gx_test.evt.gz +0 -0
- files/data/xte_test.evt.gz +0 -0
- modules/DataLoading/DataIngestion.py +183 -42
- modules/Home/HomeContent.py +94 -50
- modules/QuickLook/LightCurve.py +25 -6
- utils/dashboardClasses.py +4 -9
- utils/globals.py +1 -0
- utils/sidebar.py +51 -19
- utils/strings.py +1 -1
assets/icons/svg.py
CHANGED
@@ -7,4 +7,3 @@ HOME_ICON_SVG = """
|
|
7 |
LOAD_DATA_ICON_SVG = """
|
8 |
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-file-upload"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M14 3v4a1 1 0 0 0 1 1h4" /><path d="M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z" /><path d="M12 11v6" /><path d="M9.5 13.5l2.5 -2.5l2.5 2.5" /></svg>
|
9 |
"""
|
10 |
-
|
|
|
7 |
LOAD_DATA_ICON_SVG = """
|
8 |
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-file-upload"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M14 3v4a1 1 0 0 0 1 1h4" /><path d="M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z" /><path d="M12 11v6" /><path d="M9.5 13.5l2.5 -2.5l2.5 2.5" /></svg>
|
9 |
"""
|
|
explorer.py
CHANGED
@@ -1,5 +1,13 @@
|
|
1 |
import panel as pn
|
2 |
-
from modules.Home.HomeContent import
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
from utils.sidebar import create_sidebar
|
4 |
|
5 |
|
@@ -12,26 +20,24 @@ busy_indicator = pn.indicators.BooleanStatus(
|
|
12 |
)
|
13 |
|
14 |
# Create the header
|
15 |
-
header =
|
16 |
|
17 |
# Create the main area
|
18 |
-
main_area =
|
19 |
|
20 |
# Create the output box
|
21 |
-
output_box =
|
22 |
|
23 |
# Create the warning box
|
24 |
-
warning_box =
|
25 |
-
|
26 |
# Create the plots container
|
27 |
-
bokeh_plots =
|
28 |
|
29 |
# Create the help box
|
30 |
-
help_box =
|
31 |
|
32 |
# Create the footer
|
33 |
-
footer =
|
34 |
-
|
35 |
# Containers for changing the layouts dynamically
|
36 |
header_container = pn.Column(header)
|
37 |
main_area_container = pn.Column(main_area)
|
@@ -41,7 +47,14 @@ bokeh_plots_container = pn.Column(bokeh_plots)
|
|
41 |
help_box_container = pn.Column(help_box)
|
42 |
footer_container = pn.Column(footer)
|
43 |
|
44 |
-
sidebar = create_sidebar(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
45 |
|
46 |
|
47 |
# Create a FastGridTemplate layout
|
@@ -69,8 +82,8 @@ layout = pn.template.FastGridTemplate(
|
|
69 |
save_layout=True,
|
70 |
# Styling parameter
|
71 |
theme="default",
|
72 |
-
theme_toggle=
|
73 |
-
|
74 |
neutral_color="#D3D3D3",
|
75 |
accent_base_color="#5ead61",
|
76 |
header_background="#000000",
|
|
|
1 |
import panel as pn
|
2 |
+
from modules.Home.HomeContent import (
|
3 |
+
home_header,
|
4 |
+
home_main_area,
|
5 |
+
home_output_box,
|
6 |
+
home_warning_box,
|
7 |
+
home_plots_area,
|
8 |
+
home_help_area,
|
9 |
+
home_footer
|
10 |
+
)
|
11 |
from utils.sidebar import create_sidebar
|
12 |
|
13 |
|
|
|
20 |
)
|
21 |
|
22 |
# Create the header
|
23 |
+
header = home_header
|
24 |
|
25 |
# Create the main area
|
26 |
+
main_area = home_main_area
|
27 |
|
28 |
# Create the output box
|
29 |
+
output_box = home_output_box
|
30 |
|
31 |
# Create the warning box
|
32 |
+
warning_box = home_warning_box
|
|
|
33 |
# Create the plots container
|
34 |
+
bokeh_plots = home_plots_area
|
35 |
|
36 |
# Create the help box
|
37 |
+
help_box = home_help_area
|
38 |
|
39 |
# Create the footer
|
40 |
+
footer = home_footer
|
|
|
41 |
# Containers for changing the layouts dynamically
|
42 |
header_container = pn.Column(header)
|
43 |
main_area_container = pn.Column(main_area)
|
|
|
47 |
help_box_container = pn.Column(help_box)
|
48 |
footer_container = pn.Column(footer)
|
49 |
|
50 |
+
sidebar = create_sidebar(
|
51 |
+
main_area=main_area_container,
|
52 |
+
header=header_container,
|
53 |
+
footer=footer_container,
|
54 |
+
output_box=output_box_container,
|
55 |
+
warning_box=warning_box_container,
|
56 |
+
help_box=help_box_container,
|
57 |
+
)
|
58 |
|
59 |
|
60 |
# Create a FastGridTemplate layout
|
|
|
82 |
save_layout=True,
|
83 |
# Styling parameter
|
84 |
theme="default",
|
85 |
+
theme_toggle=False,
|
86 |
+
background_color="#FFFFFF",
|
87 |
neutral_color="#D3D3D3",
|
88 |
accent_base_color="#5ead61",
|
89 |
header_background="#000000",
|
files/data/LightCurve_bexvar.fits
ADDED
files/data/bexvar_results_band_0.npy
ADDED
Binary file (44.5 kB). View file
|
|
files/data/lcurveA.fits
ADDED
files/data/lcurve_new.fits
ADDED
files/data/monol_testA.evt
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
SIMPLE = T / conforms to FITS standard BITPIX = 8 / array data type NAXIS = 0 / number of array dimensions EXTEND = T OBSERVER= 'Edwige Bubble' TELESCOP= 'NuSTAR ' / Telescope (mission) name INSTRUME= 'FPMA ' / Instrument name END XTENSION= 'BINTABLE' / binary table extension BITPIX = 8 / array data type NAXIS = 2 / number of array dimensions NAXIS1 = 12 / length of dimension 1 NAXIS2 = 1000 / length of dimension 2 PCOUNT = 0 / number of group parameters GCOUNT = 1 / number of groups TFIELDS = 2 / number of table fields TTYPE1 = 'TIME ' TFORM1 = '1D ' TTYPE2 = 'PI ' TFORM2 = '1J ' EXTNAME = 'EVENTS ' / extension name OBSERVER= 'Edwige Bubble' TELESCOP= 'NuSTAR ' / Telescope (mission) name INSTRUME= 'FPMA ' / Instrument name OBS_ID = '00000000001' / Observation ID TARG_ID = 0 / Target ID OBJECT = 'Fake X-1' / Name of observed object RA_OBJ = 0.0 / [deg] R.A. Object DEC_OBJ = 0.0 / [deg] Dec Object RA_NOM = 0.0 / Right Ascension used for barycenter correctionsDEC_NOM = 0.0 / Declination used for barycenter corrections RA_PNT = 0.0 / [deg] RA pointing DEC_PNT = 0.0 / [deg] Dec pointing PA_PNT = 0.0 / [deg] Position angle (roll) EQUINOX = 2000.0 / Equinox of celestial coord system RADECSYS= 'FK5 ' / Coordinate Reference System TASSIGN = 'SATELLITE' / Time assigned by onboard clock TIMESYS = 'TDB ' / All times in this file are TDB MJDREFI = 55197 / TDB time reference; Modified Julian Day (int) MJDREFF = 0.00076601852 / TDB time reference; Modified Julian Day (frac) TIMEREF = 'SOLARSYSTEM' / Times are pathlength-corrected to barycenter CLOCKAPP= F / TRUE if timestamps corrected by gnd sware TIMEUNIT= 's ' / unit for time keywords TSTART = 80000000.0 / Elapsed seconds since MJDREF at start of file TSTOP = 80001025.0 / Elapsed seconds since MJDREF at end of file LIVETIME= 1025.0 / On-source time TIMEZERO= 0.0 / Time Zero COMMENT FITS (Flexible Image Transport System) format is defined in 'Astronomy aCOMMENT nd Astrophysics', volume 376, page 359; bibcode: 2001A&A...376..359H MJDREFF = 7.6601852000000E-04 MJDREFI = 55197 COMMENT MJDREFI+MJDREFF = epoch of Jan 1, 2010, in TT time system. PLEPHEM = 'JPL-DE200' HISTORY File modified by user 'meo' with fv on 2021-01-22T10:29:45 HISTORY File modified by user 'meo' with fv on 2021-05-04T18:37:20 END A�� �: �A���02 A��#k6 �A��(a� �A��
|
2 |
+
�1 �A��=Q� sA��HU�� ;A��K[A� 5A��O� � �A��S
|
3 |
+
aO �A��T�� �A��X1� A��^�J �A��^x�w 2A��c��n �A��g�� �A��h� � BA��l[GQ A��rc;� �A��|CO �A��|l� jA�Ђ�U �A�Ѓ;�� 7A�Є�}� �A�Їg�7 oA�Ћr/� �A�И�F �A�Й�H� ,A�Щ�@� QA�ЮĐF
|
4 |
+
A�ж�@ BA���!�� �A��ӭ�� �A��� �� )A����v� >A����� �A���;3� �A���#(Z �A���o�� GA����9 �A��(8P gA��
|
5 |
+
|