I have already browsed all the topics close to this but couldn't find the answer to my question.
I have the following directory structure
--Codes
+------mod_welch.py
+------__init__.py
+------Toy_Model
++---------__init__.py
++---------linear_filter.py
Both of __init__.py
's are empty and I am trying to access to mod_welch.py in the body of linear_filter.py with no success. When I want to use realtive access to upper folders as
from ..mod_welch import welch
where welch is a function inmod_welch
I receive:
ValueError: Attempted relative import in non-package
What am I doing wrong?