Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data loading error in tests #1

Open
syadlowsky opened this issue Mar 2, 2015 · 1 comment
Open

Data loading error in tests #1

syadlowsky opened this issue Mar 2, 2015 · 1 comment
Assignees

Comments

@syadlowsky
Copy link

There seems to be an error running the test_Los_Angeles_OSM_network.TestLosAngelesOSMNetwork test:

 ........E
 ======================================================================
 ERROR: test_compile (test_Los_Angeles_OSM_network.TestLosAngelesOSMNetwork)
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "/home/steve/bayen/synthetic-traffic/tests/test_Los_Angeles_OSM_network.py", line 13, in test_compile
     cp = CellPath(NB=150*r,NL=50*r,NS=800*r,TN=LA)
   File "sensors/CellPath.py", line 31, in __init__
     self.sample_from_TN(TN)
   File "sensors/CellPath.py", line 38, in sample_from_TN
     self._sample_from_TN_grid(TN)
   File "sensors/CellPath.py", line 85, in _sample_from_TN_grid
     heavy_points = TN.get_heavy_points(thresh=self.thresh)
   File "networks/LosAngelesOSMNetwork.py", line 19, in get_heavy_points
     roads = pickle.load(open('%s/%s' % (c.DATA_DIR,c.ROAD_FILE)))
 IOError: [Errno 2] No such file or directory: '/home/steve/Dropbox/PhD/traffic-estimation/synthetic_traffic/data/roads.pkl'

 ----------------------------------------------------------------------
 Ran 9 tests in 28.980s

 FAILED (errors=1)
@syadlowsky syadlowsky assigned syadlowsky and cathywu and unassigned syadlowsky Mar 2, 2015
@syadlowsky
Copy link
Author

Oh, now I see the config file. It wasn't particularly clear in the README that this needed to be edited. Also, what directory should this point to?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants