UOFC-SOAR 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- uofc_soar-0.1.0/LICENSE +7 -0
- uofc_soar-0.1.0/PKG-INFO +55 -0
- uofc_soar-0.1.0/README.md +15 -0
- uofc_soar-0.1.0/pyproject.toml +3 -0
- uofc_soar-0.1.0/setup.cfg +56 -0
- uofc_soar-0.1.0/src/UOFC_SOAR.egg-info/PKG-INFO +55 -0
- uofc_soar-0.1.0/src/UOFC_SOAR.egg-info/SOURCES.txt +12 -0
- uofc_soar-0.1.0/src/UOFC_SOAR.egg-info/dependency_links.txt +1 -0
- uofc_soar-0.1.0/src/UOFC_SOAR.egg-info/requires.txt +26 -0
- uofc_soar-0.1.0/src/UOFC_SOAR.egg-info/top_level.txt +1 -0
- uofc_soar-0.1.0/src/soar/__init__.py +11 -0
- uofc_soar-0.1.0/src/soar/body_forces.py +44 -0
- uofc_soar-0.1.0/src/soar/module2.py +0 -0
uofc_soar-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
Copyright <2024> <Aneesh Bungay>
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
4
|
+
|
|
5
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
6
|
+
|
|
7
|
+
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
uofc_soar-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: UOFC-SOAR
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: A simulation package for aerospace research
|
|
5
|
+
Home-page: https://github.com/aneeshox/SOAR
|
|
6
|
+
Author: Aneeshox
|
|
7
|
+
Author-email: aneesh@aneesh.ca
|
|
8
|
+
License: MIT
|
|
9
|
+
Classifier: Programming Language :: Python :: 3
|
|
10
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
11
|
+
Classifier: Operating System :: OS Independent
|
|
12
|
+
Requires-Python: >=3.8
|
|
13
|
+
Description-Content-Type: text/markdown
|
|
14
|
+
License-File: LICENSE
|
|
15
|
+
Requires-Dist: numpy>=1.16.3
|
|
16
|
+
Requires-Dist: matplotlib==3.2.2
|
|
17
|
+
Requires-Dist: scipy>=1.3.0
|
|
18
|
+
Requires-Dist: pandas>=1.0.3
|
|
19
|
+
Requires-Dist: pyserial>=3.4
|
|
20
|
+
Requires-Dist: tqdm>=4.0
|
|
21
|
+
Requires-Dist: cython
|
|
22
|
+
Requires-Dist: pyswarms
|
|
23
|
+
Requires-Dist: pyyaml
|
|
24
|
+
Requires-Dist: CoolProp
|
|
25
|
+
Requires-Dist: requests
|
|
26
|
+
Requires-Dist: PySimpleGUI
|
|
27
|
+
Requires-Dist: MAPLEAF
|
|
28
|
+
Provides-Extra: dev
|
|
29
|
+
Requires-Dist: snakeviz>=2.1.0; extra == "dev"
|
|
30
|
+
Requires-Dist: coverage>=5.0; extra == "dev"
|
|
31
|
+
Requires-Dist: pylint>=2.5; extra == "dev"
|
|
32
|
+
Requires-Dist: pdoc3; extra == "dev"
|
|
33
|
+
Requires-Dist: pyinstrument; extra == "dev"
|
|
34
|
+
Requires-Dist: asv; extra == "dev"
|
|
35
|
+
Requires-Dist: ray; extra == "dev"
|
|
36
|
+
Requires-Dist: PyQt5; extra == "dev"
|
|
37
|
+
Requires-Dist: mayavi==4.7.4; extra == "dev"
|
|
38
|
+
Requires-Dist: traits; extra == "dev"
|
|
39
|
+
Requires-Dist: traitsui; extra == "dev"
|
|
40
|
+
|
|
41
|
+
# SOAR
|
|
42
|
+
|
|
43
|
+
**SOAR** is a testing package designed for aerospace research simulations. This is currently a test version to verify the setup, dependencies, and installation process.
|
|
44
|
+
|
|
45
|
+
## Project Description
|
|
46
|
+
|
|
47
|
+
This package includes core functionalities for scientific computations and visualization used in aerospace research, leveraging libraries like `MAPLEAF`, `CoolProp`, `pyswarms`, and more. The `src` layout is used to organize code and dependencies effectively.
|
|
48
|
+
|
|
49
|
+
## Installation
|
|
50
|
+
|
|
51
|
+
To install the SOAR package and its dependencies, run the following command:
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
pip install .
|
|
55
|
+
```
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# SOAR
|
|
2
|
+
|
|
3
|
+
**SOAR** is a testing package designed for aerospace research simulations. This is currently a test version to verify the setup, dependencies, and installation process.
|
|
4
|
+
|
|
5
|
+
## Project Description
|
|
6
|
+
|
|
7
|
+
This package includes core functionalities for scientific computations and visualization used in aerospace research, leveraging libraries like `MAPLEAF`, `CoolProp`, `pyswarms`, and more. The `src` layout is used to organize code and dependencies effectively.
|
|
8
|
+
|
|
9
|
+
## Installation
|
|
10
|
+
|
|
11
|
+
To install the SOAR package and its dependencies, run the following command:
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
pip install .
|
|
15
|
+
```
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
[metadata]
|
|
2
|
+
name = UOFC-SOAR
|
|
3
|
+
version = 0.1.0
|
|
4
|
+
author = Aneeshox
|
|
5
|
+
author_email = aneesh@aneesh.ca
|
|
6
|
+
description = A simulation package for aerospace research
|
|
7
|
+
long_description = file: README.md
|
|
8
|
+
long_description_content_type = text/markdown
|
|
9
|
+
url = https://github.com/aneeshox/SOAR
|
|
10
|
+
license = MIT
|
|
11
|
+
classifiers =
|
|
12
|
+
Programming Language :: Python :: 3
|
|
13
|
+
License :: OSI Approved :: MIT License
|
|
14
|
+
Operating System :: OS Independent
|
|
15
|
+
|
|
16
|
+
[options]
|
|
17
|
+
package_dir =
|
|
18
|
+
= src
|
|
19
|
+
packages = find:
|
|
20
|
+
python_requires = >=3.8
|
|
21
|
+
install_requires =
|
|
22
|
+
numpy>=1.16.3
|
|
23
|
+
matplotlib==3.2.2
|
|
24
|
+
scipy>=1.3.0
|
|
25
|
+
pandas>=1.0.3
|
|
26
|
+
pyserial>=3.4
|
|
27
|
+
tqdm>=4.0
|
|
28
|
+
cython
|
|
29
|
+
pyswarms
|
|
30
|
+
pyyaml
|
|
31
|
+
CoolProp
|
|
32
|
+
requests
|
|
33
|
+
PySimpleGUI
|
|
34
|
+
MAPLEAF
|
|
35
|
+
|
|
36
|
+
[options.extras_require]
|
|
37
|
+
dev =
|
|
38
|
+
snakeviz>=2.1.0
|
|
39
|
+
coverage>=5.0
|
|
40
|
+
pylint>=2.5
|
|
41
|
+
pdoc3
|
|
42
|
+
pyinstrument
|
|
43
|
+
asv
|
|
44
|
+
ray
|
|
45
|
+
PyQt5
|
|
46
|
+
mayavi==4.7.4
|
|
47
|
+
traits
|
|
48
|
+
traitsui
|
|
49
|
+
|
|
50
|
+
[options.packages.find]
|
|
51
|
+
where = src
|
|
52
|
+
|
|
53
|
+
[egg_info]
|
|
54
|
+
tag_build =
|
|
55
|
+
tag_date = 0
|
|
56
|
+
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: UOFC-SOAR
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: A simulation package for aerospace research
|
|
5
|
+
Home-page: https://github.com/aneeshox/SOAR
|
|
6
|
+
Author: Aneeshox
|
|
7
|
+
Author-email: aneesh@aneesh.ca
|
|
8
|
+
License: MIT
|
|
9
|
+
Classifier: Programming Language :: Python :: 3
|
|
10
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
11
|
+
Classifier: Operating System :: OS Independent
|
|
12
|
+
Requires-Python: >=3.8
|
|
13
|
+
Description-Content-Type: text/markdown
|
|
14
|
+
License-File: LICENSE
|
|
15
|
+
Requires-Dist: numpy>=1.16.3
|
|
16
|
+
Requires-Dist: matplotlib==3.2.2
|
|
17
|
+
Requires-Dist: scipy>=1.3.0
|
|
18
|
+
Requires-Dist: pandas>=1.0.3
|
|
19
|
+
Requires-Dist: pyserial>=3.4
|
|
20
|
+
Requires-Dist: tqdm>=4.0
|
|
21
|
+
Requires-Dist: cython
|
|
22
|
+
Requires-Dist: pyswarms
|
|
23
|
+
Requires-Dist: pyyaml
|
|
24
|
+
Requires-Dist: CoolProp
|
|
25
|
+
Requires-Dist: requests
|
|
26
|
+
Requires-Dist: PySimpleGUI
|
|
27
|
+
Requires-Dist: MAPLEAF
|
|
28
|
+
Provides-Extra: dev
|
|
29
|
+
Requires-Dist: snakeviz>=2.1.0; extra == "dev"
|
|
30
|
+
Requires-Dist: coverage>=5.0; extra == "dev"
|
|
31
|
+
Requires-Dist: pylint>=2.5; extra == "dev"
|
|
32
|
+
Requires-Dist: pdoc3; extra == "dev"
|
|
33
|
+
Requires-Dist: pyinstrument; extra == "dev"
|
|
34
|
+
Requires-Dist: asv; extra == "dev"
|
|
35
|
+
Requires-Dist: ray; extra == "dev"
|
|
36
|
+
Requires-Dist: PyQt5; extra == "dev"
|
|
37
|
+
Requires-Dist: mayavi==4.7.4; extra == "dev"
|
|
38
|
+
Requires-Dist: traits; extra == "dev"
|
|
39
|
+
Requires-Dist: traitsui; extra == "dev"
|
|
40
|
+
|
|
41
|
+
# SOAR
|
|
42
|
+
|
|
43
|
+
**SOAR** is a testing package designed for aerospace research simulations. This is currently a test version to verify the setup, dependencies, and installation process.
|
|
44
|
+
|
|
45
|
+
## Project Description
|
|
46
|
+
|
|
47
|
+
This package includes core functionalities for scientific computations and visualization used in aerospace research, leveraging libraries like `MAPLEAF`, `CoolProp`, `pyswarms`, and more. The `src` layout is used to organize code and dependencies effectively.
|
|
48
|
+
|
|
49
|
+
## Installation
|
|
50
|
+
|
|
51
|
+
To install the SOAR package and its dependencies, run the following command:
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
pip install .
|
|
55
|
+
```
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
LICENSE
|
|
2
|
+
README.md
|
|
3
|
+
pyproject.toml
|
|
4
|
+
setup.cfg
|
|
5
|
+
src/UOFC_SOAR.egg-info/PKG-INFO
|
|
6
|
+
src/UOFC_SOAR.egg-info/SOURCES.txt
|
|
7
|
+
src/UOFC_SOAR.egg-info/dependency_links.txt
|
|
8
|
+
src/UOFC_SOAR.egg-info/requires.txt
|
|
9
|
+
src/UOFC_SOAR.egg-info/top_level.txt
|
|
10
|
+
src/soar/__init__.py
|
|
11
|
+
src/soar/body_forces.py
|
|
12
|
+
src/soar/module2.py
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
numpy>=1.16.3
|
|
2
|
+
matplotlib==3.2.2
|
|
3
|
+
scipy>=1.3.0
|
|
4
|
+
pandas>=1.0.3
|
|
5
|
+
pyserial>=3.4
|
|
6
|
+
tqdm>=4.0
|
|
7
|
+
cython
|
|
8
|
+
pyswarms
|
|
9
|
+
pyyaml
|
|
10
|
+
CoolProp
|
|
11
|
+
requests
|
|
12
|
+
PySimpleGUI
|
|
13
|
+
MAPLEAF
|
|
14
|
+
|
|
15
|
+
[dev]
|
|
16
|
+
snakeviz>=2.1.0
|
|
17
|
+
coverage>=5.0
|
|
18
|
+
pylint>=2.5
|
|
19
|
+
pdoc3
|
|
20
|
+
pyinstrument
|
|
21
|
+
asv
|
|
22
|
+
ray
|
|
23
|
+
PyQt5
|
|
24
|
+
mayavi==4.7.4
|
|
25
|
+
traits
|
|
26
|
+
traitsui
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
soar
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# __init__.py in soar
|
|
2
|
+
|
|
3
|
+
# Optional metadata
|
|
4
|
+
__version__ = "0.1.0"
|
|
5
|
+
__author__ = "Aneeshox"
|
|
6
|
+
|
|
7
|
+
# Import key classes/functions for easier access
|
|
8
|
+
from .body_forces import ClassOrFunction1
|
|
9
|
+
|
|
10
|
+
# Define __all__ to control what is accessible when using `from soar import *`
|
|
11
|
+
__all__ = ["ClassOrFunction1"]
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import pandas as pd
|
|
2
|
+
|
|
3
|
+
# the path of the orignal file
|
|
4
|
+
original_flight_data = r'C:\Users\taiya\anaconda3\envs\SOAR\Lib\site-packages\MAPLEAF\Examples\Simulations\zack1_Run28\FirstStage_derivativeEvaluationLog.csv'
|
|
5
|
+
|
|
6
|
+
# set the same folder in which it was ran in NOTE ensure paths are correct
|
|
7
|
+
final_destination = r'C:\Users\taiya\anaconda3\envs\SOAR\Lib\site-packages\MAPLEAF\Examples\Simulations\zack1_Run28\filtered_FirstStage_derivativeEvaluationLog.csv'
|
|
8
|
+
second_destination = r'C:\Users\taiya\anaconda3\envs\SOAR\Lib\site-packages\MAPLEAF\Examples\Simulations\zack1_Run28\maximasofdarocket.csv'
|
|
9
|
+
|
|
10
|
+
# read the dataset (ds)
|
|
11
|
+
ds = pd.read_csv(original_flight_data)
|
|
12
|
+
|
|
13
|
+
# Filter columns containing "(N)" or "(Nm)"
|
|
14
|
+
filtered_columns = [col for col in ds.columns if "(N)" in col or "(Nm)" in col]
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# Create a new DataFrame with only the filtered columns
|
|
18
|
+
filtered_ds = ds[filtered_columns]
|
|
19
|
+
|
|
20
|
+
#combine abs of maxes and mins and find the max between both and add it to the list
|
|
21
|
+
maxes = abs(filtered_ds.max()).combine(abs(filtered_ds.min()),max)
|
|
22
|
+
|
|
23
|
+
totalforce = []
|
|
24
|
+
|
|
25
|
+
for i in range(0,len(maxes),3):
|
|
26
|
+
tv = ((maxes[i]**2)+(maxes[i+1]**2)+(maxes[i+2]**2))**(1/2)
|
|
27
|
+
totalforce.append("")
|
|
28
|
+
totalforce.append("")
|
|
29
|
+
totalforce.append(tv)
|
|
30
|
+
|
|
31
|
+
#print(totalforce)
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
#create a dataset of maxes list
|
|
35
|
+
maxima = pd.DataFrame({"part X,Y,Z" : filtered_columns, "Forces & Moments" : maxes, "Magnitude Vectors of Forces and Moments" : totalforce})
|
|
36
|
+
|
|
37
|
+
# save the maximas to a csv file in second destiantion
|
|
38
|
+
maxima.to_csv(second_destination,index=False)
|
|
39
|
+
|
|
40
|
+
# save the filtered Dataset to the same run folder
|
|
41
|
+
filtered_ds.to_csv(final_destination, index=False) #since i want time as my index i put index to false
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
print(f"Filtered data saved to {final_destination}")
|
|
File without changes
|