Loading python/qcor.py +2 −2 Original line number Diff line number Diff line Loading @@ -186,8 +186,8 @@ class qjit(object): if descStr.startswith("<module "): moduleName = descStr.split()[1].replace("'", "") importedModules[key] = moduleName else: # Import global variables: elif key in fbody_src: # Import global variables (if used in the body): # Only support float atm if (isinstance(globalVars[key], float)): globalVarDecl.append(key + " = " + str(globalVars[key])) Loading Loading
python/qcor.py +2 −2 Original line number Diff line number Diff line Loading @@ -186,8 +186,8 @@ class qjit(object): if descStr.startswith("<module "): moduleName = descStr.split()[1].replace("'", "") importedModules[key] = moduleName else: # Import global variables: elif key in fbody_src: # Import global variables (if used in the body): # Only support float atm if (isinstance(globalVars[key], float)): globalVarDecl.append(key + " = " + str(globalVars[key])) Loading