PyGamLab 0.1.1__tar.gz → 0.1.2__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: PyGamLab
3
- Version: 0.1.1
3
+ Version: 0.1.2
4
4
  Summary: A scientific Python library with constants, unit convertors, formulas, and data analysis tools.
5
5
  Home-page: https://github.com/APMaii/pygamlab/tree/main
6
6
  Author: Ali Pilehvar Meibody
@@ -31,10 +31,10 @@ Dynamic: requires-python
31
31
 
32
32
  ## 📌 Overview
33
33
 
34
- **PyGAMLab** stands for *Python GAMLAb tools*, a collection of scientific tools and functions developed at the **GAMLab** by **Ali Pilehvar Meibody** under the supervision of **Prof. Malek Naderi** at **Gamlab (Graphene and Advanced Material Laboratory)** under supervision of **Amirkabir University of Technology (AUT)**.
34
+ **PyGAMLab** stands for *Python GAMLAb tools*, a collection of scientific tools and functions developed at the **GAMLab (Graphene and Advanced Material Laboratory)** by **Ali Pilehvar Meibody** under the supervision of **Prof. Malek Naderi** at **Amirkabir University of Technology (AUT)**.
35
35
 
36
36
  - **Author:** Ali Pilehvar Meibody
37
- - **Supervisor:** Prof. Naderi
37
+ - **Supervisor:** Prof. Malek Naderi
38
38
  - **Affiliation:** GAMLab, Amirkabir University of Technology (AUT)
39
39
 
40
40
  ---
@@ -115,7 +115,7 @@ pip install numpy pandas scipy matplotlib seaborn scikit-learn
115
115
 
116
116
  ## 🚀 Installation
117
117
 
118
- To install PyGAMLab via pip (after uploading it to PyPI):
118
+ To install PyGAMLab via pip:
119
119
 
120
120
  ```bash
121
121
  pip install pygamlab
@@ -134,49 +134,64 @@ git clone https://github.com/APMaii/pygamlab.git
134
134
  ```python
135
135
  import PyGamLab
136
136
 
137
- #--------------Constants-----------------------
138
137
 
139
- print(PyGamLab.Constants.melting_point_of_Cu)
140
- print(PyGamLab.Constants.melting_point_of_Al)
141
- print(PyGamLab.Constants.Fe_Tm_Alpha)
142
- print(PyGamLab.Constants.Fe_Tm_Gama)
138
+ import PyGamLab.Constants as gamcn
139
+ import PyGamLab.Convertos as gamcv
140
+ import PyGamLab.Functions as gamfunc
141
+ import PyGamLab.Data_Analysis as gamdat
142
+
143
143
 
144
- print(PyGamLab.Constants.Boltzmann_Constant)
145
- print(PyGamLab.Constants.Faraday_Constant)
146
144
 
147
- #----------------Convertors---------------------
145
+ #--------------Constants-----------------------
146
+
147
+ print(gamcn.melting_point_of_Cu)
148
+ print(gamcn.melting_point_of_Al)
149
+ print(gamcn.Fe_Tm_Alpha)
150
+ print(gamcn.Fe_Tm_Gama)
148
151
 
149
- print(PyGamLab.Convertos.Kelvin_to_Celcius(300))
150
- print(PyGamLab.Convertos.Coulomb_To_Electron_volt())
151
- print(PyGamLab.Convertos.Angstrom_To_Milimeter())
152
- print(PyGamLab.Convertos.Bar_To_Pascal())
152
+ print(gamcn.Boltzmann_Constant)
153
+ print(gamcn.Faraday_Constant)
153
154
 
154
- #------------Functions-----------------------
155
155
 
156
- PyGamLab.Functions.Gibs_free_energy(H0,T,S0)
156
+ #----------Converters------------------------
157
157
 
158
+ print(gamcv.Kelvin_to_Celcius(300)) # Convert 300 K to °C
159
+ print(gamcv.Coulomb_To_Electron_volt(1)) # Convert 1 Coulomb to eV
160
+ print(gamcv.Angstrom_To_Milimeter(1)) # Convert 1 Å to mm
161
+ print(gamcv.Bar_To_Pascal(1)) # Convert 1 bar to Pascal
158
162
 
159
- PyGamLab.Functions.Bragg_Law(h, k, l, a, y)
163
+ #-----------Functions------------------------
160
164
 
165
+ # Gibb's Free Energy: G = H0 - T*S0
166
+ H0 = 100 # Enthalpy in kJ/mol
167
+ T = 298 # Temperature in Kelvin
168
+ S0 = 0.2 # Entropy in kJ/mol·K
169
+ print(gamfunc.Gibs_free_energy(H0, T, S0))
161
170
 
162
- PyGamLab.Functions.Electrical_Resistance(v,i)
163
171
 
172
+ # Electrical Resistance: R = V / I
173
+ voltage = 10 # in Volts
174
+ current = 2 # in Amperes
175
+ print(gamfunc.Electrical_Resistance(voltage, current))
164
176
 
165
- PyGamLab.Functions.Hall_Petch(d_grain,sigma0,k)
177
+ # Hall-Petch Relationship: σ = σ0 + k / √d
178
+ d_grain = 0.01 # Grain diameter in mm
179
+ sigma0 = 150 # Friction stress in MPa
180
+ k = 0.5 # Strengthening coefficient in MPa·mm^0.5
181
+ print(gamfunc.Hall_Petch(d_grain, sigma0, k))
166
182
 
167
183
  #-----------Data_Analysis--------------------
168
184
  import pandas as pd
169
185
 
170
186
  df= pd.read_csv('/users/apm/....../data.csv')
171
- PyGamLab.Data_Analysis.Stress_Strain1(df, 'PLOT')
172
- my_uts=PyGamLab.Data_Analysis.Stress_Strain1(df, 'UTS')
187
+ gamdat.Stress_Strain1(df, 'PLOT')
188
+ my_uts=gamdat.Stress_Strain1(df, 'UTS')
173
189
 
174
190
 
175
191
  data=pd.read_csv('/users/apm/....../data.csv')
176
- my_max=PyGamLab.Data_Analysis.Xrd_Analysis(data,'max intensity')
177
- PyGamLab.Data_Analysis.Xrd_Analysis(data,'scatter plot')
178
- PyGamLab.Data_Analysis.Xrd_Analysis(data,'line graph')
179
-
192
+ my_max=gamdat.Xrd_Analysis(data,'max intensity')
193
+ gamdat.Xrd_Analysis(data,'scatter plot')
194
+ gamdat.Xrd_Analysis(data,'line graph')
180
195
  ```
181
196
 
182
197
 
@@ -195,15 +210,6 @@ pygamlab/
195
210
  ```
196
211
 
197
212
 
198
- ---
199
-
200
-
201
-
202
-
203
-
204
-
205
-
206
-
207
213
  ---
208
214
  ## 🤝 Contributing
209
215
 
@@ -243,7 +249,7 @@ This project is part of the scientific research activities at **GAMLab (Generali
243
249
 
244
250
  Special thanks to:
245
251
 
246
- - **Prof. Nader** – For his guidance, mentorship, and continuous support.
252
+ - **Prof. Malek Naderi** – For his guidance, mentorship, and continuous support.
247
253
  - **Ali Pilehvar Meibody** – Main developer and author of PyGamLab.
248
254
  - **GAMLab Research Group** – For providing a collaborative and innovative environment.
249
255
 
@@ -44,7 +44,7 @@ Y88b. 88 Y88..88PP. 888 888 888 888...... Y88..88PP. 888 888
44
44
 
45
45
 
46
46
 
47
- __version__ = "0.1.1"
47
+ __version__ = "0.1.2"
48
48
 
49
49
 
50
50
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: PyGamLab
3
- Version: 0.1.1
3
+ Version: 0.1.2
4
4
  Summary: A scientific Python library with constants, unit convertors, formulas, and data analysis tools.
5
5
  Home-page: https://github.com/APMaii/pygamlab/tree/main
6
6
  Author: Ali Pilehvar Meibody
@@ -31,10 +31,10 @@ Dynamic: requires-python
31
31
 
32
32
  ## 📌 Overview
33
33
 
34
- **PyGAMLab** stands for *Python GAMLAb tools*, a collection of scientific tools and functions developed at the **GAMLab** by **Ali Pilehvar Meibody** under the supervision of **Prof. Malek Naderi** at **Gamlab (Graphene and Advanced Material Laboratory)** under supervision of **Amirkabir University of Technology (AUT)**.
34
+ **PyGAMLab** stands for *Python GAMLAb tools*, a collection of scientific tools and functions developed at the **GAMLab (Graphene and Advanced Material Laboratory)** by **Ali Pilehvar Meibody** under the supervision of **Prof. Malek Naderi** at **Amirkabir University of Technology (AUT)**.
35
35
 
36
36
  - **Author:** Ali Pilehvar Meibody
37
- - **Supervisor:** Prof. Naderi
37
+ - **Supervisor:** Prof. Malek Naderi
38
38
  - **Affiliation:** GAMLab, Amirkabir University of Technology (AUT)
39
39
 
40
40
  ---
@@ -115,7 +115,7 @@ pip install numpy pandas scipy matplotlib seaborn scikit-learn
115
115
 
116
116
  ## 🚀 Installation
117
117
 
118
- To install PyGAMLab via pip (after uploading it to PyPI):
118
+ To install PyGAMLab via pip:
119
119
 
120
120
  ```bash
121
121
  pip install pygamlab
@@ -134,49 +134,64 @@ git clone https://github.com/APMaii/pygamlab.git
134
134
  ```python
135
135
  import PyGamLab
136
136
 
137
- #--------------Constants-----------------------
138
137
 
139
- print(PyGamLab.Constants.melting_point_of_Cu)
140
- print(PyGamLab.Constants.melting_point_of_Al)
141
- print(PyGamLab.Constants.Fe_Tm_Alpha)
142
- print(PyGamLab.Constants.Fe_Tm_Gama)
138
+ import PyGamLab.Constants as gamcn
139
+ import PyGamLab.Convertos as gamcv
140
+ import PyGamLab.Functions as gamfunc
141
+ import PyGamLab.Data_Analysis as gamdat
142
+
143
143
 
144
- print(PyGamLab.Constants.Boltzmann_Constant)
145
- print(PyGamLab.Constants.Faraday_Constant)
146
144
 
147
- #----------------Convertors---------------------
145
+ #--------------Constants-----------------------
146
+
147
+ print(gamcn.melting_point_of_Cu)
148
+ print(gamcn.melting_point_of_Al)
149
+ print(gamcn.Fe_Tm_Alpha)
150
+ print(gamcn.Fe_Tm_Gama)
148
151
 
149
- print(PyGamLab.Convertos.Kelvin_to_Celcius(300))
150
- print(PyGamLab.Convertos.Coulomb_To_Electron_volt())
151
- print(PyGamLab.Convertos.Angstrom_To_Milimeter())
152
- print(PyGamLab.Convertos.Bar_To_Pascal())
152
+ print(gamcn.Boltzmann_Constant)
153
+ print(gamcn.Faraday_Constant)
153
154
 
154
- #------------Functions-----------------------
155
155
 
156
- PyGamLab.Functions.Gibs_free_energy(H0,T,S0)
156
+ #----------Converters------------------------
157
157
 
158
+ print(gamcv.Kelvin_to_Celcius(300)) # Convert 300 K to °C
159
+ print(gamcv.Coulomb_To_Electron_volt(1)) # Convert 1 Coulomb to eV
160
+ print(gamcv.Angstrom_To_Milimeter(1)) # Convert 1 Å to mm
161
+ print(gamcv.Bar_To_Pascal(1)) # Convert 1 bar to Pascal
158
162
 
159
- PyGamLab.Functions.Bragg_Law(h, k, l, a, y)
163
+ #-----------Functions------------------------
160
164
 
165
+ # Gibb's Free Energy: G = H0 - T*S0
166
+ H0 = 100 # Enthalpy in kJ/mol
167
+ T = 298 # Temperature in Kelvin
168
+ S0 = 0.2 # Entropy in kJ/mol·K
169
+ print(gamfunc.Gibs_free_energy(H0, T, S0))
161
170
 
162
- PyGamLab.Functions.Electrical_Resistance(v,i)
163
171
 
172
+ # Electrical Resistance: R = V / I
173
+ voltage = 10 # in Volts
174
+ current = 2 # in Amperes
175
+ print(gamfunc.Electrical_Resistance(voltage, current))
164
176
 
165
- PyGamLab.Functions.Hall_Petch(d_grain,sigma0,k)
177
+ # Hall-Petch Relationship: σ = σ0 + k / √d
178
+ d_grain = 0.01 # Grain diameter in mm
179
+ sigma0 = 150 # Friction stress in MPa
180
+ k = 0.5 # Strengthening coefficient in MPa·mm^0.5
181
+ print(gamfunc.Hall_Petch(d_grain, sigma0, k))
166
182
 
167
183
  #-----------Data_Analysis--------------------
168
184
  import pandas as pd
169
185
 
170
186
  df= pd.read_csv('/users/apm/....../data.csv')
171
- PyGamLab.Data_Analysis.Stress_Strain1(df, 'PLOT')
172
- my_uts=PyGamLab.Data_Analysis.Stress_Strain1(df, 'UTS')
187
+ gamdat.Stress_Strain1(df, 'PLOT')
188
+ my_uts=gamdat.Stress_Strain1(df, 'UTS')
173
189
 
174
190
 
175
191
  data=pd.read_csv('/users/apm/....../data.csv')
176
- my_max=PyGamLab.Data_Analysis.Xrd_Analysis(data,'max intensity')
177
- PyGamLab.Data_Analysis.Xrd_Analysis(data,'scatter plot')
178
- PyGamLab.Data_Analysis.Xrd_Analysis(data,'line graph')
179
-
192
+ my_max=gamdat.Xrd_Analysis(data,'max intensity')
193
+ gamdat.Xrd_Analysis(data,'scatter plot')
194
+ gamdat.Xrd_Analysis(data,'line graph')
180
195
  ```
181
196
 
182
197
 
@@ -195,15 +210,6 @@ pygamlab/
195
210
  ```
196
211
 
197
212
 
198
- ---
199
-
200
-
201
-
202
-
203
-
204
-
205
-
206
-
207
213
  ---
208
214
  ## 🤝 Contributing
209
215
 
@@ -243,7 +249,7 @@ This project is part of the scientific research activities at **GAMLab (Generali
243
249
 
244
250
  Special thanks to:
245
251
 
246
- - **Prof. Nader** – For his guidance, mentorship, and continuous support.
252
+ - **Prof. Malek Naderi** – For his guidance, mentorship, and continuous support.
247
253
  - **Ali Pilehvar Meibody** – Main developer and author of PyGamLab.
248
254
  - **GAMLab Research Group** – For providing a collaborative and innovative environment.
249
255
 
@@ -2,7 +2,7 @@ README.md
2
2
  pyproject.toml
3
3
  setup.py
4
4
  PyGamLab/Constants.py
5
- PyGamLab/Convertos.py
5
+ PyGamLab/Convertors.py
6
6
  PyGamLab/Data_Analysis.py
7
7
  PyGamLab/Functions.py
8
8
  PyGamLab/__init__.py
@@ -6,10 +6,10 @@
6
6
 
7
7
  ## 📌 Overview
8
8
 
9
- **PyGAMLab** stands for *Python GAMLAb tools*, a collection of scientific tools and functions developed at the **GAMLab** by **Ali Pilehvar Meibody** under the supervision of **Prof. Malek Naderi** at **Gamlab (Graphene and Advanced Material Laboratory)** under supervision of **Amirkabir University of Technology (AUT)**.
9
+ **PyGAMLab** stands for *Python GAMLAb tools*, a collection of scientific tools and functions developed at the **GAMLab (Graphene and Advanced Material Laboratory)** by **Ali Pilehvar Meibody** under the supervision of **Prof. Malek Naderi** at **Amirkabir University of Technology (AUT)**.
10
10
 
11
11
  - **Author:** Ali Pilehvar Meibody
12
- - **Supervisor:** Prof. Naderi
12
+ - **Supervisor:** Prof. Malek Naderi
13
13
  - **Affiliation:** GAMLab, Amirkabir University of Technology (AUT)
14
14
 
15
15
  ---
@@ -90,7 +90,7 @@ pip install numpy pandas scipy matplotlib seaborn scikit-learn
90
90
 
91
91
  ## 🚀 Installation
92
92
 
93
- To install PyGAMLab via pip (after uploading it to PyPI):
93
+ To install PyGAMLab via pip:
94
94
 
95
95
  ```bash
96
96
  pip install pygamlab
@@ -109,49 +109,64 @@ git clone https://github.com/APMaii/pygamlab.git
109
109
  ```python
110
110
  import PyGamLab
111
111
 
112
- #--------------Constants-----------------------
113
112
 
114
- print(PyGamLab.Constants.melting_point_of_Cu)
115
- print(PyGamLab.Constants.melting_point_of_Al)
116
- print(PyGamLab.Constants.Fe_Tm_Alpha)
117
- print(PyGamLab.Constants.Fe_Tm_Gama)
113
+ import PyGamLab.Constants as gamcn
114
+ import PyGamLab.Convertos as gamcv
115
+ import PyGamLab.Functions as gamfunc
116
+ import PyGamLab.Data_Analysis as gamdat
117
+
118
118
 
119
- print(PyGamLab.Constants.Boltzmann_Constant)
120
- print(PyGamLab.Constants.Faraday_Constant)
121
119
 
122
- #----------------Convertors---------------------
120
+ #--------------Constants-----------------------
121
+
122
+ print(gamcn.melting_point_of_Cu)
123
+ print(gamcn.melting_point_of_Al)
124
+ print(gamcn.Fe_Tm_Alpha)
125
+ print(gamcn.Fe_Tm_Gama)
123
126
 
124
- print(PyGamLab.Convertos.Kelvin_to_Celcius(300))
125
- print(PyGamLab.Convertos.Coulomb_To_Electron_volt())
126
- print(PyGamLab.Convertos.Angstrom_To_Milimeter())
127
- print(PyGamLab.Convertos.Bar_To_Pascal())
127
+ print(gamcn.Boltzmann_Constant)
128
+ print(gamcn.Faraday_Constant)
128
129
 
129
- #------------Functions-----------------------
130
130
 
131
- PyGamLab.Functions.Gibs_free_energy(H0,T,S0)
131
+ #----------Converters------------------------
132
132
 
133
+ print(gamcv.Kelvin_to_Celcius(300)) # Convert 300 K to °C
134
+ print(gamcv.Coulomb_To_Electron_volt(1)) # Convert 1 Coulomb to eV
135
+ print(gamcv.Angstrom_To_Milimeter(1)) # Convert 1 Å to mm
136
+ print(gamcv.Bar_To_Pascal(1)) # Convert 1 bar to Pascal
133
137
 
134
- PyGamLab.Functions.Bragg_Law(h, k, l, a, y)
138
+ #-----------Functions------------------------
135
139
 
140
+ # Gibb's Free Energy: G = H0 - T*S0
141
+ H0 = 100 # Enthalpy in kJ/mol
142
+ T = 298 # Temperature in Kelvin
143
+ S0 = 0.2 # Entropy in kJ/mol·K
144
+ print(gamfunc.Gibs_free_energy(H0, T, S0))
136
145
 
137
- PyGamLab.Functions.Electrical_Resistance(v,i)
138
146
 
147
+ # Electrical Resistance: R = V / I
148
+ voltage = 10 # in Volts
149
+ current = 2 # in Amperes
150
+ print(gamfunc.Electrical_Resistance(voltage, current))
139
151
 
140
- PyGamLab.Functions.Hall_Petch(d_grain,sigma0,k)
152
+ # Hall-Petch Relationship: σ = σ0 + k / √d
153
+ d_grain = 0.01 # Grain diameter in mm
154
+ sigma0 = 150 # Friction stress in MPa
155
+ k = 0.5 # Strengthening coefficient in MPa·mm^0.5
156
+ print(gamfunc.Hall_Petch(d_grain, sigma0, k))
141
157
 
142
158
  #-----------Data_Analysis--------------------
143
159
  import pandas as pd
144
160
 
145
161
  df= pd.read_csv('/users/apm/....../data.csv')
146
- PyGamLab.Data_Analysis.Stress_Strain1(df, 'PLOT')
147
- my_uts=PyGamLab.Data_Analysis.Stress_Strain1(df, 'UTS')
162
+ gamdat.Stress_Strain1(df, 'PLOT')
163
+ my_uts=gamdat.Stress_Strain1(df, 'UTS')
148
164
 
149
165
 
150
166
  data=pd.read_csv('/users/apm/....../data.csv')
151
- my_max=PyGamLab.Data_Analysis.Xrd_Analysis(data,'max intensity')
152
- PyGamLab.Data_Analysis.Xrd_Analysis(data,'scatter plot')
153
- PyGamLab.Data_Analysis.Xrd_Analysis(data,'line graph')
154
-
167
+ my_max=gamdat.Xrd_Analysis(data,'max intensity')
168
+ gamdat.Xrd_Analysis(data,'scatter plot')
169
+ gamdat.Xrd_Analysis(data,'line graph')
155
170
  ```
156
171
 
157
172
 
@@ -170,15 +185,6 @@ pygamlab/
170
185
  ```
171
186
 
172
187
 
173
- ---
174
-
175
-
176
-
177
-
178
-
179
-
180
-
181
-
182
188
  ---
183
189
  ## 🤝 Contributing
184
190
 
@@ -218,7 +224,7 @@ This project is part of the scientific research activities at **GAMLab (Generali
218
224
 
219
225
  Special thanks to:
220
226
 
221
- - **Prof. Nader** – For his guidance, mentorship, and continuous support.
227
+ - **Prof. Malek Naderi** – For his guidance, mentorship, and continuous support.
222
228
  - **Ali Pilehvar Meibody** – Main developer and author of PyGamLab.
223
229
  - **GAMLab Research Group** – For providing a collaborative and innovative environment.
224
230
 
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "PyGamLab"
7
- version = "0.1.1"
7
+ version = "0.1.2"
8
8
  description = "A scientific Python library with constants, unit convertors, formulas, and data analysis tools."
9
9
  authors = [
10
10
  { name="Ali Pilehvar Meibody", email="ai.2024.pilehvar@Gmail.com" }
@@ -5,7 +5,7 @@ from setuptools import setup, find_packages
5
5
 
6
6
  setup(
7
7
  name="PyGamLab",
8
- version="0.1.1",
8
+ version="0.1.2",
9
9
  author="Ali Pilehvar Meibody",
10
10
  author_email="your_email@example.com",
11
11
  description="A scientific Python library with constants, unit convertors, formulas, and data analysis tools.",
File without changes
File without changes
File without changes