Skip to content

Commit

Permalink
pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
luca7084 committed Jun 29, 2023
1 parent 434ced4 commit 02a962f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion rocket_twin/drivers/fueling_rocket.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def __init__(self, name: str, w_out, dt, owner: Optional["System"] = None, **kwa
init = {
"rocket.dyn.switch": False,
"rocket.tank.w_out_temp": 0.0,
"pipe.is_open" : True,
"pipe.is_open": True,
"g_tank.w_in": 0.0,
"g_tank.w_out_temp": w_out,
}
Expand Down
8 changes: 4 additions & 4 deletions rocket_twin/systems/tank/pipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ class Pipe(System):

def setup(self):

self.add_inward("is_open", False, desc="Whether the pipe is open or not", unit='')
self.add_inward("is_open", False, desc="Whether the pipe is open or not", unit="")
self.add_inward("w_in", 0.0, desc="Fuel income rate", unit="kg/s")

self.add_outward("w_out", 0.0, desc="Fuel exit rate", unit="kg/s")

def compute(self):

if self.is_open == False:
self.parent.g_tank.w_out_temp = 0.
self.w_out = self.w_in
if self.is_open is False:
self.parent.g_tank.w_out_temp = 0.0
self.w_out = self.w_in

0 comments on commit 02a962f

Please sign in to comment.