diff --git a/aiida_flexpart/calculations/collect_sens.py b/aiida_flexpart/calculations/collect_sens.py index f4df53b..84b0f33 100644 --- a/aiida_flexpart/calculations/collect_sens.py +++ b/aiida_flexpart/calculations/collect_sens.py @@ -6,9 +6,11 @@ from pathlib import Path from aiida import orm, common, engine import yaml +import importlib -with open(Path.home() / 'work/aiida-flexpart/config/params.yaml', 'r') as fp: - params_dict = yaml.safe_load(fp) +with importlib.resources.path('aiida_flexpart.templates', "params.yaml") as p: + with open(p, 'r') as fp: + params_dict = yaml.safe_load(fp) cosmo_models = ['cosmo7', 'cosmo1', 'kenda1'] ECMWF_models = ['IFS_GL_05', 'IFS_GL_1', 'IFS_EU_02', 'IFS_EU_01'] diff --git a/config/params.yaml b/aiida_flexpart/templates/params.yaml similarity index 100% rename from config/params.yaml rename to aiida_flexpart/templates/params.yaml