Part 1: Fixing the Stella R Python Script

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 Script

Some Lingering Questions: Stella –> R

I 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 –> R

Some Extra Considerations: Python 2-3

You 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-3

Diving In: Python 3.6, Here I Come!

With 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!

Current Challenges in the Stella -> R Conversion

At 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 Conversion