Skip to content
Snippets Groups Projects
Commit 92e787dd authored by Jean-Baptiste Bayle's avatar Jean-Baptiste Bayle
Browse files

Fix bug in distant MOSA for a given spacecraft

parent 898e15dd
No related branches found
No related tags found
1 merge request!4Resolve "Add glitch"
...@@ -166,14 +166,14 @@ class ForEachSC(ForEachObject): ...@@ -166,14 +166,14 @@ class ForEachSC(ForEachObject):
"""Return index of left MOSA.""" """Return index of left MOSA."""
if sc not in ForEachSC.indices(): if sc not in ForEachSC.indices():
raise ValueError(f"invalid spacecraft index '{sc}'") raise ValueError(f"invalid spacecraft index '{sc}'")
return f'{sc}{ForEachSC.distant_left(sc)}' return f'{sc}{ForEachSC.distant_right(sc)}'
@staticmethod @staticmethod
def right_mosa(sc): def right_mosa(sc):
"""Return index of right MOSA.""" """Return index of right MOSA."""
if sc not in ForEachSC.indices(): if sc not in ForEachSC.indices():
raise ValueError(f"invalid spacecraft index '{sc}'") raise ValueError(f"invalid spacecraft index '{sc}'")
return f'{sc}{ForEachSC.distant_right(sc)}' return f'{sc}{ForEachSC.distant_left(sc)}'
class ForEachMOSA(ForEachObject): class ForEachMOSA(ForEachObject):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment