Skip to content
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

Transport & Engine: factor out getcwd() & chdir() for compatibility with upcoming async transport #6593

Closed
wants to merge 0 commits into from

Conversation

khsrali
Copy link
Contributor

@khsrali khsrali commented Oct 28, 2024

Transport.getcwd() & Transport.chdir() methods used to making life easier by allowing basically all Transport methods to function with relative paths.

However, for upcoming async changes, this was problematic, as several calculations ended up writing and fetching from wrong directories.

This PR, gets ride of the habit of setting working directory for an entire instance of Transport class in engine.
Only because in aiida-core several calculations use a same instance of the Transport, (to avoid opening many channels, etc.)

@khsrali khsrali changed the title Trasnport & `Engine': Transport & Engine: factor out getcwd() & chdir() for compatibility with upcoming async transport Oct 28, 2024
@khsrali khsrali requested a review from GeigerJ2 October 28, 2024 14:50
@khsrali khsrali closed this Oct 28, 2024
@khsrali khsrali removed the request for review from GeigerJ2 October 29, 2024 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant