larray-project / larray

N-dimensional labelled arrays in Python
https://larray.readthedocs.io/
GNU General Public License v3.0
8 stars 6 forks source link

fixe wrong level in UserWarning raised from CheckedSession.__init__() #968

Closed alixdamman closed 2 years ago

alixdamman commented 3 years ago

From the code of one of our in-house model:

C:\Users\ald\Miniconda3\lib\site-packages\larray\core\checked.py:433: UserWarning: 'y_exercice' is not declared in 'DemoHypo'
  self.__setattr__(name, value, skip_allow_mutation=True)

It should point to the line of the model instead of line 433 from checked.py