Skip to content

Improved saveDataPoint Function#15

Open
isaachenoweth wants to merge 5 commits into
seanth:terrainfrom
isaachenoweth:terrain
Open

Improved saveDataPoint Function#15
isaachenoweth wants to merge 5 commits into
seanth:terrainfrom
isaachenoweth:terrain

Conversation

@isaachenoweth
Copy link
Copy Markdown

optimized list initialization in saveDataPoint by looping it
removed "theHeader=basicsheaders" since it's an unnecessary liaison--also calls "theHeader" instead of "basicHeaders"
removed Data Extracter.py--contained all instances of cherrypy outside of Species Builder.py
looped list initialization for the seed, plant, and corpse list
created masterlist to be a container for the other three lists--just to loop header appendation, then reinitialize to save RAM
entirely reworked savedatapoint's looping structure--instead of calling each variable it wants while storing it to a string, and then appending a string based on the plants age, we store age-independent variables to a list outside of if-statements to avoid repetition, and extend the list based on whether or not a plant's age is above 0. if we keep any variable that tries to divide by zero outside of these statements, vida will attempt to divide by 0 and exit. additionally, thedata is stored in formatted strings instead of regular strings since i could not find a % operator to call lists.
looped reinitialization of the seed, plant, and corpse lists at the end of the savedatapoint function

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant