Closed biprateep closed 1 year ago
+++ b/py/prospect/viewer/vi_widgets.py
@@ -378,6 +378,10 @@ class ViewerVIWidgets(object):
vi_issue_input=self.vi_issue_input,
vi_issue_slabels=self.vi_issue_slabels,
vi_quality_labels=self.vi_quality_labels,
+ vi_spectral_feature_input_emission=self.vi_spectral_feature_input_emission,
+ vi_spectral_feature_input_absorption=self.vi_spectral_feature_input_absorption,
+ spectral_features_emission_slabels=self.spectral_features_emission_slabels,
+ spectral_features_absorption_slabels=self.spectral_features_absorption_slabels,
),
code=recover_vi_code,
)
+++ b/py/prospect/viewer/__init__.py
@@ -373,9 +373,9 @@ def plotspectra(spectra, zcatalog=None, redrock_cat=None, notebook=False, html_d
viewer_vi_widgets.add_vi_quality(viewer_cds, viewer_widgets)
viewer_vi_widgets.add_vi_scanner(viewer_cds)
viewer_vi_widgets.add_guidelines()
+ viewer_vi_widgets.add_vi_spectral_features(viewer_cds, viewer_widgets)
viewer_vi_widgets.add_vi_storage(viewer_cds, viewer_widgets)
viewer_vi_widgets.add_vi_table(viewer_cds)
- viewer_vi_widgets.add_vi_spectral_features(viewer_cds, viewer_widgets)
if (vi_countdown > 0) :
viewer_vi_widgets.add_countdown(vi_countdown)
Thanks @armengau I can confirm that these fixes worked. I copied your code to the commit https://github.com/biprateep/prospect/commit/c83c74edd6e99b4d936f0bf2843cd456f2f0bc92 . I added you as an author in case we need it in the future.
@biprateep Finally I had some time to dig in. For this issue, I made some modifs which I tested, seems to work.
I started a branch to your fork but can't write on your repo, so here are the modifs according to git diff:
1) on the recover_autosave code itself (first lines = just comments; main block of '+' = recover those 'spectral_feature_flag'