Skip to content

Commit dde7ba4

Browse files
authored
Merge pull request #710 from RocketPy-Team/bug/zero-mass-is-not-none
BUG: Fix Motor Zero Dry Mass Check
2 parents 8e4db26 + eb3ad14 commit dde7ba4

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ Attention: The newest changes should be on top -->
5050

5151
### Fixed
5252

53+
- BUG: Fix Motor Zero Dry Mass Check [#710](https://github.com/RocketPy-Team/RocketPy/pull/710)
5354
- BUG: Fix Environment.max_expected_height for custom atmosphere [#707](https://github.com/RocketPy-Team/RocketPy/pull/707)
5455
- BUG: Initialize _Controller Init Parameters [#703](https://github.com/RocketPy-Team/RocketPy/pull/703)
5556
- BUG: Rail Buttons Not Accepted in Add Surfaces [#701](https://github.com/RocketPy-Team/RocketPy/pull/701)

rocketpy/motors/motor.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ def dry_mass(self, dry_mass):
370370
dry_mass : float
371371
Motor dry mass in kg.
372372
"""
373-
if dry_mass:
373+
if dry_mass is not None:
374374
if isinstance(dry_mass, (int, float)):
375375
self._dry_mass = dry_mass
376376
else:

0 commit comments

Comments
 (0)