44def is_criticality_balanced (temperature , neutrons_emitted ):
55 """Verify criticality is balanced.
66
7- :param temperature: Union[int,float] temperature
8- :param neutrons_emitted: Union[int,float] number of neutrons emitted per second
7+ :param temperature: temperature value (integer or float)
8+ :param neutrons_emitted: number of neutrons emitted per second (integer or float)
99 :return: boolean True if conditions met, False if not
1010
1111 A reactor is said to be critical if it satisfies the following conditions:
@@ -20,9 +20,9 @@ def is_criticality_balanced(temperature, neutrons_emitted):
2020def reactor_efficiency (voltage , current , theoretical_max_power ):
2121 """Assess reactor efficiency zone.
2222
23- :param voltage: Union[int,float] voltage
24- :param current: Union[int,float] current
25- :param theoretical_max_power: Union[int,float] power that corresponds to a 100% efficiency
23+ :param voltage: voltage value (integer or float)
24+ :param current: current value (integer or float)
25+ :param theoretical_max_power: power that corresponds to a 100% efficiency (integer or float)
2626 :return: str one of 'green', 'orange', 'red', or 'black'
2727
2828 Efficiency can be grouped into 4 bands:
@@ -43,9 +43,9 @@ def reactor_efficiency(voltage, current, theoretical_max_power):
4343def fail_safe (temperature , neutrons_produced_per_second , threshold ):
4444 """Assess and return safety range.
4545
46- :param temperature: Union[int,float] teperature value
47- :param neutrons_produced_per_second: Union[int,float] the electron flux
48- :param threshold: Union[int,float] the threshold value
46+ :param temperature: value of the temperature (integer or float)
47+ :param neutrons_produced_per_second: neutron flux (integer or float)
48+ :param threshold: threshold (integer or float)
4949 :return: str one of: 'LOW', 'NORMAL', 'DANGER'
5050
5151 - `temperature * neutrons per second` < 40% of `threshold` == 'LOW'
0 commit comments