Skip to content

Commit

Permalink
Merge branch 'develop' into enh/sim-decoding
Browse files Browse the repository at this point in the history
  • Loading branch information
phmbressan committed Nov 8, 2024
2 parents 74ba836 + b838d53 commit 7c18881
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/test-pytest-slow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ on:
schedule:
- cron: "0 17 * * 5" # at 05:00 PM, only on Friday
timezone: "America/Sao_Paulo"
push:
branches:
- main
paths:
- "**.py"
- ".github/**"
- "pyproject.toml"
- "requirements*"

defaults:
run:
Expand All @@ -15,7 +23,7 @@ jobs:
strategy:
matrix:
fail-fast: false
python-version: [3.9, 3.12]
python-version: [3.9, 3.13]

env:
OS: ${{ matrix.os }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test_pytest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
python-version: [3.9, 3.12]
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: [3.9, 3.13]
env:
OS: ${{ matrix.os }}
PYTHON: ${{ matrix.python-version }}
Expand Down
4 changes: 2 additions & 2 deletions rocketpy/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ def find_roots_cubic_function(a, b, c, d):
First we define the coefficients of the function ax**3 + bx**2 + cx + d
>>> a, b, c, d = 1, -3, -1, 3
>>> x1, x2, x3 = find_roots_cubic_function(a, b, c, d)
>>> x1, x2, x3
((-1+0j), (3+7.401486830834377e-17j), (1-1.4802973661668753e-16j))
>>> x1
(-1+0j)
To get the real part of the roots, use the real attribute of the complex
number.
Expand Down

0 comments on commit 7c18881

Please sign in to comment.