def customCV(self, data):

        workspace = data['workspace']
        md = data['mosaicdataset']

        ds = os.path.join(workspace, md)
        ds_cursor = arcpy.UpdateCursor(ds)
        if (ds_cursor != None):
            print ('Calculating values..')
            row = ds_cursor.next()
            while(row != None):
                row.setValue('MinPS', 0)
                row.setValue('MaxPS', 300)

                WRS_Path = row.getValue('WRS_Path')
                WRS_Row = row.getValue('WRS_Row')

                if (WRS_Path != None and
                    WRS_Row != None):
                    PR = (WRS_Path*1000)+WRS_Row
                    row.setValue('PR', PR)


                AcquisitionData = row.getValue('AcquisitionDate')
                if (AcquisitionData != None):
                    AcquisitionData = str(AcquisitionData).replace('-', '/')
                    day = int(AcquisitionData.split()[0].split('/')[1])
                    row.setValue('Month', day)


                grp_name = row.getValue('GroupName')
                if (grp_name != None):
                    CMAX_INDEX = 16
                    if (CMAX_INDEX >= len(grp_name)):
                        row.setValue('DayOfYear', int(grp_name[13:CMAX_INDEX]))
                        row.setValue('Name', grp_name.split('_')[0] + '_' + row.getValue('Tag'))

                ds_cursor.updateRow(row)
                row = ds_cursor.next()

            del ds_cursor


        return True
dataset/ETHPy150Open Esri/solutions-geoprocessing-toolbox/data_management/toolboxes/mdcs/scripts/MDCS_UC.py/UserCode.customCV/swapped operands of `>=`