Skip to content

Commit

Permalink
STY: apply black for linting.
Browse files Browse the repository at this point in the history
  • Loading branch information
phmbressan committed Nov 23, 2023
1 parent 0b28b2c commit 72d8c56
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions rocketpy/motors/tank.py
Original file line number Diff line number Diff line change
Expand Up @@ -925,7 +925,9 @@ def fluid_volume(self):
Function
Volume of the fluid as a function of time.
"""
return Function(self.geometry.total_volume).set_discrete_based_on_model(self.gas_volume)
return Function(self.geometry.total_volume).set_discrete_based_on_model(
self.gas_volume
)

@funcify_method("Time (s)", "Volume (m³)")
def liquid_volume(self):
Expand Down Expand Up @@ -1155,7 +1157,9 @@ def gas_volume(self):
Volume of the gas as a function of time.
"""
# TODO: there's a bug on the gas_center_of_mass is I don't discretize here
func = Function(self.geometry.total_volume).set_discrete_based_on_model(self.liquid_volume)
func = Function(self.geometry.total_volume).set_discrete_based_on_model(
self.liquid_volume
)
func -= self.liquid_volume
return func

Expand Down

0 comments on commit 72d8c56

Please sign in to comment.