Skip to content

Commit

Permalink
Add: Initial repsample output tab
Browse files Browse the repository at this point in the history
  • Loading branch information
kon218 committed Jan 23, 2025
1 parent 4e48ae8 commit 71b1af0
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion aiidalab_ispg/app/spectrum_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,19 @@ def __init__(self):
(self, "cross_section_nm"),
(self.photolysis_tab, "cross_section_nm"),
)

self.repsample_tab = RepsampleAnalysisWidget()
ipw.dlink(
(self, "disabled"),
(self.photolysis_tab, "disabled"),
)


tab_components = [self.photolysis_tab, self.density_tab]
tab_components = [self.photolysis_tab, self.density_tab, self.repsample_tab]
tab = ipw.Tab(children=tab_components)
tab.set_title(0, "Photolysis constant")
tab.set_title(1, "Individual transitions")
tab.set_title(2, "Repsample output")
super().__init__(children=[title, tab])

def reset(self):
Expand Down Expand Up @@ -461,3 +469,12 @@ def remove_line(self, label: str, update=True):
:param update: Whether to update the figure after removing the line. Default is True.
"""
self.figure.remove_renderer(label, update=update)

class RepsampleAnalysisWidget(ipw.VBox):
disabled = tl.Bool(default=True)
def __init__(self):

super().__init__(
children=[
]
)

0 comments on commit 71b1af0

Please sign in to comment.