My latest adventures have revolved around solving ordinary differential equations (ODE’s), for the most part, in R. To do this, I’ve been using the ode() function from the deSolve package. In the next step of what I’m trying to do, though, it seems I need dede() for delayed differential equations. From what I understand, you […]
Continue reading..Using ode() from the deSolve Package in RBackground Welcome to my continued adventures in translating Stella models to R. To catch you up in case you haven’t been following along (i.e. a high probability that this applies to you) I’ve been retooling the StellaR.py script that I found on the internet. The latest version on the linked site is buggy and old, […]
Continue reading..Part 2: Fixing the Stella R Python ScriptA smew was called in 45 min. after the sighting in the Duluth Harbor! No one was able to relocate it, though. 🙁
Continue reading..Smew Reported from Practically My Backyard!To fix along yourself, first download StellaR.py v. 1.3. First, I’ll start with in-place changes so I can reference the original line numbers. Line 321 needs an added test to see if there’s really anything “to” the model, even if the INIT is found: if init_match and len(lines[i-1].strip().split()[6:-2]) > 0: Line 354: I added the […]
Continue reading..Part 1: Fixing the Stella R Python ScriptI was in the process of documenting my changes to the script in an orderly fashion, but I ended up having to “overhaul” it to get it to run properly. It might not be worth a detailed post to document all the changes; it may just have to stand on its own as a new […]
Continue reading..My Stella R Project: Total OverhaulI converted array variables to just regular variables; I replaced the front bracket with an underscore and removed the closing bracket. Does this have any consequence? I still may have some order of operations problems since I took parentheses out unless there are functions to be translated within if statements… Does case not matter for […]
Continue reading..Some Lingering Questions: Stella –> RYou can use the handy 2to3 script included with a Python 3 install, and I sincerely hope that solves all of your problems. If it doesn’t, here are some things to think about… The default open() behavior changes between versions, namely in what it considers a newline. I had something strange happen: the same things […]
Continue reading..Some Extra Considerations: Python 2-3With my fresh install of Python 3.6 and upgrade of editor/IDE to LiClipse with PyDev, I’m feeling like a whole new me! 🙂 I’m ready now to upgrade the script I’ve been working on to be compatible with the latest version of Python. Running a Script Here’s a quick how-to, if you’re just getting started […]
Continue reading..Diving In: Python 3.6, Here I Come!We took a scenic Easter drive, and visited a park just established less than a year ago in Silver Bay. It was raining and sleeting, but we still got out and looked around a little.
Continue reading..Black Beach Park (North Shore Drive)My ecologist boyfriend is visiting for Easter weekend, and we finally visited a trail I’ve been wanting to check out this evening. We parked at Loon’s Foot Landing and walked just past 39th Ave. before turning back.
Continue reading..Walking the Osaugie Trail in my Block