Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sentence-case #1034

Merged
merged 2 commits into from
Dec 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/aiidalab_qe/app/configuration/advanced/advanced.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ def render(self):
self.total_charge,
self.van_der_waals,
self.magnetization,
ipw.HTML("<b>Convergence Thresholds:</b>"),
ipw.HTML("<b>Convergence thresholds:</b>"),
ipw.HBox(
children=[
self.forc_conv_thr,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@ def render(self):
self.description = ipw.HTML("<b>Magnetization:</b>")

self.magnetization_type = ipw.ToggleButtons(
style={"description_width": "initial"},
style={
"description_width": "initial",
"button_width": "initial",
},
)
ipw.dlink(
(self._model, "type_options"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ class MagnetizationConfigurationSettingsModel(
type_options = tl.List(
trait=tl.List(tl.Unicode()),
default_value=[
["Starting Magnetization", "starting_magnetization"],
["Tot. Magnetization", "tot_magnetization"],
["Starting magnetization", "starting_magnetization"],
["Total magnetization", "tot_magnetization"],
],
)
type = tl.Unicode("starting_magnetization")
Expand Down
2 changes: 1 addition & 1 deletion src/aiidalab_qe/app/configuration/advanced/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class AdvancedConfigurationSettingsModel(
HasModels[AdvancedCalculationSubSettingsModel],
HasInputStructure,
):
title = "Advanced Settings"
title = "Advanced settings"
identifier = "advanced"

dependencies = [
Expand Down
2 changes: 1 addition & 1 deletion src/aiidalab_qe/app/configuration/basic/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@


class BasicConfigurationSettingsModel(ConfigurationSettingsModel):
title = "Basic Settings"
title = "Basic settings"
identifier = "workchain"

dependencies = [
Expand Down
2 changes: 1 addition & 1 deletion src/aiidalab_qe/app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def __init__(self, qe_auto_setup=True):
("Select structure", self.structure_step),
("Configure workflow", self.configure_step),
("Choose computational resources", self.submit_step),
("Status & Results", self.results_step),
("Status & results", self.results_step),
]
)
self._wizard_app_widget.observe(
Expand Down
12 changes: 6 additions & 6 deletions src/aiidalab_qe/app/static/templates/workflow_summary.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<div class="row">
<div class="column">
<h3>Standard Settings</h3>
<h3>Standard settings</h3>
<table>
<tr>
<td>Structure geometry optimized</td>
Expand Down Expand Up @@ -34,7 +34,7 @@
</table>
</div>
<div class="column">
<h3>Advanced Settings</h3>
<h3>Advanced settings</h3>
<table>
<tr>
<td>Functional</td>
Expand Down Expand Up @@ -91,11 +91,11 @@
</tr>
{% endif %}
<tr>
<td>Total Charge</td>
<td>Total charge</td>
<td>{{ tot_charge }}</td>
</tr>
<tr>
<td>Van der Waals Correction</td>
<td>Van der Waals correction</td>
<td>{{ vdw_corr }}</td>
</tr>

Expand All @@ -106,7 +106,7 @@
</tr>
{% else %}
<tr>
<td>Initial Magnetic Moments</td>
<td>Initial magnetic moments</td>
<td>{{ initial_magnetic_moments }}</td>
</tr>
{% endif %}
Expand All @@ -118,7 +118,7 @@
{% endif %}
{% if spin_orbit %}
<tr>
<td>Spin-Orbit</td>
<td>Spin-orbit coupling</td>
<td>{{ spin_orbit }}</td>
</tr>
{% endif %}
Expand Down
8 changes: 5 additions & 3 deletions src/aiidalab_qe/app/structure/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def _render(self):
LazyLoadedOptimade(title="OPTIMADE"),
LazyLoadedStructureBrowser(title="AiiDA database"),
CategorizedStructureExamplesWidget(
title="From Examples", examples_by_category=examples_by_category
title="From examples", examples_by_category=examples_by_category
),
]

Expand Down Expand Up @@ -149,8 +149,10 @@ def _render(self):
InAppGuide(identifier="structure-step"),
ipw.HTML("""
<p>
Select a structure from one of the following sources and then
click "Confirm" to go to the next step.
Select a structure from one of the following sources, then
click <span style="color: #4caf50;">
<i class="fa fa-check-circle"></i> <b>Confirm</b>
</span> to go to the next step
</p>
"""),
self.manager,
Expand Down
2 changes: 1 addition & 1 deletion src/aiidalab_qe/app/submission/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def _render(self):
self.submission_warning_messages,
ipw.HTML("""
<div style="padding-top: 0px; padding-bottom: 0px">
<h4>Labeling Your Job</h4>
<h4>Labeling your job</h4>
<p style="line-height: 140%; padding-top: 0px; padding-bottom: 10px">
Label your job and provide a brief description. These details
help identify the job later and make the search process easier.
Expand Down
8 changes: 6 additions & 2 deletions src/aiidalab_qe/common/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -1048,7 +1048,9 @@ def _on_render_click(self, _):


class LazyLoadedOptimade(LazyLoadedStructureImporter):
warning_message = "OPTIMADE may take some time to load"
warning_message = (
"OPTIMADE may take some time to load depending on your internet connection"
)

def _get_widget(self):
from aiidalab_widgets_base.databases import OptimadeQueryWidget
Expand All @@ -1057,7 +1059,9 @@ def _get_widget(self):


class LazyLoadedStructureBrowser(LazyLoadedStructureImporter):
warning_message = "The browser may take some time to load, depending on the size of your database."
warning_message = (
"The browser may take some time to load depending on the size of your database"
)

def _get_widget(self):
from aiida import orm
Expand Down
2 changes: 1 addition & 1 deletion src/aiidalab_qe/plugins/bands/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
class BandsConfigurationSettingsModel(ConfigurationSettingsModel):
"""Model for the band structure plugin."""

title = "Bands Structure"
title = "Band structure"
identifier = "bands"

projwfc_bands = tl.Bool(False)
Expand Down
2 changes: 1 addition & 1 deletion src/aiidalab_qe/plugins/bands/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
class BandsResourceSettingsModel(PluginResourceSettingsModel):
"""Model for the band structure plugin."""

title = "Band Structure"
title = "Band structure"
identifier = "bands"

def __init__(self, **kwargs):
Expand Down
2 changes: 1 addition & 1 deletion src/aiidalab_qe/plugins/pdos/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@


class PdosPluginOutline(PluginOutline):
title = "Projected Density of States (PDOS)"
title = "Electronic projected density of states (PDOS)"


pdos = {
Expand Down
2 changes: 1 addition & 1 deletion src/aiidalab_qe/plugins/xas/setting.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def render(self):
# ),
ipw.HTML("""
<div style="padding-top: 0px; padding-bottom: 0px">
<h4>Element and Core-Hole Treatment Setting.</h4>
<h4>Element and core-hole treatment setting.</h4>
</div>
"""),
ipw.HTML("""
Expand Down
4 changes: 2 additions & 2 deletions tests/test_result.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ def test_summary_view(generate_qeapp_workchain):
# find the td with the text "Initial Magnetic Moments"
parameters = {
"Energy cutoff (wave functions)": "30.0 Ry",
"Total Charge": "0.0",
"Initial Magnetic Moments": "",
"Total charge": "0.0",
"Initial magnetic moments": "",
}
for key, value in parameters.items():
td = parsed.find("td", text=key).find_next_sibling("td")
Expand Down
Loading