Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
njzjz committed Nov 28, 2018
1 parent ee5306e commit 0683d5e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
9 changes: 3 additions & 6 deletions reacnetgenerator/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ class ReacNetGenerator(object):

def __init__(self, inputfiletype='lammpsbondfile', inputfilename='bonds.reaxc', atomname=["C", "H", "O"], selectatoms=None, originfilename=None, hmmfilename=None, atomfilename=None, moleculefilename=None, atomroutefilename=None, reactionfilename=None, tablefilename=None, moleculetempfilename=None, moleculetemp2filename=None, moleculestructurefilename=None, imagefilename=None, speciesfilename=None, resultfilename=None, stepinterval=1, p=[0.5, 0.5], a=[[0.999, 0.001], [0.001, 0.999]], b=[[0.6, 0.4], [0.4, 0.6]], runHMM=True, SMILES=True, getoriginfile=False, species={}, node_size=200, font_size=6, widthcoefficient=1, maxspecies=20, nolabel=False, needprintspecies=True, filter=[], node_color=[78/256, 196/256, 238/256], pos={}, printfiltersignal=False, showid=True, k=None, start_color=[0, 0, 1], end_color=[1, 0, 0], nproc=None, speciescenter=None, n_searchspecies=2):
''' Init ReacNetGenerator '''
print(__doc__)
print("Version: %s" % __version__, "Creation date: %s" %
__date__, "Update date: %s" % __update__)
self.inputfiletype = inputfiletype
self.inputfilename = inputfilename
self.atomname = atomname
Expand Down Expand Up @@ -786,9 +789,3 @@ def _commandline():
args = parser.parse_args()
ReacNetGenerator(inputfilename=args.inputfilename, atomname=args.atomname, runHMM=not args.nohmm,
inputfiletype=('lammpsdumpfile' if args.dump else 'lammpsbondfile'), nproc=args.nproc).runanddraw()


if __name__ == 'reacnetgenerator':
print(__doc__)
print("Version: %s" % __version__, "Creation date: %s" %
__date__, "Update date: %s" % __update__)
5 changes: 1 addition & 4 deletions reacnetgenerator/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ class GUI():

def __init__(self):
'''Init GUI class'''
print(__doc__)
self._filename = ''

def gui(self):
Expand Down Expand Up @@ -101,7 +102,3 @@ def _openfiles(self):
def gui():
'''Open GUI version of ReacNetGenerator'''
GUI().gui()


if __name__ == 'reacnetgenerator.gui':
print(__doc__)

0 comments on commit 0683d5e

Please sign in to comment.