Use "entry_points" keyword in setup() to add command "xfntr" in ocmmand line. There might be path problems.
entry_points = { # create scripts and add to sys.PATH
'console_scripts':[
'xfntr1 = xfntr.main:main'
],
'gui_scripts': [
'xfntr = xfntr.main:main'
]
}
Command line might not be albe to find the right path where the module is. In main.py, added the following so it can find module mainwindow.py
import os
# Use absolute path instead of relative path ('./') to avoid trouble when installed by pip
dir_path = os.path.dirname(os.path.realpath(__file__))
sys.path.append(dir_path)
In mainwindow.py, added the following
import os
# Use absolute path instead of relative path ('./') to avoid trouble when installed by pip
dir_path = os.path.dirname(os.path.realpath(__file__))
and used the absolute file path for GUI files:
UI_path = dir_path + '/GUI/'
Rewrote "parratt function" in python and removed all fortran code dependencies. Used Numba
package to speed up the python function.
- Rewrite the core function in c and call it from python.
- Learn array in C.
- Write test code.
- Think of implementing 2D fitting in (qz,sh) space.
- Core function is ready for 2D calculation.
- Implement 3D plot to plot surface in (qz,sh) space.
- Identify which part of data is sensitive to a particular parameter.
- Propose a measurement procedure.
- Implement parallel computing.
- Add function for simple calculations. For example:
- Electron density calculation