ReliaQualAssociates / ramstk

Reliability, Availability, Maintainability, Safety (RAMS) analysis program.
https://www.reliaqual.com/rtk/
BSD 3-Clause "New" or "Revised" License
44 stars 15 forks source link

Handle KeyError in Capacitor calculate_217f_part_stress() #68

Closed weibullguy closed 6 years ago

weibullguy commented 6 years ago

Expected Behavior

Calculation method continues to calculate remaining values even if there are missing input values used to select from dicts.

Actual Behavior

Method raises KeyError when missing input value prevents selecting dict value. Selecting a new component/assembly does not 'reset' anything and RTK must be closed and re-opened.

Steps to Reproduce the Problem

  1. Select a capacitor using the part stress method.
  2. Don't fully populate all inputs.
  3. Attempt to calculate part.

Operating Environment

weibullguy commented 6 years ago

This was fixed in a previous commit, but which one is unknown.