bugged
stringlengths
4
228k
fixed
stringlengths
0
96.3M
__index_level_0__
int64
0
481k
def new(self, *args, **kwargs): return self.basehash(*args, **kwargs)
def new(self, *args, **kwargs): return self.basehash(*args, **kwargs)
455,000
def from_text(cls, rdclass, rdtype, tok, origin = None, relativize = True): token = tok.get() if not token.is_identifier() or token.value != '\#' raise dns.exception.SyntaxError, \ r'generic rdata does not start with \#' length = tok.get_int() chunks = [] while 1: token = tok.get() if token.is_eol_or_eof(): break chunk...
def from_text(cls, rdclass, rdtype, tok, origin = None, relativize = True): token = tok.get() if not token.is_identifier() or token.value != '\#' raise dns.exception.SyntaxError, \ r'generic rdata does not start with \#' length = tok.get_int() chunks = [] while 1: token = tok.get() if token.is_eol_or_eof(): break chunk...
455,001
def add_tsig(self, keyname, secret, fudge, id, tsig_error, other_data, request_mac, algorithm=dns.tsig.default_algorithm): """Add a TSIG signature to the message.
def add_tsig(self, keyname, secret, fudge, id, tsig_error, other_data, request_mac, algorithm=dns.tsig.default_algorithm): """Add a TSIG signature to the message.
455,002
def ParseArgs(self, argv): opts, args = self.ParseWithCommonArgs(argv, OPT_FLAGS, OPT_ARGS)
def ParseArgs(self, argv): opts, args = self.ParseWithCommonArgs(argv, OPT_FLAGS, OPT_ARGS)
455,003
def export_char(outputFile, meshObj = None): '''Exports a mesh as a LoL .skn file. outputFile: Name of file to save the mesh as meshObj: Blender mesh object to export. If none is given we will look for one named 'lolMesh' ''' import bpy if meshObj == None: #If no mesh object was supplied, try the active selection ...
defbpy.ops.transform.resize(value=(1,1,-1), constraint_axis=(False, False, True), constraint_orientation='GLOBAL') export_char(outputFile,bpy.ops.transform.resize(value=(1,1,-1), constraint_axis=(False, False, True), constraint_orientation='GLOBAL') meshObjbpy.ops.transform.resize(value=(1,1,-1), constraint_axis=(False...
455,004
def execute(self, context): import_sco(self.filepath) return {'FINISHED'}
def execute(self, context): import_sco(self.properties.filepath) return {'FINISHED'}
455,005
def run(self, name, args): command = self._pre_run(name, args) command.module.main()
def run(self, name, args): command = self._pre_run(name, args) command.module.main()
455,006
def profile(self, name, args): import profile import pstats import tempfile
def _profile(self, command): import profile import pstats import tempfile
455,007
def profile(self, name, args): import profile import pstats import tempfile
def profile(self, name, args): import profile import pstats import tempfile
455,008
def main(): if "--version" in sys.argv: print version.get_version() sys.exit(0) install_path = os.path.dirname(__file__) if PATH_LIBEXEC: os.environ['PATH'] = os.path.join(install_path, PATH_LIBEXEC) + ":" + \ os.environ['PATH'] pylib_path = os.path.join(install_path, PATH_LIB) sys.path.insert(0, pylib_path) command...
def main(): if "--version" in sys.argv: print version.get_version() sys.exit(0) install_path = os.path.dirname(__file__) if PATH_LIBEXEC: os.environ['PATH'] = os.path.join(install_path, PATH_LIBEXEC) + ":" + \ os.environ['PATH'] pylib_path = os.path.join(install_path, PATH_LIB) sys.path.insert(0, pylib_path) command...
455,009
def main(): if "--version" in sys.argv: print version.get_version() sys.exit(0) install_path = os.path.dirname(__file__) if PATH_LIBEXEC: os.environ['PATH'] = os.path.join(install_path, PATH_LIBEXEC) + ":" + \ os.environ['PATH'] pylib_path = os.path.join(install_path, PATH_LIB) sys.path.insert(0, pylib_path) command...
def main(): if "--version" in sys.argv: print version.get_version() sys.exit(0) install_path = os.path.dirname(__file__) if PATH_LIBEXEC: os.environ['PATH'] = os.path.join(install_path, PATH_LIBEXEC) + ":" + \ os.environ['PATH'] pylib_path = os.path.join(install_path, PATH_LIB) sys.path.insert(0, pylib_path) command...
455,010
def main(): if "--version" in sys.argv: print version.get_version() sys.exit(0) install_path = os.path.dirname(__file__) if PATH_LIBEXEC: os.environ['PATH'] = os.path.join(install_path, PATH_LIBEXEC) + ":" + \ os.environ['PATH'] pylib_path = os.path.join(install_path, PATH_LIB) sys.path.insert(0, pylib_path) command...
def main(): if "--version" in sys.argv: print version.get_version() sys.exit(0) install_path = os.path.dirname(__file__) if PATH_LIBEXEC: os.environ['PATH'] = os.path.join(install_path, PATH_LIBEXEC) + ":" + \ os.environ['PATH'] pylib_path = os.path.join(install_path, PATH_LIB) sys.path.insert(0, pylib_path) command...
455,011
def main(): if "--version" in sys.argv: print version.get_version() sys.exit(0) install_path = os.path.dirname(__file__) if PATH_LIBEXEC: os.environ['PATH'] = os.path.join(install_path, PATH_LIBEXEC) + ":" + \ os.environ['PATH'] pylib_path = os.path.join(install_path, PATH_LIB) sys.path.insert(0, pylib_path) command...
def main(): if "--version" in sys.argv: print version.get_version() sys.exit(0) install_path = os.path.dirname(__file__) if PATH_LIBEXEC: os.environ['PATH'] = os.path.join(install_path, PATH_LIBEXEC) + ":" + \ os.environ['PATH'] pylib_path = os.path.join(install_path, PATH_LIB) sys.path.insert(0, pylib_path) command...
455,012
def license_cmp(x, y): return cmp(x['title'].lower(), y['title'].lower())
def license_cmp(x, y): return cmp(x['title'].lower(), y['title'].lower())
455,013
def get_names(self): from pylons import config import urllib2 import simplejson url = config.get('licenses_service_url', self.default_url) try: response = urllib2.urlopen(url) response_body = response.read() except Exception, inst: msg = "Couldn't connect to licenses service: %s" % inst raise Exception, msg try: licens...
def get_names(self): from pylons import config url = config.get('licenses_service_url', self.default_url) try: response = urllib2.urlopen(url) response_body = response.read() except Exception, inst: msg = "Couldn't connect to licenses service: %s" % inst raise Exception, msg try: license_names = simplejson.loads(respon...
455,014
def get_names(self): from pylons import config import urllib2 import simplejson url = config.get('licenses_service_url', self.default_url) try: response = urllib2.urlopen(url) response_body = response.read() except Exception, inst: msg = "Couldn't connect to licenses service: %s" % inst raise Exception, msg try: licens...
def get_names(self): from pylons import config import urllib2 import simplejson url = config.get('licenses_service_url', self.default_url) try: response = urllib2.urlopen(url) response_body = response.read() except Exception, inst: msg = "Couldn't connect to licenses service: %s" % inst raise Exception, msg try: licens...
455,015
def main(): parser = OptionParser() parser.add_option("-i", "--input", dest="root", default="/lsst/DC3/data/obstest/ImSim", help="input root") parser.add_option("-o", "--output", dest="outRoot", default=".", help="output root") parser.add_option("-f", "--force", action="store_true", default=False, help="execute even if...
def main(): parser = OptionParser() parser.add_option("-i", "--input", dest="root", default="/lsst/DC3/data/obstest/ImSim", help="input root") parser.add_option("-o", "--output", dest="outRoot", default=".", help="output root") parser.add_option("-f", "--force", action="store_true", default=False, help="execute even if...
455,016
def isrProcess(f): print >>f, """ appStage: { name: isrInputRaw parallelClass: lsst.pex.harness.IOStage.InputStageParallel eventTopic: None stagePolicy: { parameters: { butler: @PT1Pipe/butlerInput.paf inputItems: {""" for channelX in (0, 1): for channelY in (0, 1, 2, 3, 4, 5, 6, 7): for snap in (0, 1): channelName = '...
def isrProcess(f, doJobOffice=False): print >>f, """ appStage: { name: isrInputRaw parallelClass: lsst.pex.harness.IOStage.InputStageParallel eventTopic: None stagePolicy: { parameters: { butler: @PT1Pipe/butlerInput.paf inputItems: {""" for channelX in (0, 1): for channelY in (0, 1, 2, 3, 4, 5, 6, 7): for snap in (0, ...
455,017
def isrProcess(f): print >>f, """ appStage: { name: isrInputRaw parallelClass: lsst.pex.harness.IOStage.InputStageParallel eventTopic: None stagePolicy: { parameters: { butler: @PT1Pipe/butlerInput.paf inputItems: {""" for channelX in (0, 1): for channelY in (0, 1, 2, 3, 4, 5, 6, 7): for snap in (0, 1): channelName = '...
def isrProcess(f): print >>f, """ appStage: { name: isrInputRaw parallelClass: lsst.pex.harness.IOStage.InputStageParallel eventTopic: """ + ("None" if doJobOffice else "jobIdentity") + """ stagePolicy: { parameters: { butler: @PT1Pipe/butlerInput.paf inputItems: {""" for channelX in (0, 1): for channelY in (0, 1, 2, 3...
455,018
def isrProcess(f): print >>f, """ appStage: { name: isrInputRaw parallelClass: lsst.pex.harness.IOStage.InputStageParallel eventTopic: None stagePolicy: { parameters: { butler: @PT1Pipe/butlerInput.paf inputItems: {""" for channelX in (0, 1): for channelY in (0, 1, 2, 3, 4, 5, 6, 7): for snap in (0, 1): channelName = '...
def isrProcess(f): print >>f, """ appStage: { name: isrInputRaw parallelClass: lsst.pex.harness.IOStage.InputStageParallel eventTopic: None stagePolicy: { parameters: { butler: @PT1Pipe/butlerInput.paf inputItems: {""" for channelX in (0, 1): for channelY in (0, 1, 2, 3, 4, 5, 6, 7): for snap in (0, 1): channelName = '...
455,019
def isrProcess(f): print >>f, """ appStage: { name: isrInputRaw parallelClass: lsst.pex.harness.IOStage.InputStageParallel eventTopic: None stagePolicy: { parameters: { butler: @PT1Pipe/butlerInput.paf inputItems: {""" for channelX in (0, 1): for channelY in (0, 1, 2, 3, 4, 5, 6, 7): for snap in (0, 1): channelName = '...
def isrProcess(f): print >>f, """ appStage: { name: isrInputRaw parallelClass: lsst.pex.harness.IOStage.InputStageParallel eventTopic: None stagePolicy: { parameters: { butler: @PT1Pipe/butlerInput.paf inputItems: {""" for channelX in (0, 1): for channelY in (0, 1, 2, 3, 4, 5, 6, 7): for snap in (0, 1): channelName = '...
455,020
def ccdAssemblyProcess(f): for snap in (0, 1): print >>f, """ appStage: { name: ccdAssemblyCcdList""" + str(snap) + """ parallelClass: lsst.datarel.ObjectListStageParallel eventTopic: None stagePolicy: { inputKeys: {""" for channelX in (0, 1): for channelY in (0, 1, 2, 3, 4, 5, 6, 7): channelId = "%d%d" % (channelX, ch...
def ccdAssemblyProcess(f): for snap in (0, 1): print >>f, """ appStage: { name: ccdAssemblyCcdList""" + str(snap) + """ parallelClass: lsst.datarel.ObjectListStageParallel eventTopic: None stagePolicy: { inputKeys: {""" for channelX in (0, 1): for channelY in (0, 1, 2, 3, 4, 5, 6, 7): channelId = "%d%d" % (channelX, ch...
455,021
def ccdAssemblyProcess(f): for snap in (0, 1): print >>f, """ appStage: { name: ccdAssemblyCcdList""" + str(snap) + """ parallelClass: lsst.datarel.ObjectListStageParallel eventTopic: None stagePolicy: { inputKeys: {""" for channelX in (0, 1): for channelY in (0, 1, 2, 3, 4, 5, 6, 7): channelId = "%d%d" % (channelX, ch...
def ccdAssemblyProcess(f): for snap in (0, 1): print >>f, """ appStage: { name: ccdAssemblyCcdList""" + str(snap) + """ parallelClass: lsst.datarel.ObjectListStageParallel eventTopic: None stagePolicy: { inputKeys: {""" for channelX in (0, 1): for channelY in (0, 1, 2, 3, 4, 5, 6, 7): channelId = "%d%d" % (channelX, ch...
455,022
def ccdAssemblyProcess(f): for snap in (0, 1): print >>f, """ appStage: { name: ccdAssemblyCcdList""" + str(snap) + """ parallelClass: lsst.datarel.ObjectListStageParallel eventTopic: None stagePolicy: { inputKeys: {""" for channelX in (0, 1): for channelY in (0, 1, 2, 3, 4, 5, 6, 7): channelId = "%d%d" % (channelX, ch...
def ccdAssemblyProcess(f): for snap in (0, 1): print >>f, """ appStage: { name: ccdAssemblyCcdList""" + str(snap) + """ parallelClass: lsst.datarel.ObjectListStageParallel eventTopic: None stagePolicy: { inputKeys: {""" for channelX in (0, 1): for channelY in (0, 1, 2, 3, 4, 5, 6, 7): channelId = "%d%d" % (channelX, ch...
455,023
def ccdAssemblyProcess(f): for snap in (0, 1): print >>f, """ appStage: { name: ccdAssemblyCcdList""" + str(snap) + """ parallelClass: lsst.datarel.ObjectListStageParallel eventTopic: None stagePolicy: { inputKeys: {""" for channelX in (0, 1): for channelY in (0, 1, 2, 3, 4, 5, 6, 7): channelId = "%d%d" % (channelX, ch...
def ccdAssemblyProcess(f): for snap in (0, 1): print >>f, """ appStage: { name: ccdAssemblyCcdList""" + str(snap) + """ parallelClass: lsst.datarel.ObjectListStageParallel eventTopic: None stagePolicy: { inputKeys: {""" for channelX in (0, 1): for channelY in (0, 1, 2, 3, 4, 5, 6, 7): channelId = "%d%d" % (channelX, ch...
455,024
def imgCharProcess(f): print >>f, """ appStage: { name: icSourceDetect parallelClass: lsst.meas.pipeline.SourceDetectionStageParallel eventTopic: None stagePolicy: { inputKeys: { exposure: visitExposure } outputKeys: { positiveDetection: positiveFootprintSet negativeDetection: negativeFootprintSet psf: simplePsf } psfP...
def imgCharProcess(f): print >>f, """ appStage: { name: icSourceDetect parallelClass: lsst.meas.pipeline.SourceDetectionStageParallel eventTopic: None stagePolicy: { inputKeys: { exposure: visitExposure } outputKeys: { positiveDetection: positiveFootprintSet negativeDetection: negativeFootprintSet psf: simplePsf } psfP...
455,025
def createPolicy(f): pipelinePolicy(f) jobStart(f) isrProcess(f) ccdAssemblyProcess(f) crSplitProcess(f) imgCharProcess(f) sfmProcess(f) jobFinish(f) print >>f, "}"
def createPolicy(f, doJobOffice=False): pipelinePolicy(f) jobStart(f) isrProcess(f) ccdAssemblyProcess(f) crSplitProcess(f) imgCharProcess(f) sfmProcess(f) jobFinish(f) print >>f, "}"
455,026
def createPolicy(f): pipelinePolicy(f) jobStart(f) isrProcess(f) ccdAssemblyProcess(f) crSplitProcess(f) imgCharProcess(f) sfmProcess(f) jobFinish(f) print >>f, "}"
def createPolicy(f): pipelinePolicy(f) if doJobOffice: jobStart(f) isrProcess(f) ccdAssemblyProcess(f) crSplitProcess(f) imgCharProcess(f) sfmProcess(f) jobFinish(f) print >>f, "}"
455,027
def createPolicy(f): pipelinePolicy(f) jobStart(f) isrProcess(f) ccdAssemblyProcess(f) crSplitProcess(f) imgCharProcess(f) sfmProcess(f) jobFinish(f) print >>f, "}"
def createPolicy(f): pipelinePolicy(f) jobStart(f) isrProcess(f) ccdAssemblyProcess(f) crSplitProcess(f) imgCharProcess(f) sfmProcess(f) if doJobOffice: jobFinish(f) print >>f, "}"
455,028
def main(): if len(sys.argv) > 1: with open(sys.argv[1], "w") as f: createPolicy(f) else: createPolicy(sys.stdout)
def main(): parser = OptionParser() parser.add_option("-j", "--jobOffice", action="store_true", default=False, help="write JobOffice stages into the pipeline") options, args = parser.parse_args() if len(args) > 0: with open(args[0], "w") as f: createPolicy(f, options.jobOffice) else: createPolicy(sys.stdout)
455,029
def main(): if len(sys.argv) > 1: with open(sys.argv[1], "w") as f: createPolicy(f) else: createPolicy(sys.stdout)
def main(): if len(sys.argv) > 1: with open(sys.argv[1], "w") as f: createPolicy(f) else: createPolicy(sys.stdout, options.jobOffice)
455,030
def cfhtMain(processFunction, outDatasetType, need=(), defaultRoot="."): parser = OptionParser() parser.add_option("-i", "--input", dest="root", default=defaultRoot, help="input root") parser.add_option("-o", "--output", dest="outRoot", default=".", help="output root") parser.add_option("-f", "--force", action="store_t...
def cfhtMain(processFunction, outDatasetType, need=(), defaultRoot="."): parser = OptionParser() parser.add_option("-i", "--input", dest="root", default=defaultRoot, help="input root") parser.add_option("-o", "--output", dest="outRoot", default=".", help="output root") parser.add_option("-f", "--force", action="store_t...
455,031
def lsstSimMain(processFunction, outDatasetType, need=(), defaultRoot="."): parser = OptionParser() parser.add_option("-i", "--input", dest="root", default=defaultRoot, help="input root") parser.add_option("-o", "--output", dest="outRoot", default=".", help="output root") parser.add_option("-f", "--force", action="stor...
def lsstSimMain(processFunction, outDatasetType, need=(), defaultRoot="."): parser = OptionParser() parser.add_option("-i", "--input", dest="root", default=defaultRoot, help="input root") parser.add_option("-o", "--output", dest="outRoot", default=".", help="output root") parser.add_option("-f", "--force", action="stor...
455,032
def lsstSimMain(processFunction, outDatasetType, need=(), defaultRoot="."): parser = OptionParser() parser.add_option("-i", "--input", dest="root", default=defaultRoot, help="input root") parser.add_option("-o", "--output", dest="outRoot", default=".", help="output root") parser.add_option("-f", "--force", action="stor...
def lsstSimMain(processFunction, outDatasetType, need=(), defaultRoot="."): parser = OptionParser() parser.add_option("-i", "--input", dest="root", default=defaultRoot, help="input root") parser.add_option("-o", "--output", dest="outRoot", default=".", help="output root") parser.add_option("-f", "--force", action="stor...
455,033
def lsstSimMain(processFunction, outDatasetType, need=(), defaultRoot="."): parser = OptionParser() parser.add_option("-i", "--input", dest="root", default=defaultRoot, help="input root") parser.add_option("-o", "--output", dest="outRoot", default=".", help="output root") parser.add_option("-f", "--force", action="stor...
def lsstSimMain(processFunction, outDatasetType, need=(), defaultRoot="."): parser = OptionParser() parser.add_option("-i", "--input", dest="root", default=defaultRoot, help="input root") parser.add_option("-o", "--output", dest="outRoot", default=".", help="output root") parser.add_option("-f", "--force", action="stor...
455,034
def lsstSimMain(processFunction, outDatasetType, need=(), defaultRoot="."): parser = OptionParser() parser.add_option("-i", "--input", dest="root", default=defaultRoot, help="input root") parser.add_option("-o", "--output", dest="outRoot", default=".", help="output root") parser.add_option("-f", "--force", action="stor...
def lsstSimMain(processFunction, outDatasetType, need=(), defaultRoot="."): parser = OptionParser() parser.add_option("-i", "--input", dest="root", default=defaultRoot, help="input root") parser.add_option("-o", "--output", dest="outRoot", default=".", help="output root") parser.add_option("-f", "--force", action="stor...
455,035
def lsstSimMain(processFunction, outDatasetType, need=(), defaultRoot="."): parser = OptionParser() parser.add_option("-i", "--input", dest="root", default=defaultRoot, help="input root") parser.add_option("-o", "--output", dest="outRoot", default=".", help="output root") parser.add_option("-f", "--force", action="stor...
def lsstSimMain(processFunction, outDatasetType, need=(), defaultRoot="."): parser = OptionParser() parser.add_option("-i", "--input", dest="root", default=defaultRoot, help="input root") parser.add_option("-o", "--output", dest="outRoot", default=".", help="output root") parser.add_option("-f", "--force", action="stor...
455,036
def lsstSimMain(processFunction, outDatasetType, need=(), defaultRoot="."): parser = OptionParser() parser.add_option("-i", "--input", dest="root", default=defaultRoot, help="input root") parser.add_option("-o", "--output", dest="outRoot", default=".", help="output root") parser.add_option("-f", "--force", action="stor...
def lsstSimMain(processFunction, outDatasetType, need=(), defaultRoot="."): parser = OptionParser() parser.add_option("-i", "--input", dest="root", default=defaultRoot, help="input root") parser.add_option("-o", "--output", dest="outRoot", default=".", help="output root") parser.add_option("-f", "--force", action="stor...
455,037
def sfmProcess(root=None, outRoot=None, registry=None, inButler=None, outButler=None, **keys): inButler, outButler = lsstSimSetup(root, outRoot, registry, None, inButler, outButler) calexp = inButler.get("calexp", **keys) psf = inButler.get("psf", **keys) apCorr = inButler.get("apCorr", **keys) clip = sfmPipe(calexp,...
def sfmProcess(root=None, outRoot=None, registry=None, inButler=None, outButler=None, **keys): inButler, outButler = lsstSimSetup(root, outRoot, registry, None, inButler, outButler) calexp = inButler.get("calexp", **keys) psf = inButler.get("psf", **keys) apCorr = inButler.get("apCorr", **keys) clip = sfmPipe(calexp,...
455,038
def sfmPipe(calexp, psf): clip = { 'scienceExposure': calexp, 'psf': psf } clip = runStage(measPipe.SourceDetectionStage, """#<?cfg paf policy?> inputKeys: { exposure: scienceExposure psf: psf } outputKeys: { positiveDetection: positiveFootprintSet } backgroundPolicy: { algorithm: NONE } """, clip) clip = runStage(me...
def sfmPipe(calexp, psf, apCorr): clip = { 'scienceExposure': calexp, 'psf': psf } clip = runStage(measPipe.SourceDetectionStage, """#<?cfg paf policy?> inputKeys: { exposure: scienceExposure psf: psf } outputKeys: { positiveDetection: positiveFootprintSet } backgroundPolicy: { algorithm: NONE } """, clip) clip = run...
455,039
def sfmPipe(calexp, psf): clip = { 'scienceExposure': calexp, 'psf': psf } clip = runStage(measPipe.SourceDetectionStage, """#<?cfg paf policy?> inputKeys: { exposure: scienceExposure psf: psf } outputKeys: { positiveDetection: positiveFootprintSet } backgroundPolicy: { algorithm: NONE } """, clip) clip = runStage(me...
def sfmPipe(calexp, psf): clip = { 'scienceExposure': calexp, 'psf': psf, 'apCorr': apCorr } clip = runStage(measPipe.SourceDetectionStage, """#<?cfg paf policy?> inputKeys: { exposure: scienceExposure psf: psf } outputKeys: { positiveDetection: positiveFootprintSet } backgroundPolicy: { algorithm: NONE } """, clip) ...
455,040
def sfmPipe(calexp, psf): clip = { 'scienceExposure': calexp, 'psf': psf } clip = runStage(measPipe.SourceDetectionStage, """#<?cfg paf policy?> inputKeys: { exposure: scienceExposure psf: psf } outputKeys: { positiveDetection: positiveFootprintSet } backgroundPolicy: { algorithm: NONE } """, clip) clip = runStage(me...
def sfmPipe(calexp, psf): clip = { 'scienceExposure': calexp, 'psf': psf } clip = runStage(measPipe.SourceDetectionStage, """#<?cfg paf policy?> inputKeys: { exposure: scienceExposure psf: psf } outputKeys: { positiveDetection: positiveFootprintSet } backgroundPolicy: { algorithm: NONE } """, clip) clip = runStage(me...
455,041
def lsstSimMain(processFunction, outDatasetType, need=(), defaultRoot="."): parser = OptionParser() parser.add_option("-i", "--input", dest="root", default=defaultRoot, help="input root") parser.add_option("-o", "--output", dest="outRoot", default=".", help="output root") parser.add_option("-f", "--force", action="stor...
def lsstSimMain(processFunction, outDatasetType, need=(), defaultRoot="."): parser = OptionParser() parser.add_option("-i", "--input", dest="root", default=defaultRoot, help="input root") parser.add_option("-o", "--output", dest="outRoot", default=".", help="output root") parser.add_option("-f", "--force", action="stor...
455,042
def lsstSimMain(processFunction, outDatasetType, need=(), defaultRoot="."): parser = OptionParser() parser.add_option("-i", "--input", dest="root", default=defaultRoot, help="input root") parser.add_option("-o", "--output", dest="outRoot", default=".", help="output root") parser.add_option("-f", "--force", action="stor...
def lsstSimMain(processFunction, outDatasetType, need=(), defaultRoot="."): parser = OptionParser() parser.add_option("-i", "--input", dest="root", default=defaultRoot, help="input root") parser.add_option("-o", "--output", dest="outRoot", default=".", help="output root") parser.add_option("-f", "--force", action="stor...
455,043
def referenceMatch(inputRoot, outputRoot, database, refCatalog, radius, tableSuffix=""): objectCsv = os.path.abspath(os.path.join(outputRoot, 'objDump.csv')) filtCsv = os.path.abspath(os.path.join(outputRoot, 'refFilt.csv')) matchCsv = os.path.abspath(os.path.join(outputRoot, 'refObjMatch.csv')) # Filter reference cata...
def referenceMatch(inputRoot, outputRoot, database, refCatalog, radius, tableSuffix=""): objectCsv = os.path.abspath(os.path.join(outputRoot, 'objDump.csv')) filtCsv = os.path.abspath(os.path.join(outputRoot, 'refFilt.csv')) matchCsv = os.path.abspath(os.path.join(outputRoot, 'refObjMatch.csv')) # Filter reference cata...
455,044
def removeCRsSilently(self, exposure): """Remove CRs without trace""" mask = exposure.getMaskedImage().getMask() mask = mask.Factory(mask, True) # save initial mask
def removeCRsSilently(self, exposure): """Remove CRs without trace""" mask = exposure.getMaskedImage().getMask() mask = mask.Factory(mask, True) # save initial mask
455,045
def removeCRsSilently(self, exposure): """Remove CRs without trace""" mask = exposure.getMaskedImage().getMask() mask = mask.Factory(mask, True) # save initial mask
def removeCRsSilently(self, exposure): """Remove CRs without trace""" mask = exposure.getMaskedImage().getMask() mask = mask.Factory(mask, True) # save initial mask
455,046
def removeCRsSilently(self, exposure): """Remove CRs without trace""" mask = exposure.getMaskedImage().getMask() mask = mask.Factory(mask, True) # save initial mask
def removeCRsSilently(self, exposure): """Remove CRs without trace""" mask = exposure.getMaskedImage().getMask() mask = mask.Factory(mask, True) # save initial mask
455,047
def setUp(self): filename = os.path.join(eups.productDir("afwdata"), "CFHT", "D4", "cal-53535-i-797722_1") bbox = afwImage.BBox(afwImage.PointI(32,32), 512, 512) exposure = afwImage.ExposureF(filename, 0,bbox)
def setUp(self): filename = os.path.join(eups.productDir("afwdata"), "CFHT", "D4", "cal-53535-i-797722_1") bbox = afwImage.BBox(afwImage.PointI(32,32), 512, 512) exposure = afwImage.ExposureF(filename, 0,bbox)
455,048
def isrProcess(f): print >>f, """ appStage: { name: isrInputRaw parallelClass: lsst.pex.harness.IOStage.InputStageParallel eventTopic: None stagePolicy: { parameters: { butler: @butlerInput.paf inputItems: {""" for channelX in (0, 1): for channelY in (0, 1, 2, 3, 4, 5, 6, 7): for snap in (0, 1): channelName = '"%d,%d"'...
def isrProcess(f): print >>f, """ appStage: { name: isrInputRaw parallelClass: lsst.pex.harness.IOStage.InputStageParallel eventTopic: None stagePolicy: { parameters: { butler: @PT1Pipe/butlerInput.paf inputItems: {""" for channelX in (0, 1): for channelY in (0, 1, 2, 3, 4, 5, 6, 7): for snap in (0, 1): channelName = '...
455,049
def isrProcess(f): print >>f, """ appStage: { name: isrInputRaw parallelClass: lsst.pex.harness.IOStage.InputStageParallel eventTopic: None stagePolicy: { parameters: { butler: @butlerInput.paf inputItems: {""" for channelX in (0, 1): for channelY in (0, 1, 2, 3, 4, 5, 6, 7): for snap in (0, 1): channelName = '"%d,%d"'...
def isrProcess(f): print >>f, """ appStage: { name: isrInputRaw parallelClass: lsst.pex.harness.IOStage.InputStageParallel eventTopic: None stagePolicy: { parameters: { butler: @PT1Pipe/butlerInput.paf inputItems: {""" for channelX in (0, 1): for channelY in (0, 1, 2, 3, 4, 5, 6, 7): for snap in (0, 1): channelName = '...
455,050
def isrProcess(f): print >>f, """ appStage: { name: isrInputRaw parallelClass: lsst.pex.harness.IOStage.InputStageParallel eventTopic: None stagePolicy: { parameters: { butler: @butlerInput.paf inputItems: {""" for channelX in (0, 1): for channelY in (0, 1, 2, 3, 4, 5, 6, 7): for snap in (0, 1): channelName = '"%d,%d"'...
def isrProcess(f): print >>f, """ appStage: { name: isrInputRaw parallelClass: lsst.pex.harness.IOStage.InputStageParallel eventTopic: None stagePolicy: { parameters: { butler: @butlerInput.paf inputItems: {""" for channelX in (0, 1): for channelY in (0, 1, 2, 3, 4, 5, 6, 7): for snap in (0, 1): channelName = '"%d,%d"'...
455,051
def isrProcess(f): print >>f, """ appStage: { name: isrInputRaw parallelClass: lsst.pex.harness.IOStage.InputStageParallel eventTopic: None stagePolicy: { parameters: { butler: @butlerInput.paf inputItems: {""" for channelX in (0, 1): for channelY in (0, 1, 2, 3, 4, 5, 6, 7): for snap in (0, 1): channelName = '"%d,%d"'...
def isrProcess(f): print >>f, """ appStage: { name: isrInputRaw parallelClass: lsst.pex.harness.IOStage.InputStageParallel eventTopic: None stagePolicy: { parameters: { butler: @butlerInput.paf inputItems: {""" for channelX in (0, 1): for channelY in (0, 1, 2, 3, 4, 5, 6, 7): for snap in (0, 1): channelName = '"%d,%d"'...
455,052
def isrProcess(f): print >>f, """ appStage: { name: isrInputRaw parallelClass: lsst.pex.harness.IOStage.InputStageParallel eventTopic: None stagePolicy: { parameters: { butler: @butlerInput.paf inputItems: {""" for channelX in (0, 1): for channelY in (0, 1, 2, 3, 4, 5, 6, 7): for snap in (0, 1): channelName = '"%d,%d"'...
def isrProcess(f): print >>f, """ appStage: { name: isrInputRaw parallelClass: lsst.pex.harness.IOStage.InputStageParallel eventTopic: None stagePolicy: { parameters: { butler: @butlerInput.paf inputItems: {""" for channelX in (0, 1): for channelY in (0, 1, 2, 3, 4, 5, 6, 7): for snap in (0, 1): channelName = '"%d,%d"'...
455,053
def ccdAssemblyProcess(f): for snap in (0, 1): print >>f, """ appStage: { name: ccdAssemblyCcdList""" + str(snap) + """ parallelClass: lsst.datarel.ObjectListStageParallel eventTopic: None stagePolicy: { inputKeys: {""" for channelX in (0, 1): for channelY in (0, 1, 2, 3, 4, 5, 6, 7): channelId = "%d%d" % (channelX, ch...
def ccdAssemblyProcess(f): for snap in (0, 1): print >>f, """ appStage: { name: ccdAssemblyCcdList""" + str(snap) + """ parallelClass: lsst.datarel.ObjectListStageParallel eventTopic: None stagePolicy: { inputKeys: {""" for channelX in (0, 1): for channelY in (0, 1, 2, 3, 4, 5, 6, 7): channelId = "%d%d" % (channelX, ch...
455,054
def ccdAssemblyProcess(f): for snap in (0, 1): print >>f, """ appStage: { name: ccdAssemblyCcdList""" + str(snap) + """ parallelClass: lsst.datarel.ObjectListStageParallel eventTopic: None stagePolicy: { inputKeys: {""" for channelX in (0, 1): for channelY in (0, 1, 2, 3, 4, 5, 6, 7): channelId = "%d%d" % (channelX, ch...
def ccdAssemblyProcess(f): for snap in (0, 1): print >>f, """ appStage: { name: ccdAssemblyCcdList""" + str(snap) + """ parallelClass: lsst.datarel.ObjectListStageParallel eventTopic: None stagePolicy: { inputKeys: {""" for channelX in (0, 1): for channelY in (0, 1, 2, 3, 4, 5, 6, 7): channelId = "%d%d" % (channelX, ch...
455,055
def crSplitProcess(f): print >>f, """ appStage: { name: crSplitBackgroundEstimation0 parallelClass: lsst.meas.pipeline.BackgroundEstimationStageParallel eventTopic: None stagePolicy: { inputKeys: { exposure: isrCcdExposure0 } outputKeys: { backgroundSubtractedExposure: bkgSubCcdExposure0 } parameters: @CrSplit-backgrou...
def crSplitProcess(f): print >>f, """ appStage: { name: crSplitBackgroundEstimation0 parallelClass: lsst.meas.pipeline.BackgroundEstimationStageParallel eventTopic: None stagePolicy: { inputKeys: { exposure: isrCcdExposure0 } outputKeys: { backgroundSubtractedExposure: bkgSubCcdExposure0 } parameters: @PT1Pipe/CrSplit-...
455,056
def crSplitProcess(f): print >>f, """ appStage: { name: crSplitBackgroundEstimation0 parallelClass: lsst.meas.pipeline.BackgroundEstimationStageParallel eventTopic: None stagePolicy: { inputKeys: { exposure: isrCcdExposure0 } outputKeys: { backgroundSubtractedExposure: bkgSubCcdExposure0 } parameters: @CrSplit-backgrou...
def crSplitProcess(f): print >>f, """ appStage: { name: crSplitBackgroundEstimation0 parallelClass: lsst.meas.pipeline.BackgroundEstimationStageParallel eventTopic: None stagePolicy: { inputKeys: { exposure: isrCcdExposure0 } outputKeys: { backgroundSubtractedExposure: bkgSubCcdExposure0 } parameters: @PT1Pipe/CrSplit-...
455,057
def crSplitProcess(f): print >>f, """ appStage: { name: crSplitBackgroundEstimation0 parallelClass: lsst.meas.pipeline.BackgroundEstimationStageParallel eventTopic: None stagePolicy: { inputKeys: { exposure: isrCcdExposure0 } outputKeys: { backgroundSubtractedExposure: bkgSubCcdExposure0 } parameters: @CrSplit-backgrou...
def crSplitProcess(f): print >>f, """ appStage: { name: crSplitBackgroundEstimation0 parallelClass: lsst.meas.pipeline.BackgroundEstimationStageParallel eventTopic: None stagePolicy: { inputKeys: { exposure: isrCcdExposure0 } outputKeys: { backgroundSubtractedExposure: bkgSubCcdExposure0 } parameters: @CrSplit-backgrou...
455,058
def crSplitProcess(f): print >>f, """ appStage: { name: crSplitBackgroundEstimation0 parallelClass: lsst.meas.pipeline.BackgroundEstimationStageParallel eventTopic: None stagePolicy: { inputKeys: { exposure: isrCcdExposure0 } outputKeys: { backgroundSubtractedExposure: bkgSubCcdExposure0 } parameters: @CrSplit-backgrou...
def crSplitProcess(f): print >>f, """ appStage: { name: crSplitBackgroundEstimation0 parallelClass: lsst.meas.pipeline.BackgroundEstimationStageParallel eventTopic: None stagePolicy: { inputKeys: { exposure: isrCcdExposure0 } outputKeys: { backgroundSubtractedExposure: bkgSubCcdExposure0 } parameters: @CrSplit-backgrou...
455,059
def imgCharProcess(f): print >>f, """ appStage: { name: icSourceDetect parallelClass: lsst.meas.pipeline.SourceDetectionStageParallel eventTopic: None stagePolicy: { inputKeys: { exposure: visitExposure } outputKeys: { positiveDetection: positiveFootprintSet negativeDetection: negativeFootprintSet psf: simplePsf } psfP...
def imgCharProcess(f): print >>f, """ appStage: { name: icSourceDetect parallelClass: lsst.meas.pipeline.SourceDetectionStageParallel eventTopic: None stagePolicy: { inputKeys: { exposure: visitExposure } outputKeys: { positiveDetection: positiveFootprintSet negativeDetection: negativeFootprintSet psf: simplePsf } psfP...
455,060
def imgCharProcess(f): print >>f, """ appStage: { name: icSourceDetect parallelClass: lsst.meas.pipeline.SourceDetectionStageParallel eventTopic: None stagePolicy: { inputKeys: { exposure: visitExposure } outputKeys: { positiveDetection: positiveFootprintSet negativeDetection: negativeFootprintSet psf: simplePsf } psfP...
def imgCharProcess(f): print >>f, """ appStage: { name: icSourceDetect parallelClass: lsst.meas.pipeline.SourceDetectionStageParallel eventTopic: None stagePolicy: { inputKeys: { exposure: visitExposure } outputKeys: { positiveDetection: positiveFootprintSet negativeDetection: negativeFootprintSet psf: simplePsf } psfP...
455,061
def imgCharProcess(f): print >>f, """ appStage: { name: icSourceDetect parallelClass: lsst.meas.pipeline.SourceDetectionStageParallel eventTopic: None stagePolicy: { inputKeys: { exposure: visitExposure } outputKeys: { positiveDetection: positiveFootprintSet negativeDetection: negativeFootprintSet psf: simplePsf } psfP...
def imgCharProcess(f): print >>f, """ appStage: { name: icSourceDetect parallelClass: lsst.meas.pipeline.SourceDetectionStageParallel eventTopic: None stagePolicy: { inputKeys: { exposure: visitExposure } outputKeys: { positiveDetection: positiveFootprintSet negativeDetection: negativeFootprintSet psf: simplePsf } psfP...
455,062
def sfmProcess(f): print >>f, """ appStage: { name: sfmSourceDetect parallelClass: lsst.meas.pipeline.SourceDetectionStageParallel eventTopic: None stagePolicy: { inputKeys: { exposure: scienceExposure psf: psf } outputKeys: { positiveDetection: positiveFootprintSet } backgroundPolicy: @SFM-sourceDetect-background.paf ...
def sfmProcess(f): print >>f, """ appStage: { name: sfmSourceDetect parallelClass: lsst.meas.pipeline.SourceDetectionStageParallel eventTopic: None stagePolicy: { inputKeys: { exposure: scienceExposure psf: psf } outputKeys: { positiveDetection: positiveFootprintSet } backgroundPolicy: @PT1Pipe/SFM-sourceDetect-backgro...
455,063
def sfmProcess(f): print >>f, """ appStage: { name: sfmSourceDetect parallelClass: lsst.meas.pipeline.SourceDetectionStageParallel eventTopic: None stagePolicy: { inputKeys: { exposure: scienceExposure psf: psf } outputKeys: { positiveDetection: positiveFootprintSet } backgroundPolicy: @SFM-sourceDetect-background.paf ...
def sfmProcess(f): print >>f, """ appStage: { name: sfmSourceDetect parallelClass: lsst.meas.pipeline.SourceDetectionStageParallel eventTopic: None stagePolicy: { inputKeys: { exposure: scienceExposure psf: psf } outputKeys: { positiveDetection: positiveFootprintSet } backgroundPolicy: @SFM-sourceDetect-background.paf ...
455,064
def main(): usage = dedent("""\ usage: %prog [options] <database> Program which creates an LSST run database and instantiates the LSST schema therein. Indexes on tables which will be loaded by the various datarel ingest scripts are disabled. Once loading has finished, the finishDb.py script should be run to re-enable ...
def main(): usage = dedent("""\ usage: %prog [options] <database> Program which creates an LSST run database and instantiates the LSST schema therein. Indexes on tables which will be loaded by the various datarel ingest scripts are disabled. Once loading has finished, the finishDb.py script should be run to re-enable ...
455,065
def setupDb(database, tableSuffix=""): execStmt("CREATE DATABASE IF NOT EXISTS %s;" % database) for tableName in ('BadSource', 'Source', 'Object'): execStmt("CREATE TABLE %s.%s%s LIKE pt1_templates.%s" % (database, tableName, tableSuffix, tableName))
def setupDb(database, tableSuffix=""): execStmt("CREATE DATABASE IF NOT EXISTS %s;" % database) for tableName in ('BadSource', 'Source', 'Object', 'SimRefObject', 'RefObjMatch'): execStmt("CREATE TABLE %s.%s%s LIKE pt1_templates.%s" % (database, tableName, tableSuffix, tableName))
455,066
def removeCRsSilently(self, exposure): """Remove CRs without trace""" mask = exposure.getMaskedImage().getMask() mask = mask.Factory(mask, True) # save initial mask
def removeCRsSilently(self, exposure): """Remove CRs without trace""" mask = exposure.getMaskedImage().getMask() mask = mask.Factory(mask, True) # save initial mask
455,067
def removeCRsSilently(self, exposure): """Remove CRs without trace""" mask = exposure.getMaskedImage().getMask() mask = mask.Factory(mask, True) # save initial mask
def removeCRsSilently(self, exposure): """Remove CRs without trace""" mask = exposure.getMaskedImage().getMask() mask = mask.Factory(mask, True) # save initial mask
455,068
def setUp(self): # filename = os.path.join(eups.productDir("afwdata"), "CFHT", "D4", "cal-53535-i-797722_1")
def setUp(self): # filename = os.path.join(eups.productDir("afwdata"), "CFHT", "D4", "cal-53535-i-797722_1")
455,069
def crSplitProcess(f): print >>f, """ appStage: { name: crSplitBackgroundEstimation0 parallelClass: lsst.meas.pipeline.BackgroundEstimationStageParallel eventTopic: None stagePolicy: { inputKeys: { exposure: isrCcdExposure0 } outputKeys: { backgroundSubtractedExposure: bkgSubCcdExposure0 } parameters: @CrSplit-backgrou...
def crSplitProcess(f): print >>f, """ appStage: { name: crSplitBackgroundEstimation0 parallelClass: lsst.meas.pipeline.BackgroundEstimationStageParallel eventTopic: None stagePolicy: { inputKeys: { exposure: isrCcdExposure0 } outputKeys: { backgroundSubtractedExposure: bkgSubCcdExposure0 } parameters: @CrSplit-backgrou...
455,070
def do_init(configfile): """Load configuration and passwords and set up a logger handler This function will do one-time initialization. By using global variables, we eliminate the need to reread configuration and passwords on every request. """ # set up config global config try: config except NameError: config = Con...
def do_init(configfile): """Load configuration and passwords and set up a logger handler This function will do one-time initialization. By using global variables, we eliminate the need to reread configuration and passwords on every request. """ # set up config global config try: config except NameError: config = Con...
455,071
def get_protocol(self): return PROTOCOLS[str(self.protocol)]
def get_protocol(self): return PROTOCOLS[str(self.protocol)]
455,072
def __unicode__(self): return u"%s" % self.name
def __unicode__(self): return u"%s" % self.name
455,073
def update(self, documents=None, after_index=None, per_page=10000, commit_each=False): """ Update the database with the documents. There are some default value and terms in a document: * Values: 1. Used to store the ID of the document 2. Store the model of the object (in the string format, like "project.app.model") 3. ...
def update(self, documents=None, after_index=None, per_page=10000, commit_each=False): """ Update the database with the documents. There are some default value and terms in a document: * Values: 1. Used to store the ID of the document 2. Store the model of the object (in the string format, like "project.app.model") 3. ...
455,074
def handle(self, verbose=False, make_daemon=False, timeout=10, rebuild_index=False, per_page=1000, commit_each=False, *args, **options): utils.load_indexes()
def handle(self, verbose=False, make_daemon=False, loop=False, timeout=10, rebuild_index=False, per_page=1000, commit_each=False, *args, **options): utils.load_indexes()
455,075
def handle(self, verbose=False, make_daemon=False, timeout=10, rebuild_index=False, per_page=1000, commit_each=False, *args, **options): utils.load_indexes()
def handle(self, verbose=False, make_daemon=False, timeout=10, rebuild_index=False, per_page=1000, commit_each=False, *args, **options): utils.load_indexes()
455,076
def __getitem__(self, k): if not isinstance(k, (slice, int, long)): raise TypeError if not ((not isinstance(k, slice) and (k >= 0)) or (isinstance(k, slice) and (k.start is None or k.start >= 0) and (k.stop is None or k.stop >= 0))): raise IndexError, "Negative indexing is not supported."
def __getitem__(self, k): if not isinstance(k, (slice, int, long)): raise TypeError if not ((not isinstance(k, slice) and (k >= 0)) or (isinstance(k, slice) and (k.start is None or k.start >= 0) and (k.stop is None or k.stop >= 0))): raise IndexError, "Negative indexing is not supported."
455,077
def test_result(self): self.assertEqual(len(self.result), 2)
def test_result(self): self.assertEqual(len(self.result), 2)
455,078
def do_query(self, query, _slice=''): """ Returns objects fetched by given query """ print list(self._current_index.search(query)[self._parse_slice(_slice)])
def do_query(self, query, _slice=''): """ Returns objects fetched by given query """ print list(self._current_index.search(query)[self._parse_slice(_slice)])
455,079
def _get_indexer(self, index): try: _space, _model, _indexer = map(int, index.split('.'))
def _get_indexer(self, index): try: _space, _model, _indexer = map(int, index.split('.'))
455,080
def get_content_types(*actions): types = Change.objects.filter(action__in=actions)\ .values_list('content_type', flat=True)\ .distinct() return ContentType.objects.filter(pk__in=types)
def get_content_types(app_models, *actions): lookup_args = dict(action__in=actions) if app_models is not None: ct_list = [ContentType.objects.get_for_model(model) for model in app_models] lookup_args.update(dict(content_type__in=ct_list)) types = Change.objects.filter(models.Q(**lookup_args))\ .values_list('content_typ...
455,081
def update_changes(verbose, timeout, once, per_page, commit_each): counter = [0] def reset_counter(): counter[0] = 0 def after_index(obj): counter[0] += 1 if verbose: sys.stdout.write('.') sys.stdout.flush() commiter = Commiter.create(commit_each)( lambda: None, transaction.commit, transaction.rollback ) while Tru...
def update_changes(verbose, timeout, once, per_page, commit_each, app_models=None): counter = [0] def reset_counter(): counter[0] = 0 def after_index(obj): counter[0] += 1 if verbose: sys.stdout.write('.') sys.stdout.flush() commiter = Commiter.create(commit_each)( lambda: None, transaction.commit, transaction.roll...
455,082
def after_index(obj): counter[0] += 1
def after_index(obj): counter[0] += 1
455,083
def after_index(obj): counter[0] += 1
def after_index(obj): counter[0] += 1
455,084
def rebuild(verbose, per_page, commit_each): def after_index(obj): if verbose: sys.stdout.write('.') sys.stdout.flush() for space in IndexSpace.instances: for model, indexers in space.get_indexers().iteritems(): for indexer in indexers: indexer.clear() indexer.update(None, after_index, per_page, commit_each)
def rebuild(verbose, per_page, commit_each, app_models=None): def after_index(obj): if verbose: sys.stdout.write('.') sys.stdout.flush() for space in IndexSpace.instances: for model, indexers in space.get_indexers().iteritems(): for indexer in indexers: indexer.clear() indexer.update(None, after_index, per_page, commi...
455,085
def after_index(obj): if verbose: sys.stdout.write('.') sys.stdout.flush()
def after_index(obj): if verbose: sys.stdout.write('.') sys.stdout.flush()
455,086
def after_index(obj): if verbose: sys.stdout.write('.') sys.stdout.flush()
def after_index(obj): if verbose: sys.stdout.write('.') sys.stdout.flush()
455,087
def after_index(obj): if verbose: sys.stdout.write('.') sys.stdout.flush()
def after_index(obj): if verbose: sys.stdout.write('.') sys.stdout.flush()
455,088
def after_index(obj): if verbose: sys.stdout.write('.') sys.stdout.flush()
def after_index(obj): if verbose: sys.stdout.write('.') sys.stdout.flush()
455,089
def handle(self, verbose=False, make_daemon=False, loop=False, timeout=10, rebuild_index=False, per_page=1000, commit_each=False, *args, **options): utils.load_indexes()
def handle(self, *app_labels, **options): verbose = options['verbose'] make_daemon = options['make_daemon'] loop = options['loop'] timeout = options['timeout'] rebuild_index = options['rebuild_index'] per_page = options['per_page'] commit_each = options['commit_each'] utils.load_indexes()
455,090
def handle(self, verbose=False, make_daemon=False, loop=False, timeout=10, rebuild_index=False, per_page=1000, commit_each=False, *args, **options): utils.load_indexes()
def handle(self, verbose=False, make_daemon=False, loop=False, timeout=10, rebuild_index=False, per_page=1000, commit_each=False, *args, **options): utils.load_indexes()
455,091
def handle(self, verbose=False, make_daemon=False, loop=False, timeout=10, rebuild_index=False, per_page=1000, commit_each=False, *args, **options): utils.load_indexes()
def handle(self, verbose=False, make_daemon=False, loop=False, timeout=10, rebuild_index=False, per_page=1000, commit_each=False, *args, **options): utils.load_indexes()
455,092
def convert(self, field_value): """ Generates index values (for sorting) for given field value and its content type """ if field_value is None: return None
def convert(self, field_value): """ Generates index values (for sorting) for given field value and its content type """ if field_value is None: return None
455,093
def resolve(self, value): bits = self.path.split(".")
def resolve(self, value): bits = self.path.split(".")
455,094
def update(self, documents=None, after_index=None, per_page=10000, commit_each=False): """ Update the database with the documents. There are some default value and terms in a document: * Values: 1. Used to store the ID of the document 2. Store the model of the object (in the string format, like "project.app.model") 3. ...
def update(self, documents=None, after_index=None, per_page=10000, commit_each=False): """ Update the database with the documents. There are some default value and terms in a document: * Values: 1. Used to store the ID of the document 2. Store the model of the object (in the string format, like "project.app.model") 3. ...
455,095
def update(self, documents=None, after_index=None, per_page=10000, commit_each=False): """ Update the database with the documents. There are some default value and terms in a document: * Values: 1. Used to store the ID of the document 2. Store the model of the object (in the string format, like "project.app.model") 3. ...
def update(self, documents=None, after_index=None, per_page=10000, commit_each=False): """ Update the database with the documents. There are some default value and terms in a document: * Values: 1. Used to store the ID of the document 2. Store the model of the object (in the string format, like "project.app.model") 3. ...
455,096
def update(self, documents=None, after_index=None, per_page=10000, commit_each=False): """ Update the database with the documents. There are some default value and terms in a document: * Values: 1. Used to store the ID of the document 2. Store the model of the object (in the string format, like "project.app.model") 3. ...
def update(self, documents=None, after_index=None, per_page=10000, commit_each=False): """ Update the database with the documents. There are some default value and terms in a document: * Values: 1. Used to store the ID of the document 2. Store the model of the object (in the string format, like "project.app.model") 3. ...
455,097
def _parse_results(self): self._resultset_cache = []
def _parse_results(self): self._resultset_cache = []
455,098
def _parse_results(self): self._resultset_cache = []
def _parse_results(self): self._resultset_cache = []
455,099