-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Proposal on handling RemoteData
#105
Comments
In practice, that would require to change the following lines: aiida-shell/src/aiida_shell/calculations/shell.py Lines 340 to 341 in 14866d1
To something like that: remote_nodes = [(name, node) for (name, node) in inputs.get('nodes', {}).items() if isinstance(node, RemoteData)]
instructions = [(computer_uuid, f'{node.get_remote_path()}', name) for (name, node) in remote_nodes] Happy to make a PR :) |
I see the problem and it would be great to support it, but I don't think the proposed solution is the way to go. Most simple use cases rely on the contents of a Instead, I think we should keep the default behavior and just make it possible for the user to specify the target directory for With the
The method |
This solution is also ok for me 👍 |
The current behaviour w.r.t.
RemoteData
object is to copy/symlink all its content in the current folder. But this creates an issue of handling files with the same names (e.g. #58). It becomes especially hard when one uses multipleRemoteData
folders as inputs.I would propose to copy/symlink the folders as is, giving them the name as the input node link.
In practice, it means that a call like the following:
would generate a folder
previous_calc
that is a copy/symlink of the remote_folder.It is a breaking change, but since the project is still in a pre-release phase (0.x version), I assume it is acceptable.
The text was updated successfully, but these errors were encountered: