Skip to content

Commit 00485e0

Browse files
authored
Merge branch 'AtsushiSakai:master' into master
2 parents 02c7ec4 + a2c42c3 commit 00485e0

File tree

15 files changed

+33
-18
lines changed

15 files changed

+33
-18
lines changed

.circleci/config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ orbs:
66
jobs:
77
build_doc:
88
docker:
9-
- image: cimg/python:3.12
9+
- image: cimg/python:3.13
1010
steps:
1111
- checkout
1212
- run:

.github/workflows/Linux_CI.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
strategy:
1414
matrix:
15-
python-version: [ '3.12' ]
15+
python-version: [ '3.13' ]
1616

1717
name: Python ${{ matrix.python-version }} CI
1818

.github/workflows/MacOS_CI.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
runs-on: macos-latest
1717
strategy:
1818
matrix:
19-
python-version: [ '3.12' ]
19+
python-version: [ '3.13' ]
2020
name: Python ${{ matrix.python-version }} CI
2121
steps:
2222
- uses: actions/checkout@v4

.github/workflows/Windows_CI.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
runs-on: windows-latest
1717
strategy:
1818
matrix:
19-
python-version: [ '3.12' ]
19+
python-version: [ '3.13' ]
2020
name: Python ${{ matrix.python-version }} CI
2121
steps:
2222
- uses: actions/checkout@v4

AerialNavigation/rocket_powered_landing/rocket_powered_landing.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
W_DELTA_SIGMA = 1e-1 # difference in flight time
3232
W_NU = 1e5 # virtual control
3333

34+
print(cvxpy.installed_solvers())
3435
solver = 'ECOS'
3536
verbose_solver = False
3637

@@ -462,11 +463,11 @@ def __init__(self, m, K):
462463
# x_t+1 = A_*x_t+B_*U_t+C_*U_T+1*S_*sigma+zbar+nu
463464
constraints += [
464465
self.var['X'][:, k + 1] ==
465-
cvxpy.reshape(self.par['A_bar'][:, k], (m.n_x, m.n_x)) @
466+
cvxpy.reshape(self.par['A_bar'][:, k], (m.n_x, m.n_x), order='F') @
466467
self.var['X'][:, k] +
467-
cvxpy.reshape(self.par['B_bar'][:, k], (m.n_x, m.n_u)) @
468+
cvxpy.reshape(self.par['B_bar'][:, k], (m.n_x, m.n_u), order='F') @
468469
self.var['U'][:, k] +
469-
cvxpy.reshape(self.par['C_bar'][:, k], (m.n_x, m.n_u)) @
470+
cvxpy.reshape(self.par['C_bar'][:, k], (m.n_x, m.n_u), order='F') @
470471
self.var['U'][:, k + 1] +
471472
self.par['S_bar'][:, k] * self.var['sigma'] +
472473
self.par['z_bar'][:, k] +
@@ -536,7 +537,7 @@ def solve(self, **kwargs):
536537
with warnings.catch_warnings(): # For User warning from solver
537538
warnings.simplefilter('ignore')
538539
self.prob.solve(verbose=verbose_solver,
539-
solver=solver)
540+
solver=solver)
540541
except cvxpy.SolverError:
541542
error = True
542543

InvertedPendulum/inverted_pendulum_mpc_control.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def mpc_control(x0):
9191
prob = cvxpy.Problem(cvxpy.Minimize(cost), constr)
9292

9393
start = time.time()
94-
prob.solve(verbose=False)
94+
prob.solve(verbose=False, solver=cvxpy.CLARABEL)
9595
elapsed_time = time.time() - start
9696
print(f"calc time:{elapsed_time:.6f} [sec]")
9797

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ or this paper for more details:
102102

103103
For running each sample code:
104104

105-
- [Python 3.12.x](https://www.python.org/)
105+
- [Python 3.13.x](https://www.python.org/)
106106

107107
- [NumPy](https://numpy.org/)
108108

appveyor.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ environment:
88
CMD_IN_ENV: "cmd /E:ON /V:ON /C .\\appveyor\\run_with_env.cmd"
99

1010
matrix:
11-
- PYTHON_DIR: C:\Python310-x64
11+
- PYTHON_DIR: C:\Python313-x64
1212

1313
branches:
1414
only:

docs/_static/img/source_link_1.png

85.9 KB
Loading

docs/_static/img/source_link_2.png

232 KB
Loading

docs/modules/0_getting_started/3_how_to_contribute_main.rst

+14-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ to understand the philosophies of this project.
2626
Check your Python version.
2727
---------------------------
2828

29-
We only accept a PR for Python 3.12.x or higher.
29+
We only accept a PR for Python 3.13.x or higher.
3030

3131
We will not accept a PR for Python 2.x.
3232

@@ -107,6 +107,18 @@ mathematics and the algorithm of the example.
107107
Documentations related codes should be in the python script as the header
108108
comments of the script or docstrings of each function.
109109

110+
Also, each document should have a link to the code in Github.
111+
You can easily add the link by using the `.. autoclass::`, `.. autofunction::`, and `.. automodule` by Sphinx's `autodoc`_ module.
112+
113+
Using this `autodoc`_ module, the generated documentations have the link to the code in Github like:
114+
115+
.. image:: /_static/img/source_link_1.png
116+
117+
When you click the link, you will jump to the source code in Github like:
118+
119+
.. image:: /_static/img/source_link_2.png
120+
121+
110122

111123
.. _`submit a pull request`:
112124

@@ -210,5 +222,6 @@ Current Major Sponsors:
210222
.. _`1Password`: https://github.com/1Password/for-open-source
211223
.. _`matplotrecorder`: https://github.com/AtsushiSakai/matplotrecorder
212224
.. _`PythonRoboticsGifs`: https://github.com/AtsushiSakai/PythonRoboticsGifs
225+
.. _`autodoc`: https://www.sphinx-doc.org/en/master/usage/extensions/autodoc.html
213226

214227

requirements/environment.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: python_robotics
22
channels:
33
- conda-forge
44
dependencies:
5-
- python=3.12
5+
- python=3.13
66
- pip
77
- scipy
88
- numpy

requirements/requirements.txt

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
numpy == 2.2.4
22
scipy == 1.15.2
33
matplotlib == 3.10.1
4-
cvxpy == 1.5.3
4+
cvxpy == 1.6.5
5+
ecos == 2.0.14
56
pytest == 8.3.5 # For unit test
67
pytest-xdist == 3.6.1 # For unit test
78
mypy == 1.15.0 # For unit test
8-
ruff == 0.11.0 # For unit test
9+
ruff == 0.11.7 # For unit test

ruff.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ ignore = ["E501", "E741", "E402"]
55
exclude = [
66
]
77

8-
# Assume Python 3.11
9-
target-version = "py312"
8+
# Assume Python 3.13
9+
target-version = "py313"
1010

1111
[per-file-ignores]
1212

tests/conftest.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@
1010

1111

1212
def run_this_test(file):
13-
pytest.main([os.path.abspath(file)])
13+
pytest.main(args=["-W", "error", "-Werror", "--pythonwarnings=error", os.path.abspath(file)])

0 commit comments

Comments
 (0)