forked from ngloria1/PropSim
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added warning for start-up error and made console invisible.
- Loading branch information
Showing
13 changed files
with
135 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
; Name diameter(mm) Length(mm) delay propellant_weight(kg) mass(kg) | ||
O10400-I 143 2438 P 6.07 18.01 SSI | ||
0.010 10.129 | ||
0.370 1675.048 | ||
0.730 1649.453 | ||
1.090 1622.081 | ||
1.450 1590.739 | ||
1.810 1558.013 | ||
2.170 1524.492 | ||
2.530 1493.891 | ||
2.890 1462.492 | ||
3.250 1431.987 | ||
3.610 1400.609 | ||
3.970 1371.720 | ||
4.330 1343.713 | ||
4.690 1316.055 | ||
5.050 1288.726 | ||
5.410 1262.746 | ||
5.770 1235.414 | ||
6.130 1208.810 | ||
6.490 1182.573 | ||
6.850 1156.720 | ||
7.210 414.400 | ||
7.570 316.530 | ||
7.930 241.952 | ||
8.290 182.485 | ||
8.650 134.944 | ||
9.010 97.016 | ||
9.370 66.594 | ||
9.730 46.179 | ||
10.090 39.194 | ||
10.445 0.000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
; Name diameter(mm) Length(mm) delay propellant_weight(kg) mass(kg) | ||
O18000-I 143 2438 P 9.81 21.75 SSI | ||
0.005 393.864 | ||
0.425 1762.134 | ||
0.845 1741.508 | ||
1.265 1720.709 | ||
1.680 1698.403 | ||
2.100 1675.962 | ||
2.520 1654.852 | ||
2.940 1633.081 | ||
3.360 1611.461 | ||
3.780 1590.006 | ||
4.200 1568.623 | ||
4.615 1547.330 | ||
5.035 1527.943 | ||
5.455 1508.611 | ||
5.875 1488.873 | ||
6.295 1469.723 | ||
6.715 1449.460 | ||
7.135 1430.134 | ||
7.555 1411.474 | ||
7.970 1393.661 | ||
8.390 1375.512 | ||
8.810 1357.409 | ||
9.230 1338.986 | ||
9.650 1322.025 | ||
10.070 1304.232 | ||
10.490 1285.500 | ||
10.905 1267.145 | ||
11.325 1249.772 | ||
11.745 1231.826 | ||
12.162 0.000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
; Name diameter(mm) Length(mm) delay propellant_weight(kg) mass(kg) | ||
O18000-I 143 2438 P 9.89 21.83 SSI | ||
0.005 216.251 | ||
0.360 2091.647 | ||
0.710 2067.483 | ||
1.065 2042.841 | ||
1.420 2016.018 | ||
1.770 1989.652 | ||
2.125 1964.546 | ||
2.480 1938.635 | ||
2.830 1913.214 | ||
3.185 1887.638 | ||
3.540 1862.152 | ||
3.890 1836.824 | ||
4.245 1813.667 | ||
4.600 1790.645 | ||
4.950 1767.411 | ||
5.305 1744.595 | ||
5.655 1720.835 | ||
6.010 1697.667 | ||
6.365 1675.390 | ||
6.715 1654.212 | ||
7.070 1632.593 | ||
7.425 1610.976 | ||
7.775 1589.276 | ||
8.130 1568.964 | ||
8.485 1547.847 | ||
8.835 1525.778 | ||
9.190 1503.802 | ||
9.545 1483.087 | ||
9.895 1461.786 | ||
10.245 0.000 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import tkinter as tk | ||
from tkinter import messagebox as msgbox # for writing errors during set-up | ||
|
||
if __name__ == '__main__': | ||
try: | ||
from PythonLib.MainWindow import MainWindow | ||
mainwindow = MainWindow() # construct the MainWindow | ||
except Exception as err: | ||
# Create a tk root to base the pop-up off of | ||
root = tk.Tk() | ||
root.overrideredirect(1) | ||
root.withdraw() | ||
err_msg = "Encountered error during start-up:\n{0} \n\nPlease contact PropSim help: \nMax Newport, newpomax@alumni.stanford.edu".format(err) | ||
response = msgbox.showerror(title="Start-up Error", message = err_msg) # if encountered an error during start-up, show in pop-up | ||
root.destroy() | ||
|
||
mainwindow.run() # run the MainWindow |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
python <= 3.8 # This depends on your MATLAB type - see: https://www.mathworks.com/content/dam/mathworks/mathworks-dot-com/support/sysreq/files/python-compatibility.pdf | ||
mplcursors==0.4 # for plot marking | ||
numpy==1.20.1 | ||
matplotlib==3.3.4 | ||
matlab==0.1 |
Binary file not shown.