pysal / notebooks

jupyter/ipython notebooks demonstrating PySAL functionality
55 stars 38 forks source link

File Error Not Found - Multiple notebooks #60

Open thedatalass opened 5 years ago

thedatalass commented 5 years ago

Dispersion Test

import os
os.chdir('/Users/toshan/dev/pysal/pysal/contrib/spint')
from count_model import CountModel
import numpy as np
import pandas as pd
from gravity import Gravity, Production, Attraction, Doubly, BaseGravity
import statsmodels.formula.api as smf
from statsmodels.api import families
os.chdir('/Users/toshan/dev/pysal/pysal/contrib/glm')
from glm import GLM
from family import Poisson, QuasiPoisson

import pysal
import os
os.chdir('/Users/toshan/dev/pysal/pysal/contrib/spint')
from dispersion import alpha_disp, phi_disp
---------------------------------------------------------------------------
FileNotFoundError                         Traceback (most recent call last)
<ipython-input-1-b8d025f70293> in <module>
      1 import os
----> 2 os.chdir('/Users/toshan/dev/pysal/pysal/contrib/spint')
      3 from count_model import CountModel
      4 import numpy as np
      5 import pandas as pd

FileNotFoundError: [Errno 2] No such file or directory: '/Users/toshan/dev/pysal/pysal/contrib/spint'

NetW

import numpy as np
import os
os.chdir('/Users/toshan/dev/pysal/pysal/weights')
from spintW import netW, mat2L
---------------------------------------------------------------------------
FileNotFoundError                         Traceback (most recent call last)
<ipython-input-1-a4e23daf5780> in <module>
      1 import numpy as np
      2 import os
----> 3 os.chdir('/Users/toshan/dev/pysal/pysal/weights')
      4 from spintW import netW, mat2L

FileNotFoundError: [Errno 2] No such file or directory: '/Users/toshan/dev/pysal/pysal/weights'