elenev / localprojections

Jorda (2005) Local Projections in Python
https://localprojections.readthedocs.io/en/latest/
MIT License
2 stars 2 forks source link

Problems with LP #1

Open SimoneMina opened 2 months ago

SimoneMina commented 2 months ago

Hi, i've a problem in replicate your code: how is possible that, when i replicate your example with the same data the code doesn't run:

lpmdl = lp.LP(dfmacro, maxlags=4) out, _ = lpmdl.estimate(12) lp.plot_irfs(out)

{ "name": "AttributeError", "message": "module 'localprojections' has no attribute 'LP'", "stack": "--------------------------------------------------------------------------- AttributeError Traceback (most recent call last) Cell In[131], line 1 ----> 1 lpmdl = lp.LP(dfmacro, maxlags=4) 2 out, _ = lpmdl.estimate(12) 3 lp.plot_irfs(out)

AttributeError: module 'localprojections' has no attribute 'LP'" } thank you for your help

elenev commented 2 months ago

Works on my end. Does your python environment include all the dependencies specified in environment.yml? Did the import statements at the top of the example notebook work correctly?

Also, check for name collisions, delete your pycache, and check file permissions for the localprojections.py file.