def save_signal_as(self): filename = FileOperator.get_save_file_name(self.signal.filename, wav_only=self.signal.wav_mode) if filename: try: self.signal.save_as(filename) except Exception as e: QMessageBox.critical(self, self.tr("Error saving signal"), e.args[0])
def on_btn_save_rx_clicked(self): rx_device = self.simulator.sniffer.rcv_device if isinstance(rx_device.data, np.ndarray): filename = FileOperator.get_save_file_name("simulation_capture.complex") if filename: rx_device.data[:rx_device.current_index].tofile(filename) self.rx_file_saved.emit(filename)
def on_btn_save_clicked(self): filename = FileOperator.get_save_file_name("profile.fuzz.xml", caption="Save fuzz profile") if filename: self.table_model.protocol.to_xml_file(filename, decoders=self.project_manager.decodings, participants=self.project_manager.participants, modulators=self.modulators)
def on_graphics_view_save_as_clicked(self): filename = FileOperator.get_save_file_name("signal.complex") if filename: try: self.scene_manager.signal.save_as(filename) except Exception as e: QMessageBox.critical(self, self.tr("Error saving signal"), e.args[0])
def on_btn_save_rx_clicked(self): rx_device = self.simulator.sniffer.rcv_device if isinstance(rx_device.data, np.ndarray): filename = FileOperator.get_save_file_name( "simulation_capture.complex") if filename: rx_device.data[:rx_device.current_index].tofile(filename)
def save_signal_as(self): if self.signal.filename: initial_name = self.signal.filename else: initial_name = self.signal.name.replace(" ", "-").replace(",", ".").replace(".", "_") + ".complex" filename = FileOperator.get_save_file_name(initial_name, wav_only=self.signal.wav_mode) if filename: try: self.signal.save_as(filename) except Exception as e: QMessageBox.critical(self, self.tr("Error saving signal"), e.args[0])
def on_btn_save_clicked(self): filename = FileOperator.get_save_file_name( initial_name="myprofile.sim.xml", caption="Save simulator profile") if filename: self.save_simulator_file(filename)
def on_btn_save_clicked(self): filename = FileOperator.get_save_file_name("profile.fuzz", caption="Save fuzz profile") if filename: self.table_model.protocol.to_xml_file(filename)
def on_btn_save_clicked(self): filename = FileOperator.get_save_file_name(initial_name="myprofile.sim.xml", caption="Save simulator profile") if filename: self.save_simulator_file(filename)