Skip to content

Commit

Permalink
Notebooks (#25)
Browse files Browse the repository at this point in the history
* Added demonstration notebook
  • Loading branch information
luca7084 authored Sep 1, 2023
1 parent 07822ac commit 105bfcc
Show file tree
Hide file tree
Showing 9 changed files with 1,039 additions and 9 deletions.
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ repos:
- id: check-merge-conflict
- id: pretty-format-json
args: [--autofix]
exclude: /.*\.ipynb
- id: debug-statements
language_version: python3
- repo: https://github.com/pre-commit/mirrors-isort
Expand Down
4 changes: 2 additions & 2 deletions rocket_twin/drivers/mission.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ def __init__(
init_fuel = init
init_flight = {
"rocket.stage_1.tank.fuel.w_out_max": 3.0,
"g_tank.w_in": 0.0,
"rocket.controller.is_on_1": True,
}

stop_fuel = "rocket.stage_1.tank.weight_prop >= rocket.stage_1.tank.weight_max"
stop_fuel = "rocket.flying == 1."
stop_flight = stop

# Fueling
Expand Down
Loading

0 comments on commit 105bfcc

Please sign in to comment.