aiidalab / aiidalab-widgets-base

Reusable widgets for AiiDAlab applications
MIT License
6 stars 17 forks source link

Improve `ComputationalResourcesWidget` #542

Open superstar54 opened 7 months ago

superstar54 commented 7 months ago

Currently, the ComputationalResourcesWidget is used to select the code with a default_calc_job_plugin. But not include number of nodes, number of cpus etc.

So either we add support for setting up the computer resource (nodes, cpus), or we change its name similar to AiiDACodeWidget.

Besides, there are some settings that are special to a code, for example, the parallelization levels (pools, images, nk, etc.) in the pw.x code. It would be better to expose some entry point that one can customize it.

superstar54 commented 7 months ago

Here is a use case, https://github.com/aiidalab/aiidalab-qe/pull/566. I created a new ComputationalResourcesWidget from one of the aiidalab-widigets-base.