def test_readwrite_networkSet(self): ''' test_readwrite_networkSet TODO: need __eq__ method for NetworkSet This doesnt test equality between read/write, because there is no __eq__ test for NetworkSet. it only tests for other errors ''' rf.write(self.pickle_file, rf.NS([self.ntwk1, self.ntwk2])) rf.read(self.pickle_file)
def _export_all_networks_fired(self): form_dict = { 'dB/deg': 'db', 'mag/deg': 'ma', 'real/imag': 'ri', } form = form_dict[self.form] file_name = os.path.join(self.output_dir, self.output_filename) ns = rf.NS(self.ntwk_dict) rf.io.general.networkset_2_spreadsheet(ns, file_name=file_name, form=form) for k in ['{} --> {}'.format(k.name, file_name) for k in ns.ntwk_set]: print k