aton 0.3.2a2__tar.gz → 0.3.2a3__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.
Files changed (52) hide show
  1. {aton-0.3.2a2 → aton-0.3.2a3}/PKG-INFO +3 -3
  2. {aton-0.3.2a2 → aton-0.3.2a3}/aton/_version.py +1 -1
  3. {aton-0.3.2a2 → aton-0.3.2a3}/aton/qrotor/potential.py +0 -55
  4. {aton-0.3.2a2 → aton-0.3.2a3}/aton/qrotor/solve.py +1 -1
  5. {aton-0.3.2a2 → aton-0.3.2a3}/aton.egg-info/PKG-INFO +3 -3
  6. {aton-0.3.2a2 → aton-0.3.2a3}/aton.egg-info/requires.txt +2 -2
  7. {aton-0.3.2a2 → aton-0.3.2a3}/setup.py +1 -1
  8. {aton-0.3.2a2 → aton-0.3.2a3}/LICENSE +0 -0
  9. {aton-0.3.2a2 → aton-0.3.2a3}/README.md +0 -0
  10. {aton-0.3.2a2 → aton-0.3.2a3}/aton/__init__.py +0 -0
  11. {aton-0.3.2a2 → aton-0.3.2a3}/aton/interface/__init__.py +0 -0
  12. {aton-0.3.2a2 → aton-0.3.2a3}/aton/interface/castep.py +0 -0
  13. {aton-0.3.2a2 → aton-0.3.2a3}/aton/interface/phonopy.py +0 -0
  14. {aton-0.3.2a2 → aton-0.3.2a3}/aton/interface/qe.py +0 -0
  15. {aton-0.3.2a2 → aton-0.3.2a3}/aton/interface/slurm.py +0 -0
  16. {aton-0.3.2a2 → aton-0.3.2a3}/aton/phys/__init__.py +0 -0
  17. {aton-0.3.2a2 → aton-0.3.2a3}/aton/phys/atoms.py +0 -0
  18. {aton-0.3.2a2 → aton-0.3.2a3}/aton/phys/functions.py +0 -0
  19. {aton-0.3.2a2 → aton-0.3.2a3}/aton/phys/units.py +0 -0
  20. {aton-0.3.2a2 → aton-0.3.2a3}/aton/qrotor/__init__.py +0 -0
  21. {aton-0.3.2a2 → aton-0.3.2a3}/aton/qrotor/constants.py +0 -0
  22. {aton-0.3.2a2 → aton-0.3.2a3}/aton/qrotor/plot.py +0 -0
  23. {aton-0.3.2a2 → aton-0.3.2a3}/aton/qrotor/rotate.py +0 -0
  24. {aton-0.3.2a2 → aton-0.3.2a3}/aton/qrotor/system.py +0 -0
  25. {aton-0.3.2a2 → aton-0.3.2a3}/aton/qrotor/systems.py +0 -0
  26. {aton-0.3.2a2 → aton-0.3.2a3}/aton/spx/__init__.py +0 -0
  27. {aton-0.3.2a2 → aton-0.3.2a3}/aton/spx/classes.py +0 -0
  28. {aton-0.3.2a2 → aton-0.3.2a3}/aton/spx/deuterium.py +0 -0
  29. {aton-0.3.2a2 → aton-0.3.2a3}/aton/spx/fit.py +0 -0
  30. {aton-0.3.2a2 → aton-0.3.2a3}/aton/spx/normalize.py +0 -0
  31. {aton-0.3.2a2 → aton-0.3.2a3}/aton/spx/plot.py +0 -0
  32. {aton-0.3.2a2 → aton-0.3.2a3}/aton/spx/samples.py +0 -0
  33. {aton-0.3.2a2 → aton-0.3.2a3}/aton/st/__init__.py +0 -0
  34. {aton-0.3.2a2 → aton-0.3.2a3}/aton/st/alias.py +0 -0
  35. {aton-0.3.2a2 → aton-0.3.2a3}/aton/st/call.py +0 -0
  36. {aton-0.3.2a2 → aton-0.3.2a3}/aton/st/file.py +0 -0
  37. {aton-0.3.2a2 → aton-0.3.2a3}/aton/txt/__init__.py +0 -0
  38. {aton-0.3.2a2 → aton-0.3.2a3}/aton/txt/edit.py +0 -0
  39. {aton-0.3.2a2 → aton-0.3.2a3}/aton/txt/extract.py +0 -0
  40. {aton-0.3.2a2 → aton-0.3.2a3}/aton/txt/find.py +0 -0
  41. {aton-0.3.2a2 → aton-0.3.2a3}/aton.egg-info/SOURCES.txt +0 -0
  42. {aton-0.3.2a2 → aton-0.3.2a3}/aton.egg-info/dependency_links.txt +0 -0
  43. {aton-0.3.2a2 → aton-0.3.2a3}/aton.egg-info/top_level.txt +0 -0
  44. {aton-0.3.2a2 → aton-0.3.2a3}/setup.cfg +0 -0
  45. {aton-0.3.2a2 → aton-0.3.2a3}/tests/__init__.py +0 -0
  46. {aton-0.3.2a2 → aton-0.3.2a3}/tests/test_edit.py +0 -0
  47. {aton-0.3.2a2 → aton-0.3.2a3}/tests/test_extract.py +0 -0
  48. {aton-0.3.2a2 → aton-0.3.2a3}/tests/test_file.py +0 -0
  49. {aton-0.3.2a2 → aton-0.3.2a3}/tests/test_find.py +0 -0
  50. {aton-0.3.2a2 → aton-0.3.2a3}/tests/test_qe.py +0 -0
  51. {aton-0.3.2a2 → aton-0.3.2a3}/tests/test_qrotor.py +0 -0
  52. {aton-0.3.2a2 → aton-0.3.2a3}/tests/test_spx.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: aton
3
- Version: 0.3.2a2
3
+ Version: 0.3.2a3
4
4
  Summary: The Ab-iniTiO & Neutron research toolbox, or ATON, provides powerful and comprehensive tools for cutting-edge materials research, focused on (but not limited to) neutron science.
5
5
  Author: Pablo Gila-Herranz
6
6
  Author-email: pgila001@ikasle.ehu.eus
@@ -16,9 +16,9 @@ Classifier: Operating System :: Other OS
16
16
  Requires-Python: >=3
17
17
  Description-Content-Type: text/markdown
18
18
  License-File: LICENSE
19
- Requires-Dist: numpy
19
+ Requires-Dist: scipy>=1.15.2
20
20
  Requires-Dist: pandas
21
- Requires-Dist: scipy
21
+ Requires-Dist: numpy
22
22
  Requires-Dist: matplotlib
23
23
  Dynamic: author
24
24
  Dynamic: author-email
@@ -10,5 +10,5 @@ https://semver.org/
10
10
 
11
11
  """
12
12
 
13
- __version__ = 'v0.3.2a2'
13
+ __version__ = 'v0.3.2a3'
14
14
 
@@ -165,61 +165,6 @@ def load(
165
165
  return system
166
166
 
167
167
 
168
- def load_OLD(
169
- filepath:str='potential.dat',
170
- comment:str=None,
171
- system:System=None,
172
- angle:str='deg',
173
- energy:str='meV',
174
- ) -> System:
175
- """Read a rotational potential energy dataset.
176
-
177
- The input file in `filepath` should contain two columns with angle and potential energy values.
178
- Degrees and meV are assumed as default units unless stated in `angle` and `energy`.
179
- Units will be converted automatically to radians and meV.
180
-
181
- An optional `comment` can be included in the output System.
182
-
183
- A previous System object can be provided through `system` to update its potential values.
184
- """
185
- file_path = file.get(filepath)
186
- system = System() if system is None else system
187
- with open(file_path, 'r') as f:
188
- lines = f.readlines()
189
- positions = []
190
- potentials = []
191
- for line in lines:
192
- if line.startswith('#'):
193
- continue
194
- position, potential = line.split()
195
- positions.append(float(position.strip()))
196
- potentials.append(float(potential.strip()))
197
- # Save angles to numpy arrays
198
- if angle.lower() in alias.units['deg']:
199
- positions = np.radians(positions)
200
- elif angle.lower() in alias.units['rad']:
201
- positions = np.array(positions)
202
- else:
203
- raise ValueError(f"Angle unit '{angle}' not recognized.")
204
- # Save energies to numpy arrays
205
- if energy.lower() in alias.units['eV']:
206
- potentials = np.array(potentials) * phys.eV_to_meV
207
- elif energy.lower() in alias.units['meV']:
208
- potentials = np.array(potentials)
209
- elif energy.lower() in alias.units['Ry']:
210
- potentials = np.array(potentials) * phys.Ry_to_meV
211
- else:
212
- raise ValueError(f"Energy unit '{energy}' not recognized.")
213
- # Set the system
214
- system.grid = np.array(positions)
215
- system.gridsize = len(positions)
216
- system.potential_values = np.array(potentials)
217
- # System comment as the parent folder name
218
- system.comment = os.path.basename(os.path.dirname(file_path)) if not comment else comment
219
- print(f"Loaded {filepath}")
220
- return system
221
-
222
-
223
168
  def from_qe(
224
169
  folder=None,
225
170
  filepath:str='potential.csv',
@@ -116,7 +116,7 @@ def laplacian_matrix(grid):
116
116
  x = grid
117
117
  n = len(x)
118
118
  diagonals = [-2*np.ones(n), np.ones(n), np.ones(n)]
119
- laplacian_matrix = sparse.spdiags(diagonals, [0, -1, 1], n, n, format='lil')
119
+ laplacian_matrix = sparse.spdiags(diagonals, [0, -1, 1], m=n, n=n, format='lil')
120
120
  # Periodic boundary conditions
121
121
  laplacian_matrix[0, -1] = 1
122
122
  laplacian_matrix[-1, 0] = 1
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: aton
3
- Version: 0.3.2a2
3
+ Version: 0.3.2a3
4
4
  Summary: The Ab-iniTiO & Neutron research toolbox, or ATON, provides powerful and comprehensive tools for cutting-edge materials research, focused on (but not limited to) neutron science.
5
5
  Author: Pablo Gila-Herranz
6
6
  Author-email: pgila001@ikasle.ehu.eus
@@ -16,9 +16,9 @@ Classifier: Operating System :: Other OS
16
16
  Requires-Python: >=3
17
17
  Description-Content-Type: text/markdown
18
18
  License-File: LICENSE
19
- Requires-Dist: numpy
19
+ Requires-Dist: scipy>=1.15.2
20
20
  Requires-Dist: pandas
21
- Requires-Dist: scipy
21
+ Requires-Dist: numpy
22
22
  Requires-Dist: matplotlib
23
23
  Dynamic: author
24
24
  Dynamic: author-email
@@ -1,4 +1,4 @@
1
- numpy
1
+ scipy>=1.15.2
2
2
  pandas
3
- scipy
3
+ numpy
4
4
  matplotlib
@@ -16,7 +16,7 @@ setup(
16
16
  long_description = LONG_DESCRIPTION,
17
17
  long_description_content_type = 'text/markdown',
18
18
  packages = find_packages(),
19
- install_requires = ['numpy', 'pandas', 'scipy', 'matplotlib'],
19
+ install_requires = ['scipy>=1.15.2', 'pandas', 'numpy', 'matplotlib'],
20
20
  extras_requires = {
21
21
  'dev': ['pytest', 'twine', 'build']
22
22
  },
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
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
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes