예제 #1
0
def main(ymlfile):

    # call apps

    arrange(ymlfile)
    report(ymlfile)
    
    return ymlfile
예제 #2
0
def generate_report(report_folder_base, running_time, extracttype, pathto):
    logfunc("")
    logfunc("Report generation started.")

    report(report_folder_base, running_time, extracttype, pathto)

    logfunc("Report generation Completed.")
    logfunc("")
    logfunc(f"Report name: {report_folder_base}")
def payment(total):
        if ordered_list:
                print('\nTotal amount: Rs.',total)
                report(total,ordered_list,customer)
                print('\n'+'Payment Successful!!!\n')
                
                clear_data()
        else:
                print('Cart is empty')
        menu()
예제 #4
0
    def run(self):

        load_cifar = Data()

        X_train, y_train, X_test, y_test = load_cifar.load_dataset()
        X_train, y_train, X_test, y_test = load_cifar.reduceDataSize(
            X_train, y_train, X_test, y_test, self.fractionOfData)
        load_cifar.dataSize(X_train, y_train, X_test, y_test)

        if self.imageSize != 32:
            X_train, X_test = load_cifar.upscaleData(X_train, X_test,
                                                     self.imageSize)

        X_train, X_test = load_cifar.normalize(X_train, X_test)

        modelA = vggModel()

        early_stop = EarlyStopping(monitor='val_loss',
                                   mode='min',
                                   verbose=1,
                                   patience=self.patience)

        datagen = ImageDataGenerator(width_shift_range=0.1,
                                     height_shift_range=0.1,
                                     horizontal_flip=True)
        it_train = datagen.flow(X_train, y_train, batch_size=64)

        steps = int(X_train.shape[0] / 64)
        history = modelA.fit(it_train,
                             steps_per_epoch=steps,
                             epochs=self.epochs,
                             validation_data=(X_test, y_test),
                             verbose=1,
                             callbacks=[early_stop])

        report(history, modelA, X_test, y_test)

        return modelA
예제 #5
0
class mainwindow(QMainWindow):
    def __init__(self):
        super(mainwindow,self).__init__()

        try:
            self.conn = psycopg2.connect("dbname=green_view user=postgres host=localhost password=password")
            #self.cur = self.conn.cursor()
            self.statusBar().showMessage("Database Online")
        except Exception,e:
            self.statusBar().showMessage("Failed to connect to database...Please check your database connection!!" + str(e))
            return


        self.report = report(self.conn)
        self.mainpage = combined(self.conn)
        self.admin = administration(self.conn)

        self.menu_bar = self.menuBar()

        self.file = self.menu_bar.addMenu("File")
        self.product = self.menu_bar.addMenu("Products")

        exit = QAction("Exit",self)
        exit.setShortcut("Ctrl+q")
        self.file.addAction(exit)

        self.file.triggered[QAction].connect(self.quitapp)

        p_details = QAction("Product Details",self)
        p_details.setShortcut("Ctrl+p")
        self.product.addAction(p_details)

        self.product.triggered[QAction].connect(self.processtriger)

        self.tab_vals = QTabWidget(self)
        self.tab_vals.addTab(self.mainpage,"DAILY RECODS")
        self.tab_vals.addTab(self.report,"REPORTS")

        self.admin.done_btn.clicked.connect(self.getadded)

        self.setCentralWidget(self.tab_vals)
        #self.statusBar().showMessage('ready')
        self.setWindowTitle("BEER  SHOP")
        self.setGeometry(100,0,1170,670)
예제 #6
0
                log.write(f'Files for {val} located at {pathh}.<br>')
    log.close()

else:
    logfunc('Error on argument -o')
'''	
if os.path.exists(reportfolderbase+'temp/'):
	shutil.rmtree(reportfolderbase+'temp/')
	#call reporting script		
'''
#logfunc(f'iOS version: {versionf} ')

logfunc('')
logfunc('Processes completed.')
end = process_time()
time = start - end
logfunc("Processing time: " + str(abs(time)))

log = open(reportfolderbase + 'Script Logs/ProcessedFilesLog.html',
           'a',
           encoding='utf8')
log.write(f'Processing time in secs: {str(abs(time))}')
log.close()

logfunc('')
logfunc('Report generation started.')
report(reportfolderbase, time, extracttype, pathto)
logfunc('Report generation Completed.')
logfunc('')
logfunc(f'Report name: {reportfolderbase}')
예제 #7
0
파일: menu.py 프로젝트: nickzhq/OOADProject
 def report(self):
     return report().viewState()
예제 #8
0
파일: ileappGUI.py 프로젝트: slad99/iLEAPP
            if not filefound:
                window.refresh()
                print()
                print(f'No files found for {key} -> {val}.')
                log.write(f'No files found for {key} -> {val}.<br><br>')
            else:

                print()
                window.refresh()
                globals()[key](filefound)
                for pathh in filefound:
                    log.write(f'Files for {val} located at {pathh}.<br><br>')
        log.close()

    else:
        print('Error on argument -o')

    if os.path.exists(reportfolderbase + 'temp/'):
        shutil.rmtree(reportfolderbase + 'temp/')

    #print(f'iOS version: {versionf} ')
    report(reportfolderbase)
    print('')
    print('Processes completed.')
    end = process_time()
    time = start - end
    print("Processing time in secs: " + str(abs(time)))
    locationmessage = ('Report name: ' + reportfolderbase)
    sg.Popup('Processing completed', locationmessage)
    sys.exit()
예제 #9
0
 def func6(self):
     self.window.destroy()
     report()
     first_page()
예제 #10
0
def test_report():
    report(ymlfile)