Improved saveDataPoint Function#15
Open
isaachenoweth wants to merge 5 commits into
Open
Conversation
Garden is not an iterable object, keep this in two different for loops
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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