Skip to content

Conversation

@nasimzf
Copy link
Member

@nasimzf nasimzf commented Jan 2, 2019

In test_string_method.py, if use_fattenhelper is set to True, then it will not call myBuilder.fattenStateSpace(), instead it will use fattenhelper.py which calls fattenStateSpace_batch from builder.py. This will use a constant amount of memory ( <1GB) throughout the fattening of the state space.
for this I've added three functions to builder.py , I've changed test_string_method.py and I've added use_fattenhelper.py

Also, I get some file not closed error in builder.py with statements like this: myFile = open(self.the_dir + str(myOptions.interface.current_seed) + "/protospace.txt", "r")
So I've changed such statements with statements like: with open(self.the_dir + str(myOptions.interface.current_seed) + "/protospace.txt", "r") as myFile:

If use_fattenhelper is set to True, then it will not call  myBuilder.fattenStateSpace(), instead it will use fattenhelper.py which calls fattenStateSpace_batch from builder.py.  This will use a constant amount of memory ( <1GB) throughout the fattening of the state space. 
Also, added fattenhelper.py and changed builder.py
Added three functions, transitionMerge_2, mergeSet_2 and fattenStateSpace_batch , which are used alongside fattenhelper.py to avoid memory leak in test_string_method.py.
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