Open nmearl opened 4 years ago
Related to my comments in #120 , currently to load data programmatically you need to specify the extension directly,
app.add_data_to_viewer('image-viewer', 'jw00626-o030_s00000_nirspec_f170lp-g235m_s2d[SCI]')
Could we improve this to accept the full filename with an optional extension keyword?
data2= '/Users/bcherinka/Downloads/jw00626-o030_s00000_nirspec_f170lp-g235m_s2d.fits'
app.add_data_to_viewer('image-viewer', data2, ext='SCI')
I think this is a bit more user friendly and how people usually deal with filenames in their notebooks. There's no filename parsing involved.
83 added api access to the application, but it was suggested that there ought to be a combined way to add and plot data in a single command. This would effectively do the same as