Skip to content

Commit

Permalink
Merge branch 'main' into fix/1001/improve_calculation_history
Browse files Browse the repository at this point in the history
  • Loading branch information
superstar54 committed Dec 19, 2024
2 parents 43fe5e2 + b288780 commit 67aacc8
Show file tree
Hide file tree
Showing 6 changed files with 47 additions and 25 deletions.
7 changes: 5 additions & 2 deletions calculation_history.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,11 @@
"source": [
"%%capture\n",
"from aiida import load_profile\n",
"from aiidalab_widgets_base.utils.loaders import load_css\n",
"\n",
"load_profile()"
"load_profile()\n",
"\n",
"load_css(css_path=\"src/aiidalab_qe/app/static/styles\")"
]
},
{
Expand Down Expand Up @@ -111,7 +114,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"display_name": "base",
"language": "python",
"name": "python3"
},
Expand Down
Binary file added miscellaneous/logos/history.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added miscellaneous/logos/plugins.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added miscellaneous/logos/workbench.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 0 additions & 5 deletions src/aiidalab_qe/plugins/pdos/workchain.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,6 @@ def get_builder(codes, structure, parameters, **kwargs):
def update_inputs(inputs, ctx):
"""Update the inputs using context."""
inputs.structure = ctx.current_structure
inputs.nscf.pw.parameters = inputs.nscf.pw.parameters.get_dict()
if ctx.current_number_of_bands:
inputs.nscf.pw.parameters.setdefault("SYSTEM", {}).setdefault(
"nbnd", ctx.current_number_of_bands
)


workchain_and_builder = {
Expand Down
60 changes: 42 additions & 18 deletions start.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,45 @@


def get_start_widget(appbase, jupbase, notebase): # noqa: ARG001
return ipw.HTML(
f"""
<table>
<tr>
<th style="text-align:center">Utils</th>
<tr>
<td valign="top"><ul>
<li><a href="{appbase}/calculation_history.ipynb" target="_blank">Calculation history</a></li>
<li><a href="{appbase}/plugin_list.ipynb" target="_blank">Plugins</a></li>
</ul></td>
</tr>
</table>
<div align="center">
<a href="{appbase}/qe.ipynb" target="_blank">
<img src="https://gitlab.com/QEF/q-e/raw/develop/logo.jpg" height="120px" width=243px">
</a>
</div>"""
)
return ipw.HTML(f"""
<div class="app-container">
<a href="https://www.quantum-espresso.org/" target="_blank">
<img
src="https://gitlab.com/QEF/q-e/raw/develop/logo.jpg"
height="180px"
width=323px">
</a>
<div class="features">
<a
class="feature"
href="{appbase}/qe.ipynb"
target="_blank">
<img
class="feature-logo"
src="{appbase}/miscellaneous/logos/workbench.png"
alt="New calculation" />
<div class="feature-label">New calculation</div>
</a>
<a
class="feature"
href="{appbase}/calculation_history.ipynb"
target="_blank">
<img
class="feature-logo"
src="{appbase}/miscellaneous/logos/history.png"
alt="Calculation history" />
<div class="feature-label">Calculation History</div>
</a>
<a
class="feature"
href="{appbase}/plugin_list.ipynb"
target="_blank">
<img
class="feature-logo"
src="{appbase}/miscellaneous/logos/plugins.png"
alt="Plugin store" />
<div class="feature-label">Plugin store</div>
</a>
</div>
</div>
""")

0 comments on commit 67aacc8

Please sign in to comment.