Skip to content

Commit

Permalink
Discard note in basic settings
Browse files Browse the repository at this point in the history
  • Loading branch information
edan-bainglass committed Dec 28, 2024
1 parent 7e73aea commit 08d311a
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions src/aiidalab_qe/app/configuration/basic/basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,18 +45,6 @@ def render(self):
(self._model, "spin_type"),
(self.spin_type, "value"),
)
self.magnetization_info = ipw.HTML(
value="""
<div style="margin-left: 10px;">
Set the desired magnetic configuration in <b>advanced</b> settings
</div>
""",
layout=ipw.Layout(visibility="hidden"),
)
self.spin_type.observe(
self._on_spin_type_change,
"value",
)

# Spin-Orbit calculation
self.spin_orbit = ipw.ToggleButtons(style={"description_width": "initial"})
Expand Down Expand Up @@ -121,7 +109,6 @@ def render(self):
layout=ipw.Layout(justify_content="flex-start", width="120px"),
),
self.spin_type,
self.magnetization_info,
],
layout=ipw.Layout(align_items="baseline"),
),
Expand Down Expand Up @@ -159,9 +146,3 @@ def render(self):

def _on_input_structure_change(self, _):
self.refresh(specific="structure")

def _on_spin_type_change(self, _):
if self.spin_type.value == "none":
self.magnetization_info.layout.visibility = "hidden"
else:
self.magnetization_info.layout.visibility = "visible"

0 comments on commit 08d311a

Please sign in to comment.