Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
659c62b
MNT: simplify function grid interpolation structure.
phmbressan Feb 21, 2026
02ad04c
DOC: add regular grid to function docs
MateusStano Feb 23, 2026
22204d9
ENH: improve multi dim drag implementation to avoid breaking changes
MateusStano Feb 23, 2026
91d3340
TST: fix tests for new drag implementation
MateusStano Feb 23, 2026
a80b41b
ENH: Let the user solve the csv file error instead of muting the error
MateusStano Feb 23, 2026
5707b85
MNT: move create_grid function to tools
MateusStano Feb 23, 2026
68ff563
Merge branch 'enh/multi-variable-drag-fix' of https://github.com/Rock…
MateusStano Feb 23, 2026
252d392
ENH: copilot suggestion
MateusStano Feb 23, 2026
8a2883d
ENH: copilot suggestion
MateusStano Feb 23, 2026
20f60ab
ENH: move load_csv to tools
MateusStano Feb 23, 2026
31ad3c8
Merge branch 'enh/multi-variable-drag-fix' of https://github.com/Rock…
MateusStano Feb 23, 2026
a302b02
ENH: remove unecessary dicretization
MateusStano Feb 24, 2026
6316c9a
MNT: ruff and pylint
MateusStano Feb 24, 2026
30ae32a
MNT: ruff update
MateusStano Feb 24, 2026
cdd7f35
Merge branch 'develop' into enh/multi-variable-drag-fix
MateusStano Feb 24, 2026
211048a
Merge branch 'develop' into enh/multi-variable-drag-fix
MateusStano Feb 26, 2026
340ca6f
MNT: pylint
MateusStano Feb 27, 2026
da64562
ENH: Avoid circular imports
MateusStano Mar 5, 2026
6ea03b7
MNT: fix pylint and cyclic imports again
MateusStano Mar 7, 2026
8f7b420
Merge branch 'develop' into enh/multi-variable-drag-fix
MateusStano Mar 7, 2026
3d8a7e2
DEV: changelog
MateusStano Mar 7, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,6 @@ recursive=no
# source root.
source-roots=

# When enabled, pylint would attempt to guess common misconfiguration and emit
# user-friendly hints instead of false-positive error messages.
suggestion-mode=yes

# Allow loading of arbitrary C extensions. Extensions are imported into the
# active Python interpreter and may run arbitrary code.
unsafe-load-any-extension=no
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ Attention: The newest changes should be on top -->

### Changed

- ENH: Improve multi-variable drag compatibility, regular-grid handling, and related tests/docs [#927](https://github.com/RocketPy-Team/RocketPy/pull/927/changes)
- ENH: replace if elif else chains with match statement [#921](https://github.com/RocketPy-Team/RocketPy/pull/921/changes)
- ENH: Refactor Flight class to improve time node handling and sensor/controllers [#843](https://github.com/RocketPy-Team/RocketPy/pull/843)

Expand Down
12 changes: 8 additions & 4 deletions docs/user/function.rst
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,13 @@ plotted as follows:

.. important::

The ``Function`` class only supports interpolation ``shepard`` and \
extrapolation ``natural`` for datasets higher than one dimension (more than \
one input).
For datasets higher than one dimension (more than one input), the
``Function`` class supports interpolation ``linear``, ``shepard``, ``rbf``
and ``regular_grid``.

The ``regular_grid`` interpolation requires a complete Cartesian grid and
must be provided as ``(axes, grid_data)``. See the ``Function`` API
documentation for details.

CSV File
^^^^^^^^
Expand Down Expand Up @@ -183,7 +187,7 @@ In this section we are going to delve deeper on ``Function`` creation and its pa
- source: the ``Function`` data source. We have explored this parameter in the section above;
- inputs: a list of strings containing each input variable name. If the source only has one input, may be abbreviated as a string (e.g. "speed (m/s)");
- outputs: a list of strings containing each output variable name. If the source only has one output, may be abbreviated as a string (e.g. "total energy (J)");
- interpolation: a string that is the interpolation method to be used if the source is a dataset. Defaults to ``spline``;
- interpolation: a string that is the interpolation method to be used if the source is a dataset. For N-D datasets, supported options are ``linear``, ``shepard``, ``rbf`` and ``regular_grid``. Defaults to ``spline`` for 1-D and ``shepard`` for N-D datasets;
- extrapolation: a string that is the extrapolation method to be used if the source is a dataset. Defaults to ``constant``;
- title: the title to be shown in the plots.

Expand Down
9 changes: 5 additions & 4 deletions docs/user/rocket/generic_surface.rst
Original file line number Diff line number Diff line change
Expand Up @@ -243,16 +243,17 @@ independent variables:
- ``beta``: Side slip angle.
- ``mach``: Mach number.
- ``reynolds``: Reynolds number.
- ``q``: Pitch rate.
- ``r``: Yaw rate.
- ``p``: Roll rate.
- ``pitch_rate``: Pitch rate.
- ``yaw_rate``: Yaw rate.
- ``roll_rate``: Roll rate.

The last column must be the coefficient value, and must contain a header,
though the header name can be anything.

.. important::
Not all columns need to be present in the file, but the columns that are
present must be named, **and ordered**, as described above.
present must be correctly named as described above. Independent variable
columns can be in any order.

An example of a ``.csv`` file is shown below:

Expand Down
Loading