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
# 1 = only one problem in expedition (either pre-departure or during expedition, general or instrument) [and set this to DEFAULT prob level]
79
-
# 2 = multiple problems can occur (general and instrument), but only one pre-departure problem allowed
85
+
# 2 = multiple problems can occur (general and instrument; total determined by the length of the expedition), but only one pre-departure problem allowed
80
86
81
87
# TODO: N.B. there is not logic currently controlling how many problems can occur in total during an expedition; at the moment it can happen every time the expedition is run if it's a different waypoint / problem combination
82
88
@@ -85,37 +91,51 @@ def execute(
85
91
# TODO: and the results dir given a unique name which can be used to check against when re-running the expedition?
86
92
87
93
# allow only one pre-departure problem to occur (only GeneralProblems can be pre-departure problems)
) # ensure any problem with pre_departure=True is first; default to pre_departure=False if attribute not present (as is the case for InstrumentProblem's)
99
105
100
-
# TODO: make the log output stand out more visually
106
+
# map each problem to a [random] waypoint (or None if pre-departure)
107
+
waypoint_idxs= []
101
108
forpinproblems:
102
-
# skip if instrument problem but `p.instrument_type` does not match `instrument_type_validation`
# skip if instrument problem but `p.instrument_type` does not match `instrument_type_validation` (i.e. the current instrument being simulated in the expedition, e.g. from _run.py)
"""Select which problems (selected from general or instrument problems). Higher probability (tied to expedition duration) means more problems are likely to occur."""
0 commit comments