@@ -299,7 +299,7 @@ def run(self, path_dir: str = DEFAULT_DATA_DIR):
299
299
# _ = self._upload_terminal_modeler()
300
300
batch_data = self ._construct_smatrix ()
301
301
smatrix_data = MicrowaveSMatrixData (batch_data = batch_data )
302
- return TerminalComponentModelerData (simulation = self , data = ( smatrix_data ,) )
302
+ return TerminalComponentModelerData (simulation = self , data = smatrix_data )
303
303
304
304
##### Backwards compatibility methods #####
305
305
@@ -325,9 +325,9 @@ def _monitor_data_at_port_amplitude(
325
325
TerminalComponentModelerData ,
326
326
)
327
327
328
- a = MicrowaveSMatrixData (a = self ._construct_smatrix ())
328
+ smatrix_data = MicrowaveSMatrixData (data = self ._construct_smatrix ())
329
329
data = TerminalComponentModelerData (
330
- simulation = self , data = ( a ,)
330
+ simulation = self , data = smatrix_data
331
331
)._monitor_data_at_port_amplitude (
332
332
port = port , sim_data = sim_data , monitor_data = monitor_data , a_port = a_port
333
333
)
@@ -343,10 +343,10 @@ def get_antenna_metrics_data(
343
343
TerminalComponentModelerData ,
344
344
)
345
345
346
- a = MicrowaveSMatrixData (a = self ._construct_smatrix ())
347
- data = TerminalComponentModelerData (simulation = self , data = ( a ,)). get_antenna_metrics_data (
348
- port_amplitudes = port_amplitudes , monitor_name = monitor_name
349
- )
346
+ smatrix_data = MicrowaveSMatrixData (data = self ._construct_smatrix ())
347
+ data = TerminalComponentModelerData (
348
+ simulation = self , data = smatrix_data
349
+ ). get_antenna_metrics_data ( port_amplitudes = port_amplitudes , monitor_name = monitor_name )
350
350
return data
351
351
352
352
@staticmethod
@@ -370,8 +370,10 @@ def port_reference_impedances(self) -> PortDataArray:
370
370
TerminalComponentModelerData ,
371
371
)
372
372
373
- a = MicrowaveSMatrixData (a = self ._construct_smatrix ())
374
- data = TerminalComponentModelerData (simulation = self , data = (a ,)).port_reference_impedances
373
+ smatrix_data = MicrowaveSMatrixData (data = self ._construct_smatrix ())
374
+ data = TerminalComponentModelerData (
375
+ simulation = self , data = smatrix_data
376
+ ).port_reference_impedances
375
377
return data
376
378
377
379
def _port_reference_impedances (self , batch_data ) -> PortDataArray :
@@ -380,8 +382,10 @@ def _port_reference_impedances(self, batch_data) -> PortDataArray:
380
382
TerminalComponentModelerData ,
381
383
)
382
384
383
- a = MicrowaveSMatrixData (a = self ._construct_smatrix ())
384
- data = TerminalComponentModelerData (simulation = self , data = (a ,)).port_reference_impedances
385
+ smatrix_data = MicrowaveSMatrixData (data = self ._construct_smatrix ())
386
+ data = TerminalComponentModelerData (
387
+ simulation = self , data = smatrix_data
388
+ ).port_reference_impedances
385
389
return data
386
390
387
391
@staticmethod
0 commit comments