def run(bmi_update_rule, posterior_threshold): logger = create_logger() app = QApplication(sys.argv) bmi = BMI(fetfile='./fet.bin') bmi.bmi_update_rule = bmi_update_rule bmi.posterior_threshold = posterior_threshold bmi.set_binner(bin_size=bin_size, B_bins=B_bins) gui = play_raster_GUI(logger=logger, bmi=bmi) gui.show() sys.exit(app.exec_())
def run(bmi_update_rule, posterior_threshold, bmi_mode): playground_log = create_logger() app = QApplication(sys.argv) if bmi_mode: bmi = BMI(fetfile='./fet.bin') bmi.bmi_update_rule = bmi_update_rule bmi.posterior_threshold = posterior_threshold bmi.pos_buffer_len = pos_buffer_len # position buffer length for moving average bmi.two_steps = two_steps_decoding bmi.set_binner(bin_size=bin_size, B_bins=B_bins) else: bmi = None gui = play_raster_GUI(logger=playground_log, bmi=bmi) gui.show() sys.exit(app.exec_())