예제 #1
0
 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])
예제 #2
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)
예제 #3
0
 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)
예제 #4
0
 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])
예제 #5
0
 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_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)
예제 #7
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)
예제 #8
0
 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])
예제 #9
0
    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])
예제 #10
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)
예제 #11
0
 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)
예제 #12
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)
예제 #13
0
 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)