|
39 | 39 | from Basilisk.simulation import extForceTorque |
40 | 40 | from Basilisk.simulation import spacecraftSystem |
41 | 41 | from Basilisk.architecture import messaging |
| 42 | +from Basilisk.utilities import deprecated |
42 | 43 |
|
43 | 44 | # uncomment this line is this test is to be skipped in the global unit test run, adjust message as needed |
44 | 45 | # @pytest.mark.skipif(conditionstring) |
@@ -68,8 +69,10 @@ def test_hingedRigidBodyMotorTorque(show_plots, useScPlus): |
68 | 69 | [testResults, testMessage] = hingedRigidBodyMotorTorque(show_plots, useScPlus) |
69 | 70 | assert testResults < 1, testMessage |
70 | 71 |
|
| 72 | + |
71 | 73 | def hingedRigidBodyGravity(show_plots): |
72 | 74 | __tracebackhide__ = True |
| 75 | + deprecated.filterwarnings("ignore", "SpacecraftSystem.SpacecraftSystem") |
73 | 76 |
|
74 | 77 | testFailCount = 0 # zero unit test result counter |
75 | 78 | testMessages = [] # create empty list to store test log messages |
@@ -300,6 +303,7 @@ def hingedRigidBodyNoGravity(show_plots): |
300 | 303 | # the mrp_steering_tracking() function will not be shown unless the |
301 | 304 | # --fulltrace command line option is specified. |
302 | 305 | __tracebackhide__ = True |
| 306 | + deprecated.filterwarnings("ignore", "SpacecraftSystem.SpacecraftSystem") |
303 | 307 |
|
304 | 308 | testFailCount = 0 # zero unit test result counter |
305 | 309 | testMessages = [] # create empty list to store test log messages |
@@ -531,6 +535,7 @@ def hingedRigidBodyNoGravityDamping(show_plots): |
531 | 535 | # the mrp_steering_tracking() function will not be shown unless the |
532 | 536 | # --fulltrace command line option is specified. |
533 | 537 | __tracebackhide__ = True |
| 538 | + deprecated.filterwarnings("ignore", "SpacecraftSystem.SpacecraftSystem") |
534 | 539 |
|
535 | 540 | testFailCount = 0 # zero unit test result counter |
536 | 541 | testMessages = [] # create empty list to store test log messages |
@@ -720,6 +725,7 @@ def hingedRigidBodyThetaSS(show_plots): |
720 | 725 | # the mrp_steering_tracking() function will not be shown unless the |
721 | 726 | # --fulltrace command line option is specified. |
722 | 727 | __tracebackhide__ = True |
| 728 | + deprecated.filterwarnings("ignore", "SpacecraftSystem.SpacecraftSystem") |
723 | 729 |
|
724 | 730 | testFailCount = 0 # zero unit test result counter |
725 | 731 | testMessages = [] # create empty list to store test log messages |
@@ -912,6 +918,7 @@ def hingedRigidBodyFrequencyAmp(show_plots): |
912 | 918 | # the mrp_steering_tracking() function will not be shown unless the |
913 | 919 | # --fulltrace command line option is specified. |
914 | 920 | __tracebackhide__ = True |
| 921 | + deprecated.filterwarnings("ignore", "SpacecraftSystem.SpacecraftSystem") |
915 | 922 |
|
916 | 923 | testFailCount = 0 # zero unit test result counter |
917 | 924 | testMessages = [] # create empty list to store test log messages |
@@ -1194,6 +1201,7 @@ def hingedRigidBodyMotorTorque(show_plots, useScPlus): |
1194 | 1201 | # the mrp_steering_tracking() function will not be shown unless the |
1195 | 1202 | # --fulltrace command line option is specified. |
1196 | 1203 | __tracebackhide__ = True |
| 1204 | + deprecated.filterwarnings("ignore", "SpacecraftSystem.SpacecraftSystem") |
1197 | 1205 |
|
1198 | 1206 | testFailCount = 0 # zero unit test result counter |
1199 | 1207 | testMessages = [] # create empty list to store test log messages |
@@ -1434,6 +1442,7 @@ def hingedRigidBodyLagrangVsBasilisk(show_plots): |
1434 | 1442 | # the mrp_steering_tracking() function will not be shown unless the |
1435 | 1443 | # --fulltrace command line option is specified. |
1436 | 1444 | __tracebackhide__ = True |
| 1445 | + deprecated.filterwarnings("ignore", "SpacecraftSystem.SpacecraftSystem") |
1437 | 1446 |
|
1438 | 1447 | testFailCount = 0 # zero unit test result counter |
1439 | 1448 | testMessages = [] # create empty list to store test log messages |
@@ -1877,10 +1886,10 @@ class boxAndWingParameters: |
1877 | 1886 | d = 0 |
1878 | 1887 |
|
1879 | 1888 | if __name__ == "__main__": |
1880 | | - # test_hingedRigidBodyGravity(True) |
1881 | | - # test_hingedRigidBodyNoGravity(True) |
1882 | | - # test_hingedRigidBodyNoGravityDamping(True) |
1883 | | - # test_hingedRigidBodyThetaSS(True) |
1884 | | - # test_hingedRigidBodyFrequencyAmp(True) |
1885 | | - # test_hingedRigidBodyMotorTorque(True, True) |
1886 | | - hingedRigidBodyLagrangVsBasilisk(True) |
| 1889 | + hingedRigidBodyGravity(False) |
| 1890 | + # hingedRigidBodyNoGravity(True) |
| 1891 | + # hingedRigidBodyNoGravityDamping(True) |
| 1892 | + # hingedRigidBodyThetaSS(True) |
| 1893 | + # hingedRigidBodyFrequencyAmp(True) |
| 1894 | + # hingedRigidBodyMotorTorque(True, True) |
| 1895 | + # hingedRigidBodyLagrangVsBasilisk(True) |
0 commit comments