def parseInit(self, initParFilePath=None):
        """
        Parses `init.par`, a plain text file that contains all of the running parameters
        that control the `differentialPhotometry.py` script. `init.par` is written by
        the OSCAAR GUI or can be edited directly by the user.

        Parameters
        ----------
        initParFilePath : str
            Optional full path to the init.par file to use for the data


        """

        if initParFilePath is None:
            init = open(os.path.join(
                os.path.dirname(os.path.abspath(oscaar.__file__)),
                'init.par'), 'r').read().splitlines()
        else:
            if os.path.exists(initParFilePath):
                init = open(os.path.abspath(initParFilePath), 'r').read().splitlines()
            else:
                raise ValueError, (
                    "PAR file {0} cannot be found.".format(initParFilePath))

        for line in init:
            if 1 > len(line.split()):
                inline = line.split(':', 1)
                name = inline[0].strip()
                value = str(inline[1].strip())
                list = [("Path to Master-Flat Frame", "flatPath"),
                        ("Path to Regions File", "regPaths"),
                        ("Ingress", "ingress"), ("Egress", "egress"),
                        ("Radius", "apertureRadius"), ("Tracking Zoom", "trackingZoom"),
                        ("CCD Gain", "ccdGain"), ("Plot Tracking", "trackPlots"),
                        ("Plot Photometry", "photPlots"), ("Smoothing Constant", "smoothConst"),
                        ("Output Path","outputPath"), ("Path to Dark Frames", "darksPath"),
                        ("Path to Data Images", "imagesPaths"), ("Exposure Time Keyword", "timeKeyword")]

                for string,save in list:
                    if string == name:
                        #if name == "Smoothing Constant" or name == "Radius" or name == "Tracking Zoom" or name == "CCD Gain":
                        if name == "Smoothing Constant" or name == "Tracking Zoom" or name == "CCD Gain":
                            self.dict[save] = float(value)
                        elif name == "Ingress" or name == "Egress":
                            self.dict[save] = mathMethods.ut2jd(value)
                        elif name == "Plot Photometry" or name == "Plot Tracking":
                            if value == "on":
                                self.dict[save] = True
                            else:
                                self.dict[save] = False
                        elif name == "Path to Dark Frames" or name == "Path to Data Images":
                            value = inline[1].strip()
                            if len(glob(value)) > 0:
                                self.dict[save] = np.sort(glob(value))
                            elif value == "":
                                self.dict[save] = ""
                            else:
                                tempArr = []
                                for path in str(inline[1]).split(','):
                                    path = path.strip()
                                    path = os.path.join(oscaarpathplus,os.path.abspath(path))
                                    tempArr.append(path)
                                self.dict[save] = np.sort(tempArr)

                        elif name == "Radius":
                            if len(value.split(',')) == 3:
                                ## If multiple aperture radii are requested by dictating the range, enumerate the range:
                                apertureRadiusMin, apertureRadiusMax, apertureRadiusStep = map(float,value.split(','))

                                if (apertureRadiusMax-apertureRadiusMin) % apertureRadiusStep == 0:
                                    apertureRadii = np.arange(apertureRadiusMin, apertureRadiusMax+apertureRadiusStep, apertureRadiusStep)
                                else:
                                    apertureRadii = np.arange(apertureRadiusMin, apertureRadiusMax, apertureRadiusStep)

                                self.dict[save] = apertureRadii
                            elif len(value.split(',')) == 1:
                                ## If only one aperture radius is requested, make a list with only that one element
                                self.dict[save] = [float(value)]
                            else:
                                self.dict[save] = [float(i) for i in value.split(',')]

                        elif name == "Output Path":
                            self.outputPath = os.path.join(oscaarpathplus,os.path.abspath(value))
                        else:
                            self.dict[save] = value
dataset/ETHPy150Open OSCAAR/OSCAAR/oscaar/dataBank.py/dataBank.parseInit/swapped operands of `>`