agentmodels / webppl-agents

Webppl library for generating Gridworld MDPs. JS library for displaying Gridworld.
22 stars 4 forks source link

Where is lodash coming from when running from the CLI? #18

Closed jsalvatier closed 8 years ago

jsalvatier commented 8 years ago

When I run with webppl --require webppl-timeit --require webppl-dp -require . tests/hyperbolic.sh

I get an error about .get not being a function (I make this reference to .get), but as far as I can tell lodash 4.6.1 should have _.get.

stuhlmueller commented 8 years ago

If you're talking about webppl code (as opposed to js code), it's using underscore (1.8.3).

jsalvatier commented 8 years ago

Ah, okay, that makes sense. I tried defining a function get in gridworld.js and then accessing it via GridWorld.get which also didn't work. What am I misunderstanding?

stuhlmueller commented 8 years ago

Did you add it to module.exports in the same file?

jsalvatier commented 8 years ago

Yes

On Thu, Mar 3, 2016 at 5:51 PM Andreas Stuhlmüller notifications@github.com wrote:

Did you add it to module.exports in the same file?

— Reply to this email directly or view it on GitHub https://github.com/agentmodels/webppl-gridworld/issues/18#issuecomment-192054255 .