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

Change path from sys.path[0] to . #288

Merged
merged 8 commits into from
Jul 9, 2024
Merged

Conversation

AVHopp
Copy link
Collaborator

@AVHopp AVHopp commented Jun 27, 2024

This PR changes the path for saving the results from sys.path[0] to ".".

As far as I understand, this has the consequence of the images being created in the directory from which python is being called, and I added a corresponding explanation at the corresponding positions.
Note that this change should not have any influence on the shown images: The tests that I did on my fork showed that the static images that we insert manually into the jupyter notebooks are still correctly inserted, even with this change.

@AVHopp AVHopp self-assigned this Jun 27, 2024
@AVHopp AVHopp added the documentation Improvements or additions to documentation label Jun 27, 2024
@AVHopp AVHopp marked this pull request as draft June 27, 2024 15:26
@AVHopp AVHopp marked this pull request as ready for review June 27, 2024 16:09
Copy link
Collaborator

@AdrianSosic AdrianSosic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @AVHopp, thanks for taking care of the problem. Here two comments, though.

@AVHopp AVHopp force-pushed the docs/change_paths_in_exampels branch from d235d71 to 56437f4 Compare July 8, 2024 13:22
@AVHopp
Copy link
Collaborator Author

AVHopp commented Jul 8, 2024

@AdrianSosic I have now changed the location to sys.argv[0] in the plotting utility. The tests pass here in the CI pipeline, and I have verified locally that the documentation is built correctly. The branch is also already rebased, so feel free to adjust your review and merge accordingly :)

@AVHopp AVHopp merged commit 6ffabcc into main Jul 9, 2024
10 checks passed
@AVHopp AVHopp deleted the docs/change_paths_in_exampels branch July 9, 2024 08:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants