Skip to content

Commit fa3d9a7

Browse files
authored
Merge pull request #503 from RocketPy-Team/rel/v1.1.4
REL: v1.1.4
2 parents 22bb07b + 0c49c0b commit fa3d9a7

File tree

11 files changed

+36
-34
lines changed

11 files changed

+36
-34
lines changed

CHANGELOG.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,23 @@ straightforward as possible.
4242

4343
-
4444

45-
## [v1.1.3] - 2023-11-29
45+
## [v1.1.4] - 2023-12-07
4646

47-
Here we write upgrading notes for brands. It's a team effort to make them as
48-
straightforward as possible.
47+
You can install this version by running `pip install rocketpy==1.1.4`
48+
49+
### Fixed
50+
51+
- DOC: Change from % to ! in the first cell to run properly in Colab. [#496](https://github.com/RocketPy-Team/RocketPy/pull/496)
52+
- FIX: changes Generic Motor exhaust velocity to cached property [#497](https://github.com/RocketPy-Team/RocketPy/pull/497)
53+
54+
## [v1.1.3] - 2023-11-30
55+
56+
You can install this version by running `pip install rocketpy==1.1.3`
4957

5058
### Fixed
5159

52-
- FIX: Broken Function.get_value_opt for N-Dimensional Functions [#492](https://github.com/RocketPy-Team/RocketPy/pull/492/files)
60+
- FIX: Broken Function.get_value_opt for N-Dimensional Functions [#492](https://github.com/RocketPy-Team/RocketPy/pull/492)
61+
- FIX: Never ending Flight simulations when using a GenericMotor [#497](https://github.com/RocketPy-Team/RocketPy/pull/497)
5362

5463
## [v1.1.2] - 2023-11-25
5564

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
author = "RocketPy Team"
2525

2626
# The full version, including alpha/beta/rc tags
27-
release = "1.1.3"
27+
release = "1.1.4"
2828

2929

3030
# -- General configuration ---------------------------------------------------

docs/notebooks/deployable_payload_example.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@
4444
"metadata": {},
4545
"outputs": [],
4646
"source": [
47-
"%pip install rocketpy netCDF4\n",
48-
"%git clone https://github.com/RocketPy-Team/RocketPy.git"
47+
"!pip install rocketpy netCDF4\n",
48+
"!git clone https://github.com/RocketPy-Team/RocketPy.git"
4949
]
5050
},
5151
{

docs/notebooks/dispersion_analysis/dispersion_analysis.ipynb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"metadata": {},
3838
"outputs": [],
3939
"source": [
40-
"%git clone https://github.com/RocketPy-Team/RocketPy.git\n",
40+
"!git clone https://github.com/RocketPy-Team/RocketPy.git\n",
4141
"import os\n",
4242
"\n",
4343
"os.chdir(\"RocketPy/docs/notebooks/dispersion_analysis\")"
@@ -66,8 +66,7 @@
6666
},
6767
"outputs": [],
6868
"source": [
69-
"%pip install netCDF4\n",
70-
"%pip install rocketpy"
69+
"!pip install rocketpy"
7170
]
7271
},
7372
{

docs/notebooks/dispersion_analysis/parachute_drop_from_helicopter.ipynb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"metadata": {},
3232
"outputs": [],
3333
"source": [
34-
"%git clone https://github.com/giovaniceotto/RocketPy.git\n",
34+
"!git clone https://github.com/giovaniceotto/RocketPy.git\n",
3535
"import os\n",
3636
"\n",
3737
"os.chdir(\"RocketPy/docs/notebooks/dispersion_analysis\")"
@@ -60,8 +60,7 @@
6060
},
6161
"outputs": [],
6262
"source": [
63-
"%pip install netCDF4\n",
64-
"%pip install rocketpy"
63+
"!pip install rocketpy"
6564
]
6665
},
6766
{

docs/notebooks/getting_started_colab.ipynb

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,9 @@
2222
"We start by setting up our environment. To run this notebook, we will need:\n",
2323
"\n",
2424
"- RocketPy\n",
25-
"- netCDF4 (to get weather forecasts)\n",
2625
"- Data files (we will clone RocketPy's repository for these)\n",
2726
"\n",
28-
"Therefore, let's run the following lines of code:\n"
27+
"Therefore, let's run the following lines of code:"
2928
]
3029
},
3130
{
@@ -38,8 +37,8 @@
3837
},
3938
"outputs": [],
4039
"source": [
41-
"%pip install rocketpy netCDF4\n",
42-
"%git clone https://github.com/giovaniceotto/RocketPy.git"
40+
"!pip install rocketpy\n",
41+
"!git clone https://github.com/giovaniceotto/RocketPy.git"
4342
]
4443
},
4544
{
@@ -70,16 +69,6 @@
7069
"Here we go through a simplified rocket trajectory simulation to get you started. Let's start by importing the rocketpy module.\n"
7170
]
7271
},
73-
{
74-
"cell_type": "code",
75-
"execution_count": null,
76-
"metadata": {},
77-
"outputs": [],
78-
"source": [
79-
"%load_ext autoreload\n",
80-
"%autoreload 2"
81-
]
82-
},
8372
{
8473
"cell_type": "code",
8574
"execution_count": 1,
@@ -101,7 +90,7 @@
10190
"id": "ImgkhEkZNVE8"
10291
},
10392
"source": [
104-
"If you are using Jupyter Notebooks, it is recommended to run the following line to make matplotlib plots which will be shown later interactive and higher quality.\n"
93+
"It is recommended to run the following line to make matplotlib plots which will be shown later interactive and higher quality.\n"
10594
]
10695
},
10796
{

docs/user/installation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ If you want to choose a specific version to guarantee compatibility, you may ins
1919

2020
.. code-block:: shell
2121
22-
pip install rocketpy==1.1.3
22+
pip install rocketpy==1.1.4
2323
2424
2525
Optional Installation Method: ``conda``

rocketpy/motors/hybrid_motor.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from ..mathutils.function import funcify_method, reset_funcified_methods
1+
from ..mathutils.function import Function, funcify_method, reset_funcified_methods
22
from ..plots.hybrid_motor_plots import _HybridMotorPlots
33
from ..prints.hybrid_motor_prints import _HybridMotorPrints
44
from .liquid_motor import LiquidMotor
@@ -372,7 +372,9 @@ def exhaust_velocity(self):
372372
self.exhaust_velocity : Function
373373
Gas exhaust velocity of the motor.
374374
"""
375-
return self.total_impulse / self.propellant_initial_mass
375+
return Function(
376+
self.total_impulse / self.propellant_initial_mass
377+
).set_discrete_based_on_model(self.thrust)
376378

377379
@funcify_method("Time (s)", "Mass (kg)")
378380
def propellant_mass(self):

rocketpy/motors/motor.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1224,7 +1224,9 @@ def exhaust_velocity(self):
12241224
self.exhaust_velocity : Function
12251225
Gas exhaust velocity of the motor.
12261226
"""
1227-
return self.total_impulse / self.propellant_initial_mass
1227+
return Function(
1228+
self.total_impulse / self.propellant_initial_mass
1229+
).set_discrete_based_on_model(self.thrust)
12281230

12291231
@funcify_method("Time (s)", "Mass Flow Rate (kg/s)")
12301232
def mass_flow_rate(self):

rocketpy/motors/solid_motor.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,9 @@ def exhaust_velocity(self):
381381
self.exhaust_velocity : Function
382382
Gas exhaust velocity of the motor.
383383
"""
384-
return self.total_impulse / self.propellant_initial_mass
384+
return Function(
385+
self.total_impulse / self.propellant_initial_mass
386+
).set_discrete_based_on_model(self.thrust)
385387

386388
@property
387389
def propellant_initial_mass(self):

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
setuptools.setup(
2525
name="rocketpy",
26-
version="1.1.3",
26+
version="1.1.4",
2727
install_requires=necessary_require,
2828
extras_require={
2929
"env_analysis": env_analysis_require,

0 commit comments

Comments
 (0)