public static double GetBestMomentaryFailureRateForScope(Part part, String scope) { ITestFlightCore core = TestFlightInterface.GetCore(part); if (core == null) { return(-1); } MomentaryFailureRate mfr = core.GetBestMomentaryFailureRateForScope(scope); if (mfr.valid) { return(mfr.failureRate); } else { return(-1); } }