Skip to content

Commit

Permalink
Combine mig2.x
Browse files Browse the repository at this point in the history
  • Loading branch information
unkcpz committed Nov 10, 2022
1 parent 730104f commit e7a4e1e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
4 changes: 1 addition & 3 deletions aiidalab_qe/steps.py
Original file line number Diff line number Diff line change
Expand Up @@ -728,9 +728,7 @@ def _check_resources(self):
return # No code selected, nothing to do.

num_cpus = self.resources_config.num_cpus.value
on_localhost = (
load_code(self.pw_code.value).computer.get_hostname() == "localhost"
)
on_localhost = load_node(self.pw_code.value).computer.hostname == "localhost"
if self.pw_code.value and on_localhost and num_cpus > 1:
self._show_alert_message(
"The selected code would be executed on the local host, but "
Expand Down
10 changes: 5 additions & 5 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ project_urls =
[options]
packages = find:
install_requires =
Jinja2~=2.11.3
aiida-core~=1.0
aiida-quantumespresso~=3.5
Jinja2~=3.0
aiida-core~=2.0
aiida-quantumespresso~=4.0
aiidalab-qe-workchain@https://github.com/aiidalab/aiidalab-qe/releases/download/v22.09.1/aiidalab_qe_workchain-1.0-py3-none-any.whl
aiidalab-widgets-base~=1.4.1
filelock~=3.3.0
filelock~=3.8
importlib-resources~=5.2.2
widget-bandsplot~=0.2.8
python_requires = >=3.7
python_requires = >=3.8

[options.extras_require]
dev =
Expand Down
4 changes: 2 additions & 2 deletions src/setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ project_urls =
[options]
packages = find:
install_requires =
aiida-core~=1.0
aiida-quantumespresso~=3.2
aiida-core~=2.0
aiida-quantumespresso~=4.0
python_requires = >=3.7

[flake8]
Expand Down

0 comments on commit e7a4e1e

Please sign in to comment.