Skip to content

46 inconsistent handling of work function decay parameter processing vs output file naming#48

Open
GianmarcoMidena wants to merge 21 commits into
masterfrom
46-inconsistent-handling-of-work-function-decay-parameter-processing-vs-output-file-naming
Open

46 inconsistent handling of work function decay parameter processing vs output file naming#48
GianmarcoMidena wants to merge 21 commits into
masterfrom
46-inconsistent-handling-of-work-function-decay-parameter-processing-vs-output-file-naming

Conversation

@GianmarcoMidena

Copy link
Copy Markdown
Contributor

Closes #46

@ondrejkrejci ondrejkrejci left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

For now few comments, before I will approve. Thank you!

Comment thread pyPPSTM/visualization.py
Comment thread tests/test_plot_png.py Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

May I just ask here: It checks whether a png file was created? If, so what line checks it?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I'll refactor the code for better readability.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done. Could you now see where the file creation is checked?

Comment thread tests/test_save_npy.py Outdated
@@ -0,0 +1,115 @@
from pathlib import Path

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Are we still using npy, or the new npz?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

npz

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Shouldn't we call the file test_save_npz?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes, I'll rename it.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done

Comment thread tests/test_save_xsf.py Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

as XSF is used from ppafm, I feel, that ppafm should be added to the minimal installation at the end.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

So, does ppafm become a compulsory package for ppastm?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

yes.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Added

Comment thread environment.yml
Comment thread environment_dev.yml
Comment thread environment_min.yml
@GianmarcoMidena GianmarcoMidena force-pushed the 46-inconsistent-handling-of-work-function-decay-parameter-processing-vs-output-file-naming branch from e928bc0 to 1b69996 Compare June 10, 2026 15:15

@ondrejkrejci ondrejkrejci left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

1 change (sorry for misunderstanding) and then it is good to go. Thanks!

Comment thread environment_min.yml
- ppafm==0.4.0

variables:
PPAFM_RECOMPILE: 1

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

For the min one, please remove the PPAFM_RECOMPILE as this is needed just for pytests and dev version, otherwise it should work normally.

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.

Inconsistent Handling of Work Function Decay Parameter: Processing vs Output File Naming

2 participants