der_dispatch_app/main_app_new.py
def signal_handler(self, signal, frame):
        """
        Capture the CTRL+C signal and save everything.
        :param signal:
        :param frame:
        :return:
        """
        print('You pressed Ctrl+C! Saving output')
        self._res_csvfile.close()
        self.vn_file.close()
        self._PV_P_csvfile.close()
        self._PV_Q_csvfile.close()
        self._PV_node_bus_P_csvfile.close()
        self._PV_node_bus_Q_csvfile.close()
        self._skt.close()
        self.save_plots()
        self._is_running = False
        sys.exit(0)

        Capture the CTRL+C signal and save everything.
        :param signal:
        :param frame:
        :return:
        
Capture the CTRL+C signal and save everything.
Capture the CTRL + C signal and save everything .
def signal_handler(self, signal, frame):
        print('You pressed Ctrl+C! Saving output')
        self._res_csvfile.close()
        self.vn_file.close()
        self._PV_P_csvfile.close()
        self._PV_Q_csvfile.close()
        self._PV_node_bus_P_csvfile.close()
        self._PV_node_bus_Q_csvfile.close()
        self._skt.close()
        self.save_plots()
        self._is_running = False
        sys.exit(0)
def signal_handler ( self , signal , frame ) : print ( 'You pressed Ctrl+C! Saving output' ) self . _res_csvfile . close ( ) self . vn_file . close ( ) self . _PV_P_csvfile . close ( ) self . _PV_Q_csvfile . close ( ) self . _PV_node_bus_P_csvfile . close ( ) self . _PV_node_bus_Q_csvfile . close ( ) self . _skt . close ( ) self . save_plots ( ) self . _is_running = False sys . exit ( 0 )
Capture the CTRL+C signal and save everything.
Capture the CTRL + C signal and save everything .
"""
        Capture the CTRL+C signal and save everything.
        :param signal:
        :param frame:
        :return:
        """
None
self
signal
None
frame
None