You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
help='Partially initialise a project from an exported xlsx or csv file from NIOZ\' Marine Facilities Planning tool (specifically the "Export Coordinates > DD" option). User edits are required after initialisation.',
@@ -34,7 +34,7 @@ def init(path, mfp_file):
34
34
"""
35
35
Initialize a directory for a new expedition, with an example schedule and ship config files.
36
36
37
-
If --mfp_file is provided, it will generate the schedule from the MPF file instead.
37
+
If --mfp-file is provided, it will generate the schedule from the MPF file instead.
38
38
"""
39
39
path=Path(path)
40
40
path.mkdir(exist_ok=True)
@@ -57,12 +57,11 @@ def init(path, mfp_file):
57
57
ifmfp_file:
58
58
# Generate schedule.yaml from the MPF file
59
59
click.echo(f"Generating schedule from {mfp_file}...")
60
-
mfp_to_yaml(
61
-
mfp_file, str(path)
62
-
) # Pass the path to save in the correct directory
60
+
schedule_body=mfp_to_yaml(mfp_file)
63
61
else:
64
62
# Create a default example schedule
65
-
schedule.write_text(utils.get_example_schedule())
63
+
schedule_body=utils.get_example_schedule()
64
+
schedule.write_text(schedule_body)
66
65
67
66
click.echo(f"Created '{config.name}' and '{schedule.name}' at {path}.")
0 commit comments