PyGamLab 0.1.0__py3-none-any.whl
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.
- PyGamLab/Constants.py +500 -0
- PyGamLab/Convertos.py +1728 -0
- PyGamLab/Data_Analysis.py +3623 -0
- PyGamLab/Functions.py +4507 -0
- PyGamLab/__init__.py +45 -0
- pygamlab-0.1.0.dist-info/METADATA +122 -0
- pygamlab-0.1.0.dist-info/RECORD +9 -0
- pygamlab-0.1.0.dist-info/WHEEL +5 -0
- pygamlab-0.1.0.dist-info/top_level.txt +1 -0
PyGamLab/__init__.py
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
|
|
2
|
+
#" IN GOD WE TRUST, ALL OTHERS MUST BRING DATA"
|
|
3
|
+
# -W. Edwards Deming
|
|
4
|
+
#------------------------------------------------------------------------------
|
|
5
|
+
# Copyright 2023 The Gamlab Authors. All Rights Reserved.
|
|
6
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
# you may not use this file except in compliance with the License.
|
|
8
|
+
# You may obtain a copy of the License at
|
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
# See the License for the specific language governing permissions and
|
|
14
|
+
# limitations under the License.
|
|
15
|
+
#------------------------------------------------------------------------------
|
|
16
|
+
'''
|
|
17
|
+
The Scientific experimental simulation library
|
|
18
|
+
-------------------------------------------------------------------------------
|
|
19
|
+
Graphen & Advanced Material Laboratory
|
|
20
|
+
|
|
21
|
+
it aimes to provide new scientist to use data,simlation, prepared data
|
|
22
|
+
and Artificial intelligence models.
|
|
23
|
+
|
|
24
|
+
See http://gamlab.aut.ac.ir for complete documentation.
|
|
25
|
+
'''
|
|
26
|
+
__doc__='''
|
|
27
|
+
|
|
28
|
+
@author: Ali Pilehvar Meibody (Alipilehvar1999@gmail.com)
|
|
29
|
+
|
|
30
|
+
888 888
|
|
31
|
+
.d8888b .d88b. 88888b.d88b. 888 .d88b. 888
|
|
32
|
+
d88P" d88""88b 888 "888 "88b 888 d88""88b 88888PP
|
|
33
|
+
888 8888 888 888 888 888 888 888 888 888 888 888
|
|
34
|
+
Y88b. 88 Y88..88PP. 888 888 888 888...... Y88..88PP. 888 888
|
|
35
|
+
"Y8888P8 "Y88P8888 888 888 888 888888888 "Y88P8888 88888888
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
@Director of Gamlab: Professor M. Naderi (Mnaderi@aut.ac.ir)
|
|
39
|
+
|
|
40
|
+
@Graphene Advanced Material Laboratory: https://www.GamLab.Aut.ac.ir
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
'''
|
|
44
|
+
|
|
45
|
+
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: PyGamLab
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: A scientific Python library with constants, unit convertors, formulas, and data analysis tools.
|
|
5
|
+
Home-page: https://github.com/APMaii/pygamlab/tree/main
|
|
6
|
+
Author: Ali Pilehvar Meibody
|
|
7
|
+
Author-email: Ali Pilehvar Meibody <ai.2024.pilehvar@Gmail.com>
|
|
8
|
+
License-Expression: MIT
|
|
9
|
+
Project-URL: Source, https://github.com/APMaii/pygamlab/tree/main
|
|
10
|
+
Classifier: Programming Language :: Python :: 3
|
|
11
|
+
Classifier: Operating System :: OS Independent
|
|
12
|
+
Classifier: Intended Audience :: Science/Research
|
|
13
|
+
Classifier: Topic :: Scientific/Engineering
|
|
14
|
+
Requires-Python: >=3.7
|
|
15
|
+
Description-Content-Type: text/markdown
|
|
16
|
+
Requires-Dist: numpy
|
|
17
|
+
Requires-Dist: pandas
|
|
18
|
+
Requires-Dist: scipy
|
|
19
|
+
Requires-Dist: matplotlib
|
|
20
|
+
Requires-Dist: seaborn
|
|
21
|
+
Requires-Dist: scikit-learn
|
|
22
|
+
Dynamic: author
|
|
23
|
+
Dynamic: home-page
|
|
24
|
+
Dynamic: requires-python
|
|
25
|
+
|
|
26
|
+
# PyGamMLab
|
|
27
|
+
|
|
28
|
+
**PyGAMLab** is a scientific Python library developed for researchers, engineers, and students who need access to fundamental constants, conversion tools, engineering formulas, and data analysis utilities. The package is designed with simplicity, clarity, and usability in mind.
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
## 📌 Overview
|
|
33
|
+
|
|
34
|
+
**PyGAMLab** stands for *Python GAMLAb tools*, a collection of scientific tools and functions developed at the **GAMLab** under the supervision of **Prof. Nader** at **Amirkabir University of Technology (AUT)**.
|
|
35
|
+
|
|
36
|
+
- **Author:** Ali Pilehvar Meibody
|
|
37
|
+
- **Supervisor:** Prof. Nader
|
|
38
|
+
- **Affiliation:** GAMLab, Amirkabir University of Technology (AUT)
|
|
39
|
+
|
|
40
|
+
---
|
|
41
|
+
|
|
42
|
+
## 📦 Modules
|
|
43
|
+
|
|
44
|
+
PyGAMLab is composed of **four core modules**, each focused on a specific area of scientific computation:
|
|
45
|
+
|
|
46
|
+
### 🔹 `constants.py`
|
|
47
|
+
This module includes a comprehensive set of scientific constants used in physics, chemistry, and engineering.
|
|
48
|
+
|
|
49
|
+
Examples:
|
|
50
|
+
- Planck's constant
|
|
51
|
+
- Boltzmann constant
|
|
52
|
+
- Speed of light
|
|
53
|
+
- Universal gas constant
|
|
54
|
+
- And many more...
|
|
55
|
+
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
### 🔹 `convertors.py`
|
|
59
|
+
Contains unit conversion functions that follow the format:
|
|
60
|
+
`FirstUnit_To_SecondUnit()`
|
|
61
|
+
|
|
62
|
+
Examples:
|
|
63
|
+
- `Kelvin_To_Celsius(k)`
|
|
64
|
+
- `Pascal_To_Bar(p)`
|
|
65
|
+
- `Meter_To_Foot(m)`
|
|
66
|
+
- ...and many more standard conversions used in science and engineering.
|
|
67
|
+
|
|
68
|
+
---
|
|
69
|
+
|
|
70
|
+
### 🔹 `functions.py`
|
|
71
|
+
This module provides a wide collection of **scientific formulas and functional tools** commonly used in engineering applications.
|
|
72
|
+
|
|
73
|
+
Examples:
|
|
74
|
+
- Thermodynamics equations
|
|
75
|
+
- Mechanical stress and strain calculations
|
|
76
|
+
- Fluid dynamics formulas
|
|
77
|
+
- General utility functions
|
|
78
|
+
|
|
79
|
+
---
|
|
80
|
+
|
|
81
|
+
### 🔹 `data_analysis.py`
|
|
82
|
+
Provides tools for working with data, either from a **file path** or directly from a **DataFrame**.
|
|
83
|
+
|
|
84
|
+
Features include:
|
|
85
|
+
- Reading and preprocessing datasets
|
|
86
|
+
- Performing scientific calculations
|
|
87
|
+
- Creating visualizations (e.g., line plots, scatter plots, histograms)
|
|
88
|
+
|
|
89
|
+
---
|
|
90
|
+
|
|
91
|
+
## 🚀 Installation
|
|
92
|
+
|
|
93
|
+
To install PyGAMLab via pip (after uploading it to PyPI):
|
|
94
|
+
|
|
95
|
+
```bash
|
|
96
|
+
pip install pygamlab
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
---
|
|
101
|
+
|
|
102
|
+
## 📖 Usage Example
|
|
103
|
+
|
|
104
|
+
```python
|
|
105
|
+
from pygamlab import Kelvin_To_Celsius, universal_gas_constant
|
|
106
|
+
from pygamlab import calculate_stress
|
|
107
|
+
from pygamlab import plot_from_csv
|
|
108
|
+
|
|
109
|
+
# Convert temperature
|
|
110
|
+
print(Kelvin_To_Celsius(300))
|
|
111
|
+
|
|
112
|
+
# Use a constant
|
|
113
|
+
print(universal_gas_constant)
|
|
114
|
+
|
|
115
|
+
# Use an engineering function
|
|
116
|
+
stress = calculate_stress(force=500, area=0.01)
|
|
117
|
+
print(stress)
|
|
118
|
+
|
|
119
|
+
# Analyze a dataset
|
|
120
|
+
plot_from_csv("data/experiment.csv", column_x="Time", column_y="Temperature")
|
|
121
|
+
```
|
|
122
|
+
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
PyGamLab/Constants.py,sha256=_LFtAgTezfPSc9oS3nr9Dk81sQIqQOQIeGIVRNvosiY,17065
|
|
2
|
+
PyGamLab/Convertos.py,sha256=f2-hfi1jJOeWBrCWJBWiRGZfPy3uhROHKj_iIvlOmA4,31575
|
|
3
|
+
PyGamLab/Data_Analysis.py,sha256=nf3js_oAWJ80Ja-c4N0QskDo_y7B2o82W5U-0M_3F-I,109894
|
|
4
|
+
PyGamLab/Functions.py,sha256=fFZ2nCMtDHsEKqfDbLd8fJWPnFQzaS5V8CrJ-Y4Rde8,111881
|
|
5
|
+
PyGamLab/__init__.py,sha256=0qtyDfXr6_Zvr4K27cV_Gjn9o27o4t8j515uar5koG8,1863
|
|
6
|
+
pygamlab-0.1.0.dist-info/METADATA,sha256=hn7v-M5TEGdzTpmSHjuQ02KOSZRBN-Vus66fWERRsCk,3353
|
|
7
|
+
pygamlab-0.1.0.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
|
8
|
+
pygamlab-0.1.0.dist-info/top_level.txt,sha256=E5IBZwx9PoAR8NyXgNAT3iUIuGvYfJlfyOKQY1sNkXU,9
|
|
9
|
+
pygamlab-0.1.0.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
PyGamLab
|