Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patch 11 #34

Open
wants to merge 3 commits into
base: fdann-devel
Choose a base branch
from

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.

None yet

1 participant