ClaCasc / AbspectroscoPY

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

Open vfonsecad opened 2 years ago

vfonsecad commented 2 years ago

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/

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 "./"

ClaCasc commented 2 years ago

Thank you for your suggestion! I will look into it!