Given this, I guess the best way to proceed is:
1. To post these issues in https://github.com/NetLogo/Galapagos/issues
2. To wait a little bit for these to be solved.
Is that what we should do?
No need to worry about opening the tickets yourself. I can handle
that. As for waiting, yes, I think a little bit of that is in order.
Let's go through the items you listed.
With #1 (`read-from-string` support), it's not hugely far off from being
implemented, but it's also not hugely close. It's definitely something
that's on my radar and that I have made a lot of progress on, but I
would guess that it's *at least* one month away, probably a bit more
than that.
An alternative—not a good one, but an alternative, nonetheless—would be
to forego using Input widgets and `read-from-string`, and instead just
have a global variable that users set through the Command Center. The
only advantage that I can think of that that solution is that it's one
that actually works right now in NLW, despite the fact that is offers a
clearly inferior user experience.
Regarding #2 (`no-display`), yeah, that one's a long ways off. `display`
and its ilk are a huge pain to implement correctly in the browser. We
want to implement them, but it's going to be a bit. With primitives like
`display`, I find that the they can usually be worked around with the
stuff in NLW that currently functions, but I'd need to see the model in
order to say for sure, one way or another.
With #3 (the stacked bar charts), I don't plan to make your current code
for that compatible with the plotting functionality in NetLogo Web.
While having stacked bar charts is an undeniably useful thing, your
version of them in NetLogo is achieved by doing some very non-standard
stuff in desktop NetLogo, which the plotting library we're using in NLW
doesn't understand. However, that library /does/ know how to handle
/proper/ stacked bar charts
<http://www.highcharts.com/demo/column-stacked-percent>, so we could
talk at some point about how we modify your web-based models to tap into
the proper functionality instead.
Regarding the bug reported in #5, that was because `extract-rgb`,
`extract-hsb`, `scale-color`, and `shade-of?` weren't wrapping their
color arguments to keep them within [0, 140), so it broke when it got
color number that was `145`. That and #4 (the silly-looking Inputs) are
both now fixed on netlogoweb.org . Thank you for bringing both of those
issues to my attention.
On 09/08/2016 09:41 AM, Luis R. Izquierdo wrote:
Dear Jason,
This post is about running the models inside wordpress,
2. Regarding running NetLogo models: To have a NetLogo engine
inside the book, so everything works even if NetLogo changes too
much for our code. (And potentially be able to change the css of
NetLogoWeb slightly, to make running models fit better with the
rest of the e-book, e.g. fig.1 at
http://ccl.northwestern.edu/2016/WeintropEtAlConstructionism2016-1.pdf
<http://ccl.northwestern.edu/2016/WeintropEtAlConstructionism2016-1.pdf>)
Okay, got it. Do you already know all of the models you want to
use? I primarily ask because I want to know if NetLogo Web can
already do everything you want to be able to do in your book, or
if it makes sense to hold off on this plugin until some feature or
another is implemented.
We have tried to run all the models we have implemented so far, and
these are the issues we have encountered so far:
1. read-from-string is not supported in NetLogo Web so far.
We need a way to allow the user to input lists (or, more generally, a
list of lists). Currently we do this with an input box and
“read-from-string”, but this reporter is not implemented in NetLogo
Web yet.
2. no-display is not supported in NetLogo Web so far. (not big deal)
3. The display of (temporary) pens in bar mode which overlap each
other is not dealt adequately in NetLogo Web yet (see pictures 1-*.png
attached).
4. The appearance of input boxes is not dealt adequately in NetLogo
Web yet (see "payoffs" input box in pictures 2-*.png attached).
5. We have one particular model (attached) which runs fine in Netlogo
Desktop, but throws the following error in NetLogo web:
"A type error has occurred in the simulation engine. More information
about these sorts of errors can be found here
<https://urldefense.proofpoint.com/v2/url?u=https-3A__netlogoweb.org_info-23type-2Derrors&d=CwMFaQ&c=yHlS04HhBraes5BQ9ueu5zKhE7rtNXt_d012z2PA6ws&r=sxGjFFyk2A6rYHwAdDtnqeTKj3cEcXDGDo_G9va2ruI&m=aEqysEkm9CAtkWO8WkOX8pwKW83C6Ee84jK0Q4s0FC4&s=-jzWoTqCXHX-NjTBUc6N3qWt9m5mBUge2ltqMVPMMSs&e=>.
Advanced users might find the generated error helpful, which is as
follows:
*ref is undefined*"
Given this, I guess the best way to proceed is:
1. To post these issues in https://github.com/NetLogo/Galapagos/issues
2. To wait a little bit for these to be solved.
Is that what we should do?
Thank you so much for all your help!
--
You received this message because you are subscribed to the Google
Groups "netlogo-devel" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to netlogo-devel+unsubscr...@googlegroups.com
<mailto:netlogo-devel+unsubscr...@googlegroups.com>.
For more options, visit https://groups.google.com/d/optout
<https://urldefense.proofpoint.com/v2/url?u=https-3A__groups.google.com_d_optout&d=CwMFaQ&c=yHlS04HhBraes5BQ9ueu5zKhE7rtNXt_d012z2PA6ws&r=sxGjFFyk2A6rYHwAdDtnqeTKj3cEcXDGDo_G9va2ruI&m=aEqysEkm9CAtkWO8WkOX8pwKW83C6Ee84jK0Q4s0FC4&s=3fCMuCxjWF46MTCxJdOEda3tBGcaBKkeU3kNshgTm0M&e=>.
--
You received this message because you are subscribed to the Google Groups
"netlogo-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to netlogo-devel+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.