We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 85be497 commit c994daeCopy full SHA for c994dae
famodel/mooring/mooring.py
@@ -1681,11 +1681,14 @@ def fairleads(self, end):
1681
'''
1682
fairs = []
1683
if end in [1, 'b', 'B']:
1684
- for sub in self.subcons_B:
1685
- fairs = [att['obj'] for att in sub.attachments.values() if isinstance(att['obj'],Fairlead)]
1686
- if end in [0, 'a', 'A']:
1687
- for sub in self.subcons_A:
1688
+ subs = self.subcons_B
+ elif end in [0, 'a', 'A']:
+ subs = self.subcons_A
+
+ for sub in subs:
1689
+ for att in sub.attachments.values():
1690
+ if isinstance(att['obj'],Fairlead):
1691
+ fairs.append(att['obj'])
1692
1693
return fairs
1694
0 commit comments