#1262: simfactory doesn't know how to handle 'old' simulations -------------------------+-------------------------------------------------- Reporter: knarf | Owner: eschnett Type: defect | Status: review Priority: major | Milestone: ET_2013_05 Component: SimFactory | Version: development version Resolution: | Keywords: -------------------------+--------------------------------------------------
Comment (by anonymous):
It seemed to work, but only because the previous (aborted) invocation wrote a new output-000? directory and the next invocation didn't find an old simulation there and didn't try to restart but started anew. *oh well*. Btw: the same bug also caused already queued simulations to about when they finally started after I updated simfactory.
This patch now works:
{{{ Index: lib/simlib.py =================================================================== --- lib/simlib.py (revision 1990) +++ lib/simlib.py (working copy) @@ -831,9 +831,10 @@ num_smt = simenv.OptionsManager.GetOption('num-smt') if num_smt == None: if existingProperties != None: - num_smt = existingProperties.numsmt - else: - num_smt = GetMachineOption('num-smt') + try: + num_smt = existingProperties.numsmt + except AttributeError: + num_smt = GetMachineOption('num-smt') try: num_smt = int(num_smt) except ValueError: }}}