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 BlockI use the latest R (v. 3.3.3) and RStudio (v. 1.0.136), the latter of which has a default setting for the # of lines the console displays (under Tools -> Global Options -> Code -> Display -> Console). You can change it to 0 to get it to display all the lines, but it seems […]
Continue reading..A Limitation of R: Line Length LimitsAt this point, the script writes out all of its pieces, so that’s a landmark in this debugging process. Now, I’m catching problems where the R script crashes, and they’re becoming more cryptic as I go, which is to be expected. I found a line in my original Stella model that has an essentially meaningless […]
Continue reading..Current Challenges in the Stella -> R ConversionI finally figured out what the Rainy River Energy Corporation property was near the Nemadji River. They want to (or did) grade the bank of the river. From the signage up at the property, they did in fact do enough damage to need a permit (> 1 acre). I wonder if this is why there’s now […]
Continue reading..Exploring My BBA Block: Superior CE