Skip to content

Commit

Permalink
Merge pull request #710 from RocketPy-Team/bug/zero-mass-is-not-none
Browse files Browse the repository at this point in the history
BUG: Fix Motor Zero Dry Mass Check
  • Loading branch information
phmbressan authored Oct 9, 2024
2 parents 8e4db26 + eb3ad14 commit dde7ba4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ Attention: The newest changes should be on top -->

### Fixed

- BUG: Fix Motor Zero Dry Mass Check [#710](https://github.com/RocketPy-Team/RocketPy/pull/710)
- BUG: Fix Environment.max_expected_height for custom atmosphere [#707](https://github.com/RocketPy-Team/RocketPy/pull/707)
- BUG: Initialize _Controller Init Parameters [#703](https://github.com/RocketPy-Team/RocketPy/pull/703)
- BUG: Rail Buttons Not Accepted in Add Surfaces [#701](https://github.com/RocketPy-Team/RocketPy/pull/701)
Expand Down
2 changes: 1 addition & 1 deletion rocketpy/motors/motor.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ def dry_mass(self, dry_mass):
dry_mass : float
Motor dry mass in kg.
"""
if dry_mass:
if dry_mass is not None:
if isinstance(dry_mass, (int, float)):
self._dry_mass = dry_mass
else:
Expand Down

0 comments on commit dde7ba4

Please sign in to comment.