Skip to content

Commit

Permalink
Corrected bug in export all structures
Browse files Browse the repository at this point in the history
LyceanEM committed Nov 12, 2024
1 parent 201b985 commit 9560765
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lyceanem/base_classes.py
Original file line number Diff line number Diff line change
@@ -480,14 +480,14 @@ def excitation_function(
return calibrated_amplitude_weights

def export_all_structures(self):
objects = copy.deepcopy(self.structures.solids)
for item in range(len(objects)):
if objects[item] is None:
#objects = copy.deepcopy(self.structures.solids)
for item in range(len(self.structures.solids)):
if self.structures.solids[item] is None:
print("Structure does not exist")
else:
objects[item] = GF.mesh_transform(objects[item], self.pose, False)
self.structures.solids[item] = GF.mesh_transform(self.structures.solids[item], self.pose, False)

return objects
return self.structures.solids

def rotate_antenna(
self, rotation_vector, rotation_centre=np.zeros((3, 1), dtype=np.float32)

0 comments on commit 9560765

Please sign in to comment.