SSCHAcode / python-sscha

The python implementation of the Stochastic Self-Consistent Harmonic Approximation (SSCHA).
GNU General Public License v3.0
55 stars 21 forks source link

Cluster module with active_shell does not work when the cluster displays a banner #197

Open mesonepigreco opened 8 months ago

mesonepigreco commented 8 months ago

If the cluster displays a banner on login (which is very common), the active_shell option does not work. This is because it uses the --login on every ssh command. The solution should be straightforward: remove the active shell option on all the commands requiring reading the cluster output. An even better option would be to run a mock ssh --login run, capture all the output, and remove it when reading. However, this does not account for eventual randomness and variable information (storage, timing, available computational resources, or costs).

mesonepigreco commented 7 months ago

It has been partially fixed by allowing the use of active_shell only on submission commands, not in read commands (like squeue).