Skip to content

Commit 4370fdf

Browse files
committed
Fix issue with transmitters None
1 parent c258a80 commit 4370fdf

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

simpeg_drivers/components/factories/entity_factory.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,10 @@ def _build(self, inversion_data: InversionData):
105105
)
106106
entity.transmitters.cells = cells
107107

108-
tx_freq = self.params.data_object.transmitters.get_data("Tx frequency")
109-
if tx_freq:
110-
tx_freq[0].copy(parent=entity.transmitters)
108+
if self.params.data_object.transmitters is not None:
109+
tx_freq = self.params.data_object.transmitters.get_data("Tx frequency")
110+
if tx_freq:
111+
tx_freq[0].copy(parent=entity.transmitters)
111112

112113
return entity
113114

0 commit comments

Comments
 (0)