Skip to content

Commit

Permalink
Feature: Implement new code resource widgets (#279)
Browse files Browse the repository at this point in the history
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Carl Simon Adorf <simon.adorf@epfl.ch>
  • Loading branch information
3 people committed Jan 24, 2022
1 parent 06a18e6 commit 30d93eb
Show file tree
Hide file tree
Showing 10 changed files with 1,347 additions and 71 deletions.
8 changes: 7 additions & 1 deletion aiidalab_widgets_base/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
load_profile()

from .codes import AiiDACodeSetup, CodeDropdown
from .computational_resources import (
ComputationalResourcesWidget,
ComputerDropdownWidget,
)
from .computers import AiidaComputerSetup, ComputerDropdown, SshComputerSetup
from .databases import (
CodeDatabaseWidget,
Expand Down Expand Up @@ -43,11 +47,13 @@
"AiidaComputerSetup",
"AiidaNodeViewWidget",
"BasicStructureEditor",
"CodQueryWidget",
"CodeDatabaseWidget",
"CodeDropdown",
"CodQueryWidget",
"ComputerDatabaseWidget",
"ComputationalResourcesWidget",
"ComputerDropdown",
"ComputerDropdownWidget",
"ElnConfigureWidget",
"ElnExportWidget",
"ElnImportWidget",
Expand Down
11 changes: 11 additions & 0 deletions aiidalab_widgets_base/codes.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

from subprocess import check_output

import deprecation
import ipywidgets as ipw
from aiida.orm import Code, QueryBuilder, User
from aiida.plugins.entry_point import get_entry_point_names
Expand All @@ -11,6 +12,11 @@
from .computers import ComputerDropdown


@deprecation.deprecated(
deprecated_in="1.3",
removed_in="2.0",
details="Use the ComputationalResourcesWidget instead.",
)
class CodeDropdown(ipw.VBox):
"""Code selection widget.
Attributes:
Expand Down Expand Up @@ -153,6 +159,11 @@ def _validate_selected_code(self, change):
return None


@deprecation.deprecated(
deprecated_in="1.3",
removed_in="2.0",
details="Use the ComputationalResourcesWidget instead.",
)
class AiiDACodeSetup(ipw.VBox):
"""Class that allows to setup AiiDA code"""

Expand Down

0 comments on commit 30d93eb

Please sign in to comment.