The AbspectroscoPY toolbox provides functions for importing, preprocessing, explore and analyse absorbance-based sensors data in connection to Natural Organic Matter (NOM).
GNU General Public License v3.0
3
stars
0
forks
source link
Folder structure for config and other functions #1
Also inside the abspectroscopy_functions.py file the config call becomes
from modules.config import *
Inside the notebook, the paths can be made relative to the location of the notebook, so if notebooks.ipynb is in root folder, the input_dir can be "./"
I'd suggest placing the .py files in a folder and then add a init.py empty file so that in the notebooks they are called like
from modules.config import *
import modules.abspectroscopy_functions as abspy
Alternative folder structure:
AbspectroscoPY/
__init__.py
-README.mdAlso inside the abspectroscopy_functions.py file the config call becomes from modules.config import *
Inside the notebook, the paths can be made relative to the location of the notebook, so if notebooks.ipynb is in root folder, the input_dir can be "./"