Skip to content

Commit ff72fb4

Browse files
committed
Minor export-import fixes
1 parent 00a9073 commit ff72fb4

2 files changed

Lines changed: 14 additions & 2 deletions

File tree

main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -473,9 +473,9 @@ def export_scenario(scn_filename, verbose=True):
473473
# Export commands
474474
if command_history:
475475
if verbose:
476-
print("Saving command history into " + scn_filename[:-4] + ".obf")
476+
print("Saving command history into " + scn_filename[:-4] + "_cmdhist.obf")
477477

478-
with open(scn_filename[:-4] + ".obf", "w") as cmd_file:
478+
with open(scn_filename[:-4] + "_cmdhist.obf", "w") as cmd_file:
479479
for cmd in command_history:
480480
cmd_file.write(' '.join(cmd) + "\n")
481481

maneuver.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ def __init__(self, name, vessel, frame_body, orientation, delta_v, t_perform):
1919
self.frame_body = frame_body
2020
self.orientation = orientation
2121
self.orientation_input = orientation
22+
23+
if type(self.orientation_input) != str and type(self.orientation_input) != list:
24+
self.orientation_input = orientation.tolist()
25+
2226
self.delta_v = delta_v
2327
self.t_perform = t_perform
2428
self.done = False
@@ -91,6 +95,10 @@ def __init__(self, name, vessel, frame_body, orientation, accel, t_start, durati
9195
self.frame_body = frame_body
9296
self.orientation = orientation
9397
self.orientation_input = orientation
98+
99+
if type(self.orientation_input) != str and type(self.orientation_input) != list:
100+
self.orientation_input = orientation.tolist()
101+
94102
self.accel = accel
95103
self.duration = duration
96104
self.t_start = t_start
@@ -195,6 +203,10 @@ def __init__(self, name, vessel, frame_body, orientation, thrust, mass_init, mas
195203
self.frame_body = frame_body
196204
self.orientation = orientation
197205
self.orientation_input = orientation
206+
207+
if type(self.orientation_input) != str and type(self.orientation_input) != list:
208+
self.orientation_input = orientation.tolist()
209+
198210
self.thrust = thrust
199211
self.mass_init = mass_init
200212
self.mass_flow = mass_flow

0 commit comments

Comments
 (0)