diff --git a/CHANGELOG.md b/CHANGELOG.md index 0efb2f8fa..fb8fe79ee 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -43,6 +43,15 @@ straightforward as possible. - ENH: Parachute trigger doesn't work if "Apogee" is used instead of "apogee" [#489](https://github.com/RocketPy-Team/RocketPy/pull/489) +## [v1.1.3] - 2023-11-29 + +Here we write upgrading notes for brands. It's a team effort to make them as +straightforward as possible. + +### Fixed + +- FIX: Broken Function.get_value_opt for N-Dimensional Functions [#492](https://github.com/RocketPy-Team/RocketPy/pull/492/files) + ## [v1.1.2] - 2023-11-25 You can install this version by running `pip install rocketpy==1.1.2` diff --git a/docs/conf.py b/docs/conf.py index 9a056cbcc..820d3f347 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -24,7 +24,7 @@ author = "RocketPy Team" # The full version, including alpha/beta/rc tags -release = "1.1.2" +release = "1.1.3" # -- General configuration --------------------------------------------------- diff --git a/docs/user/installation.rst b/docs/user/installation.rst index 1945af799..ab6b0c9d9 100644 --- a/docs/user/installation.rst +++ b/docs/user/installation.rst @@ -19,7 +19,7 @@ If you want to choose a specific version to guarantee compatibility, you may ins .. code-block:: shell - pip install rocketpy==1.1.2 + pip install rocketpy==1.1.3 Optional Installation Method: ``conda`` diff --git a/rocketpy/mathutils/function.py b/rocketpy/mathutils/function.py index 8bdad9d2b..9c4b3781d 100644 --- a/rocketpy/mathutils/function.py +++ b/rocketpy/mathutils/function.py @@ -483,6 +483,7 @@ def get_value_opt(x): elif self.__interpolation__ == "shepard": x_data = self.source[:, 0:-1] # Support for N-Dimensions + y_data = self.source[:, -1] len_y_data = len(y_data) # A little speed up # change the function's name to avoid mypy's error diff --git a/setup.py b/setup.py index 4632bd009..b2e475b26 100644 --- a/setup.py +++ b/setup.py @@ -23,7 +23,7 @@ setuptools.setup( name="rocketpy", - version="1.1.2", + version="1.1.3", install_requires=necessary_require, extras_require={ "env_analysis": env_analysis_require, diff --git a/tests/test_function.py b/tests/test_function.py index 3eb3db8e3..bd312d4a7 100644 --- a/tests/test_function.py +++ b/tests/test_function.py @@ -73,8 +73,8 @@ def test_getters(func_from_csv, func_2d_from_csv): assert func_2d_from_csv.get_outputs() == ["Scalar"] assert func_2d_from_csv.get_interpolation_method() == "shepard" assert func_2d_from_csv.get_extrapolation_method() == "natural" - assert np.isclose(func_2d_from_csv.get_value(0, 0), 0.0, atol=1e-6) - assert np.isclose(func_2d_from_csv.get_value_opt(0, 0), 0.0, atol=1e-6) + assert np.isclose(func_2d_from_csv.get_value(0.1, 0.8), 0.058, atol=1e-6) + assert np.isclose(func_2d_from_csv.get_value_opt(0.1, 0.8), 0.058, atol=1e-6) def test_setters(func_from_csv, func_2d_from_csv):