qrotor 4.4.1__tar.gz → 4.5.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.
Potentially problematic release.
This version of qrotor might be problematic. Click here for more details.
- {qrotor-4.4.1 → qrotor-4.5.0}/PKG-INFO +3 -3
- {qrotor-4.4.1 → qrotor-4.5.0}/README.md +2 -2
- {qrotor-4.4.1 → qrotor-4.5.0}/qrotor/__init__.py +1 -1
- {qrotor-4.4.1 → qrotor-4.5.0}/qrotor/_version.py +1 -1
- {qrotor-4.4.1 → qrotor-4.5.0}/qrotor/potential.py +1 -1
- qrotor-4.4.1/qrotor/rotate.py → qrotor-4.5.0/qrotor/rotation.py +3 -3
- {qrotor-4.4.1 → qrotor-4.5.0}/qrotor.egg-info/PKG-INFO +3 -3
- {qrotor-4.4.1 → qrotor-4.5.0}/qrotor.egg-info/SOURCES.txt +2 -2
- qrotor-4.4.1/tests/test_rotate.py → qrotor-4.5.0/tests/test_rotation.py +3 -3
- {qrotor-4.4.1 → qrotor-4.5.0}/LICENSE +0 -0
- {qrotor-4.4.1 → qrotor-4.5.0}/qrotor/constants.py +0 -0
- {qrotor-4.4.1 → qrotor-4.5.0}/qrotor/plot.py +0 -0
- {qrotor-4.4.1 → qrotor-4.5.0}/qrotor/solve.py +0 -0
- {qrotor-4.4.1 → qrotor-4.5.0}/qrotor/system.py +0 -0
- {qrotor-4.4.1 → qrotor-4.5.0}/qrotor/systems.py +0 -0
- {qrotor-4.4.1 → qrotor-4.5.0}/qrotor.egg-info/dependency_links.txt +0 -0
- {qrotor-4.4.1 → qrotor-4.5.0}/qrotor.egg-info/requires.txt +0 -0
- {qrotor-4.4.1 → qrotor-4.5.0}/qrotor.egg-info/top_level.txt +0 -0
- {qrotor-4.4.1 → qrotor-4.5.0}/setup.cfg +0 -0
- {qrotor-4.4.1 → qrotor-4.5.0}/setup.py +0 -0
- {qrotor-4.4.1 → qrotor-4.5.0}/tests/__init__.py +0 -0
- {qrotor-4.4.1 → qrotor-4.5.0}/tests/test_constants.py +0 -0
- {qrotor-4.4.1 → qrotor-4.5.0}/tests/test_potential.py +0 -0
- {qrotor-4.4.1 → qrotor-4.5.0}/tests/test_solve.py +0 -0
- {qrotor-4.4.1 → qrotor-4.5.0}/tests/test_system.py +0 -0
- {qrotor-4.4.1 → qrotor-4.5.0}/tests/test_systems.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: qrotor
|
|
3
|
-
Version: 4.
|
|
3
|
+
Version: 4.5.0
|
|
4
4
|
Summary: QRotor
|
|
5
5
|
Author: Pablo Gila-Herranz
|
|
6
6
|
Author-email: pgila001@ikasle.ehu.eus
|
|
@@ -106,7 +106,7 @@ QRotor contains the following modules:
|
|
|
106
106
|
| [qrotor.constants](https://pablogila.github.io/qrotor/qrotor/constants.html) | Common bond lengths and inertias |
|
|
107
107
|
| [qrotor.system](https://pablogila.github.io/qrotor/qrotor/system.html) | Definition of the quantum `System` object |
|
|
108
108
|
| [qrotor.systems](https://pablogila.github.io/qrotor/qrotor/systems.html) | Utilities to manage several System objects, such as a list of systems |
|
|
109
|
-
| [qrotor.
|
|
109
|
+
| [qrotor.rotation](https://pablogila.github.io/qrotor/qrotor/rotation.html) | Rotate specific atoms from structural files |
|
|
110
110
|
| [qrotor.potential](https://pablogila.github.io/qrotor/qrotor/potential.html) | Potential definitions and loading functions |
|
|
111
111
|
| [qrotor.solve](https://pablogila.github.io/qrotor/qrotor/solve.html) | Solve rotation eigenvalues and eigenvectors |
|
|
112
112
|
| [qrotor.plot](https://pablogila.github.io/qrotor/qrotor/plot.html) | Plotting utilities |
|
|
@@ -179,7 +179,7 @@ atoms = [
|
|
|
179
179
|
'3.103 3.206 3.309'
|
|
180
180
|
]
|
|
181
181
|
# Create the input SCF files, saving the filenames to a list
|
|
182
|
-
scf_files = qr.
|
|
182
|
+
scf_files = qr.rotation.rotate_qe('molecule.in', positions=atoms, angle=10, repeat=True)
|
|
183
183
|
# Run the Quantum ESPRESSO calculations
|
|
184
184
|
api.slurm.sbatch(files=scf_files)
|
|
185
185
|
```
|
|
@@ -70,7 +70,7 @@ QRotor contains the following modules:
|
|
|
70
70
|
| [qrotor.constants](https://pablogila.github.io/qrotor/qrotor/constants.html) | Common bond lengths and inertias |
|
|
71
71
|
| [qrotor.system](https://pablogila.github.io/qrotor/qrotor/system.html) | Definition of the quantum `System` object |
|
|
72
72
|
| [qrotor.systems](https://pablogila.github.io/qrotor/qrotor/systems.html) | Utilities to manage several System objects, such as a list of systems |
|
|
73
|
-
| [qrotor.
|
|
73
|
+
| [qrotor.rotation](https://pablogila.github.io/qrotor/qrotor/rotation.html) | Rotate specific atoms from structural files |
|
|
74
74
|
| [qrotor.potential](https://pablogila.github.io/qrotor/qrotor/potential.html) | Potential definitions and loading functions |
|
|
75
75
|
| [qrotor.solve](https://pablogila.github.io/qrotor/qrotor/solve.html) | Solve rotation eigenvalues and eigenvectors |
|
|
76
76
|
| [qrotor.plot](https://pablogila.github.io/qrotor/qrotor/plot.html) | Plotting utilities |
|
|
@@ -143,7 +143,7 @@ atoms = [
|
|
|
143
143
|
'3.103 3.206 3.309'
|
|
144
144
|
]
|
|
145
145
|
# Create the input SCF files, saving the filenames to a list
|
|
146
|
-
scf_files = qr.
|
|
146
|
+
scf_files = qr.rotation.rotate_qe('molecule.in', positions=atoms, angle=10, repeat=True)
|
|
147
147
|
# Run the Quantum ESPRESSO calculations
|
|
148
148
|
api.slurm.sbatch(files=scf_files)
|
|
149
149
|
```
|
|
@@ -200,7 +200,7 @@ def from_qe(
|
|
|
200
200
|
comment:str=None,
|
|
201
201
|
) -> System:
|
|
202
202
|
"""Compiles a rotational potential CSV file from Quantum ESPRESSO pw.x outputs,
|
|
203
|
-
created with `qrotor.
|
|
203
|
+
created with `qrotor.rotation.rotate_qe()`.
|
|
204
204
|
Returns a `System` object with the new potential values.
|
|
205
205
|
|
|
206
206
|
The angle in degrees is extracted from the output filenames,
|
|
@@ -9,7 +9,7 @@ Works with Quantum ESPRESSO input files.
|
|
|
9
9
|
|
|
10
10
|
| | |
|
|
11
11
|
| --- | --- |
|
|
12
|
-
| `
|
|
12
|
+
| `rotate_qe()` | Rotate specific atoms from a Quantum ESPRESSO input file |
|
|
13
13
|
| `rotate_coords()` | Rotate a specific list of coordinates |
|
|
14
14
|
|
|
15
15
|
---
|
|
@@ -26,7 +26,7 @@ import aton.txt.extract as extract
|
|
|
26
26
|
import aton.txt.edit as edit
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
def
|
|
29
|
+
def rotate_qe(
|
|
30
30
|
filepath:str,
|
|
31
31
|
positions:list,
|
|
32
32
|
angle:float,
|
|
@@ -35,7 +35,7 @@ def input_qe(
|
|
|
35
35
|
use_centroid:bool=True,
|
|
36
36
|
show_axis:bool=False,
|
|
37
37
|
) -> list:
|
|
38
|
-
"""Rotates atoms from a Quantum ESPRESSO input file.
|
|
38
|
+
"""Rotates atoms from a Quantum ESPRESSO pw.x input file.
|
|
39
39
|
|
|
40
40
|
Takes a `filepath` with a molecular structure, and three or more atomic `positions` (list).
|
|
41
41
|
These input positions can be approximate, and are used to identify the target atoms.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: qrotor
|
|
3
|
-
Version: 4.
|
|
3
|
+
Version: 4.5.0
|
|
4
4
|
Summary: QRotor
|
|
5
5
|
Author: Pablo Gila-Herranz
|
|
6
6
|
Author-email: pgila001@ikasle.ehu.eus
|
|
@@ -106,7 +106,7 @@ QRotor contains the following modules:
|
|
|
106
106
|
| [qrotor.constants](https://pablogila.github.io/qrotor/qrotor/constants.html) | Common bond lengths and inertias |
|
|
107
107
|
| [qrotor.system](https://pablogila.github.io/qrotor/qrotor/system.html) | Definition of the quantum `System` object |
|
|
108
108
|
| [qrotor.systems](https://pablogila.github.io/qrotor/qrotor/systems.html) | Utilities to manage several System objects, such as a list of systems |
|
|
109
|
-
| [qrotor.
|
|
109
|
+
| [qrotor.rotation](https://pablogila.github.io/qrotor/qrotor/rotation.html) | Rotate specific atoms from structural files |
|
|
110
110
|
| [qrotor.potential](https://pablogila.github.io/qrotor/qrotor/potential.html) | Potential definitions and loading functions |
|
|
111
111
|
| [qrotor.solve](https://pablogila.github.io/qrotor/qrotor/solve.html) | Solve rotation eigenvalues and eigenvectors |
|
|
112
112
|
| [qrotor.plot](https://pablogila.github.io/qrotor/qrotor/plot.html) | Plotting utilities |
|
|
@@ -179,7 +179,7 @@ atoms = [
|
|
|
179
179
|
'3.103 3.206 3.309'
|
|
180
180
|
]
|
|
181
181
|
# Create the input SCF files, saving the filenames to a list
|
|
182
|
-
scf_files = qr.
|
|
182
|
+
scf_files = qr.rotation.rotate_qe('molecule.in', positions=atoms, angle=10, repeat=True)
|
|
183
183
|
# Run the Quantum ESPRESSO calculations
|
|
184
184
|
api.slurm.sbatch(files=scf_files)
|
|
185
185
|
```
|
|
@@ -6,7 +6,7 @@ qrotor/_version.py
|
|
|
6
6
|
qrotor/constants.py
|
|
7
7
|
qrotor/plot.py
|
|
8
8
|
qrotor/potential.py
|
|
9
|
-
qrotor/
|
|
9
|
+
qrotor/rotation.py
|
|
10
10
|
qrotor/solve.py
|
|
11
11
|
qrotor/system.py
|
|
12
12
|
qrotor/systems.py
|
|
@@ -18,7 +18,7 @@ qrotor.egg-info/top_level.txt
|
|
|
18
18
|
tests/__init__.py
|
|
19
19
|
tests/test_constants.py
|
|
20
20
|
tests/test_potential.py
|
|
21
|
-
tests/
|
|
21
|
+
tests/test_rotation.py
|
|
22
22
|
tests/test_solve.py
|
|
23
23
|
tests/test_system.py
|
|
24
24
|
tests/test_systems.py
|
|
@@ -10,14 +10,14 @@ structure_120 = folder + 'CH3NH3_120.in'
|
|
|
10
10
|
structure_60 = folder + 'CH3NH3_60.in'
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
def
|
|
13
|
+
def test_rotation():
|
|
14
14
|
CH3 = [
|
|
15
15
|
'0.100 0.183 0.316',
|
|
16
16
|
'0.151 0.532 0.842',
|
|
17
17
|
'0.118 0.816 0.277',
|
|
18
18
|
]
|
|
19
19
|
# 120 degrees (it should remain the same)
|
|
20
|
-
qr.
|
|
20
|
+
qr.rotation.rotate_qe(filepath=structure, positions=CH3, angle=120, precision=2)
|
|
21
21
|
for coord in CH3:
|
|
22
22
|
rotated_coord = api.pwx.get_atom(filepath=structure_120, position=coord, precision=2)
|
|
23
23
|
rotated_coord = extract.coords(rotated_coord)
|
|
@@ -37,7 +37,7 @@ def test_rotate():
|
|
|
37
37
|
'0.095062781582172 0.488975944606740 0.115053787468686',
|
|
38
38
|
'0.128156574395412 0.205890189020629 0.680672454316303',
|
|
39
39
|
]
|
|
40
|
-
qr.
|
|
40
|
+
qr.rotation.rotate_qe(filepath=structure, positions=CH3, angle=60, precision=2)
|
|
41
41
|
for coord in ideal:
|
|
42
42
|
rotated_coord = api.pwx.get_atom(filepath=structure_60, position=coord, precision=3)
|
|
43
43
|
rotated_coord = extract.coords(rotated_coord)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|