Commit 157042d
Enh/motor thrustcurve api (#870)
* Add the function to create a motor from the API of thrustcurve and the test
* Improve load_from_thrustcurve_api and test_load_from_thrustcurve_api with clean imports
* Clean up load_from_thrustcurve_api and improve test_load_from_thrustcurve_api with exception testing
* Use warnings.warn() in load_from_thrustcurve_api when motor is found (as requested)
* Added documentation for the load_from_thrustcurve_api method into the genericmotors.rst file
* Changes to conform to lint
* Fixed Pylint errors
* Update docs/user/motors/genericmotor.rst
Co-authored-by: Gui-FernandesBR <63590233+Gui-FernandesBR@users.noreply.github.com>
* Update docs/user/motors/genericmotor.rst
Co-authored-by: Gui-FernandesBR <63590233+Gui-FernandesBR@users.noreply.github.com>
* Update docs/user/motors/genericmotor.rst
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Set private the method call_thrustcurve_api
* Update docs/user/motors/genericmotor.rst
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Update tests/unit/motors/test_genericmotor.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Update rocketpy/motors/motor.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Update docs/user/motors/genericmotor.rst
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Update docs/user/motors/genericmotor.rst
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Update docs/user/motors/genericmotor.rst
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Modify the changelog
* Bug fix
* Refactor GenericMotor class: comment out unused designation and manufacturer variables
* Add the function to create a motor from the API of thrustcurve and the test
* Improve load_from_thrustcurve_api and test_load_from_thrustcurve_api with clean imports
* Clean up load_from_thrustcurve_api and improve test_load_from_thrustcurve_api with exception testing
* Use warnings.warn() in load_from_thrustcurve_api when motor is found (as requested)
* Added documentation for the load_from_thrustcurve_api method into the genericmotors.rst file
* Changes to conform to lint
* Fixed Pylint errors
* Update docs/user/motors/genericmotor.rst
Co-authored-by: Gui-FernandesBR <63590233+Gui-FernandesBR@users.noreply.github.com>
* Update docs/user/motors/genericmotor.rst
Co-authored-by: Gui-FernandesBR <63590233+Gui-FernandesBR@users.noreply.github.com>
* Update docs/user/motors/genericmotor.rst
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Set private the method call_thrustcurve_api
* Update docs/user/motors/genericmotor.rst
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Update tests/unit/motors/test_genericmotor.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Update rocketpy/motors/motor.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Update docs/user/motors/genericmotor.rst
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Update docs/user/motors/genericmotor.rst
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Update docs/user/motors/genericmotor.rst
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Modify the changelog
* Bug fix
---------
Co-authored-by: monta <montadharettaieb@gmail.com>1 parent 9da4565 commit 157042d
File tree
4 files changed
+269
-1
lines changed- docs/user/motors
- rocketpy/motors
- tests/unit/motors
4 files changed
+269
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
| 3 | + | |
2 | 4 | | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
6 | | - | |
| 8 | + | |
7 | 9 | | |
8 | 10 | | |
| 11 | + | |
9 | 12 | | |
10 | 13 | | |
11 | 14 | | |
| |||
1914 | 1917 | | |
1915 | 1918 | | |
1916 | 1919 | | |
| 1920 | + | |
| 1921 | + | |
| 1922 | + | |
| 1923 | + | |
| 1924 | + | |
| 1925 | + | |
| 1926 | + | |
| 1927 | + | |
| 1928 | + | |
| 1929 | + | |
| 1930 | + | |
| 1931 | + | |
| 1932 | + | |
| 1933 | + | |
| 1934 | + | |
| 1935 | + | |
| 1936 | + | |
| 1937 | + | |
| 1938 | + | |
| 1939 | + | |
| 1940 | + | |
| 1941 | + | |
| 1942 | + | |
| 1943 | + | |
| 1944 | + | |
| 1945 | + | |
| 1946 | + | |
| 1947 | + | |
| 1948 | + | |
| 1949 | + | |
| 1950 | + | |
| 1951 | + | |
| 1952 | + | |
| 1953 | + | |
| 1954 | + | |
| 1955 | + | |
| 1956 | + | |
| 1957 | + | |
| 1958 | + | |
| 1959 | + | |
| 1960 | + | |
| 1961 | + | |
| 1962 | + | |
| 1963 | + | |
| 1964 | + | |
| 1965 | + | |
| 1966 | + | |
| 1967 | + | |
| 1968 | + | |
| 1969 | + | |
| 1970 | + | |
| 1971 | + | |
| 1972 | + | |
| 1973 | + | |
| 1974 | + | |
| 1975 | + | |
| 1976 | + | |
| 1977 | + | |
| 1978 | + | |
| 1979 | + | |
| 1980 | + | |
| 1981 | + | |
| 1982 | + | |
| 1983 | + | |
| 1984 | + | |
| 1985 | + | |
| 1986 | + | |
| 1987 | + | |
| 1988 | + | |
| 1989 | + | |
| 1990 | + | |
| 1991 | + | |
| 1992 | + | |
| 1993 | + | |
| 1994 | + | |
| 1995 | + | |
| 1996 | + | |
| 1997 | + | |
| 1998 | + | |
| 1999 | + | |
| 2000 | + | |
| 2001 | + | |
| 2002 | + | |
| 2003 | + | |
| 2004 | + | |
| 2005 | + | |
| 2006 | + | |
| 2007 | + | |
| 2008 | + | |
| 2009 | + | |
| 2010 | + | |
| 2011 | + | |
| 2012 | + | |
| 2013 | + | |
| 2014 | + | |
| 2015 | + | |
| 2016 | + | |
| 2017 | + | |
| 2018 | + | |
| 2019 | + | |
| 2020 | + | |
| 2021 | + | |
| 2022 | + | |
| 2023 | + | |
| 2024 | + | |
| 2025 | + | |
| 2026 | + | |
| 2027 | + | |
| 2028 | + | |
| 2029 | + | |
| 2030 | + | |
| 2031 | + | |
| 2032 | + | |
| 2033 | + | |
| 2034 | + | |
1917 | 2035 | | |
1918 | 2036 | | |
1919 | 2037 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 | | |
2 | 4 | | |
| 5 | + | |
3 | 6 | | |
4 | 7 | | |
5 | 8 | | |
| |||
211 | 214 | | |
212 | 215 | | |
213 | 216 | | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
0 commit comments