-
Notifications
You must be signed in to change notification settings - Fork 1
33 ppstm simple to functions #36
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
base: master
Are you sure you want to change the base?
Conversation
… global variables
Functions: - tip orbital coefficients based on the tip - get tip positions for fixed or relaxed scan - run_stm_scan (does the scanning)
This file takes a config file as command line argument and runs the stm scan using the settings
Also changed relative location of the repository root. Same will be done for other tests next.
I'm done with the updates now. All the tests have For now, the script is run with a command like this
and there's a default/example config in TODO:
|
I had forget about this - is this an active one? Sorry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, looks very good, comments in the files themselves. Sorry for my delay!
@@ -201,18 +203,16 @@ def to_fermi(eig, fermi, orig_fermi=0.0): | |||
eig -= fermi | |||
return eig; | |||
|
|||
def cut_eigenenergies(eig): | |||
def cut_eigenenergies(eig, cut_min, cut_max): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While, I am definitely for this one, I do not see, that the you would remove the global definitions at line 102 and 103. Would it be possible to remove them? If not, please add a comment so they should be removed in the future.
|
||
if __name__=='__main__': | ||
# Get config file from command line | ||
config_file = sys.argv[1] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please add here a helper message, if there is no argv, or more than 1, thank you!
This is a rather large PR with a lot of changes
pyPPSTM/STMutils.py
andpyPPSTM/visualization.py
that contain all the functionalities previously inPPSTM_simple.py
.toml
filerun_ppstm.py
that uses the functions from the above modules