wsp-sag / Lasso

Python package of utilities for Network Wrangler
https://wsp-sag.github.io/Lasso/
Apache License 2.0
5 stars 3 forks source link

Lasso Scenario Creation Quickstart #59

Closed jhelsel11 closed 4 years ago

jhelsel11 commented 4 years ago

@e-lo, I tried to run Lasso Scenario Creation Quickstart.pynb. I received several errors related to the schema (e..g outboundReferenceIds, inboundReferenceIds). I think the schema that's on master might be out of date?

Would you take a look at the example notebooks and see if you also have problems running them? (If not, maybe it's something in the way I set up the repo?)

i-am-sijia commented 4 years ago

@e-lo @kulshresthaa

Network Wrangler schema needs to be updated to the latest network.

node.geojson:

shape.geojson:

jhelsel11 commented 4 years ago

@i-am-sijia or @e-lo, I would like to run lasso in a notebook that is not stored as a subfolder of the lasso directory. When I do, it throws an error in get_base_dir "Cannot find Lasso base directory from {}, please input using keyword in parameters:lasso_dir =\".format(init_d)

I understand that I need to pass the directory for lasso in and that not doing so is causing the error. However, I'm unclear how to declare a kwarg that you pass in during an import statement (since it fails when I import Project from lasso. (The articles I found on kwargs all touched on using kwargs for a function but not this step.)

e-lo commented 4 years ago

Network Wrangler schema needs to be updated to the latest network.

--> now fixed in Wrangler Develop branch : https://github.com/wsp-sag/network_wrangler/commit/7167f54351267b0af8cce06bfe7c404f5c5fd0d9

Just update your github repo to pull it...

e-lo commented 4 years ago

"Cannot find Lasso base directory from {}, please input using keyword in parameters:lasso_dir = \".format(init_d)

--> moving this to a separate issue