calphy 1.3.9__py3-none-any.whl → 1.3.10__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.
calphy/__init__.py CHANGED
@@ -4,7 +4,7 @@ from calphy.solid import Solid
4
4
  from calphy.alchemy import Alchemy
5
5
  from calphy.routines import MeltingTemp
6
6
 
7
- __version__ = "1.3.9"
7
+ __version__ = "1.3.10"
8
8
 
9
9
  def addtest(a,b):
10
10
  return a+b
calphy/input.py CHANGED
@@ -40,7 +40,7 @@ from pyscal3.core import structure_dict, element_dict, _make_crystal
40
40
  from ase.io import read, write
41
41
  import shutil
42
42
 
43
- __version__ = "1.3.9"
43
+ __version__ = "1.3.10"
44
44
 
45
45
  def read_report(folder):
46
46
  """
calphy/integrators.py CHANGED
@@ -28,7 +28,10 @@ import math
28
28
  import os
29
29
  import warnings
30
30
  from calphy.splines import splines, sum_spline1, sum_spline25, sum_spline50, sum_spline75, sum_spline100
31
- from scipy.integrate import cumtrapz
31
+ try:
32
+ from scipy.integrate import cumtrapz
33
+ except ImportError:
34
+ from scipy.integrate import cumulative_trapezoid as cumtrapz
32
35
  from tqdm import tqdm
33
36
  import pyscal3.core as pc
34
37
  from ase.io import read
calphy/scheduler.py CHANGED
@@ -90,6 +90,7 @@ class SLURM:
90
90
  """
91
91
  self.queueoptions = {"scheduler": "slurm",
92
92
  "jobname": "tis",
93
+ "queuename": None,
93
94
  "walltime": "23:59:00",
94
95
  "memory": "3GB",
95
96
  "cores": cores,
@@ -125,7 +126,8 @@ class SLURM:
125
126
  #write the main header options
126
127
  fout.write("#SBATCH --job-name=%s\n" %self.queueoptions["jobname"])
127
128
  fout.write("#SBATCH --time=%s\n" %self.queueoptions["walltime"])
128
- fout.write("#SBATCH --partition=%s\n"%self.queueoptions["queuename"])
129
+ if self.queueoptions["queuename"] is not None:
130
+ fout.write("#SBATCH --partition=%s\n"%self.queueoptions["queuename"])
129
131
  fout.write("#SBATCH --ntasks=%s\n" %str(self.queueoptions["cores"]))
130
132
  fout.write("#SBATCH --mem-per-cpu=%s\n"%self.queueoptions["memory"])
131
133
  fout.write("#SBATCH --hint=%s\n" %self.queueoptions["hint"])
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: calphy
3
- Version: 1.3.9
3
+ Version: 1.3.10
4
4
  Summary: free energy calculation for python
5
5
  Home-page: https://github.com/ICAMS/calphy
6
6
  Author: Sarath Menon, Yury Lysogorskiy, Ralf Drautz
@@ -1,24 +1,24 @@
1
- calphy/__init__.py,sha256=RKi3orWUQRK_qYHCQKFzfbyTptYDonS9673vtVdelso,233
1
+ calphy/__init__.py,sha256=w9XLioZKvY0Z1pvwKo_2S1s8SsILErVXJOpojhsHbA4,234
2
2
  calphy/alchemy.py,sha256=epv_vJoAMVbj-S1TuPSbBGr4w_a9qEr4EIxKlgwdlSo,12893
3
3
  calphy/clitools.py,sha256=oDqaw0s-LJ7tAdW_Njk2SFljVx6K34Rs8sdMz48SNSI,4125
4
4
  calphy/composition_transformation.py,sha256=Hh240-iVGC8ATlJ3nQK757qVZIBrE2aw7dsF46mi3oo,15353
5
5
  calphy/errors.py,sha256=KN47RWTLbg1H_NZMrhCiJCbqjqJScJ1pgQAuzj1-l84,1268
6
6
  calphy/helpers.py,sha256=nj8g53H6ScohQtyV7Enzms8Rv_89PRrDDY1IHjFSZdQ,8292
7
- calphy/input.py,sha256=Z8h-Y3dz5HJy6eOGYffMtUV9Q-NPall8dnPiFKkXUEw,29717
8
- calphy/integrators.py,sha256=CcK3oqIwZ3z41v3fh3IvswY_l-ZbLRluWuDNJlXCXfg,20680
7
+ calphy/input.py,sha256=qI8BCx_zZ_909Jaa2sxePHQDcp4oDzychVaZKfUgAVM,29718
8
+ calphy/integrators.py,sha256=pblWLGngLgjBbHwVsjl3K7pr3eh4z3oZ261XdLlQNOA,20774
9
9
  calphy/kernel.py,sha256=rd_-EfCiBhQjkxcVaoLtVJB2_qDgS-g-dQ0BZBTJQ_A,6190
10
10
  calphy/liquid.py,sha256=a5NTAjc3VsrPBQoEMGe9O1WXfv1vxGoB0xPguf0fOyM,13762
11
11
  calphy/phase.py,sha256=ukqad4MJ-MNGiyOsq2_jntG2s10UHbJVi2Ounpg_S2U,44787
12
12
  calphy/phase_diagram.py,sha256=2EwmT_qkT5BEP6Sx0_rm09kPP2RWh5JY4sogIBK_AhA,12992
13
13
  calphy/queuekernel.py,sha256=4GMIYnjMiAPipoLNKP5noYcfeEOI_vCqm84zgokk7Xw,5321
14
14
  calphy/routines.py,sha256=W6OZEPv6HEG11EYsoIbum2WVrO3Ly36i5UWsYQ4oBdQ,17473
15
- calphy/scheduler.py,sha256=9p1MdMlB2QtMV6-LmjBU9E0GOxx-fdDEvAb3LOVsRPM,8468
15
+ calphy/scheduler.py,sha256=IN8ogDedpTbZZsdpOj-hYZI05gWoD4bN7mHOb1z77Vo,8579
16
16
  calphy/solid.py,sha256=49gT0wNOP3h8lRDXarULP-bU09lIrnDCTUcyxE7X-UE,19795
17
17
  calphy/splines.py,sha256=BGwUVz_qXQxUzpUCuZo6CsELcd5JVNWzI-Ttcz22G_E,61627
18
18
  calphy/utils.py,sha256=0UpsYoxjS5N-iGs-cdm0YDMkLF8IHvKO3smXDHrj3eg,3818
19
- calphy-1.3.9.dist-info/LICENSE,sha256=XIHGB5RZLIhOjjoO1bPf0II-qDbjhP5Cv5HJMRE9v1g,16651
20
- calphy-1.3.9.dist-info/METADATA,sha256=OoDJsMjXCuKp1w4IxKX-RL9baeg3b4Co_BzHtaydQnc,4215
21
- calphy-1.3.9.dist-info/WHEEL,sha256=cpQTJ5IWu9CdaPViMhC9YzF8gZuS5-vlfoFihTBC86A,91
22
- calphy-1.3.9.dist-info/entry_points.txt,sha256=W9qq254koyWnAgo1jtfQP9bO5Q7sgZrzc8BMnfo3vf4,386
23
- calphy-1.3.9.dist-info/top_level.txt,sha256=w871dhMqPwgjjbifBWdkT9_aOnK1ek4Odrh8UnSG3PE,7
24
- calphy-1.3.9.dist-info/RECORD,,
19
+ calphy-1.3.10.dist-info/LICENSE,sha256=XIHGB5RZLIhOjjoO1bPf0II-qDbjhP5Cv5HJMRE9v1g,16651
20
+ calphy-1.3.10.dist-info/METADATA,sha256=-Pgiun1WuVVvcxqipSbOcN5TSr9AdYRJ_CQWpAE1KG4,4216
21
+ calphy-1.3.10.dist-info/WHEEL,sha256=R0nc6qTxuoLk7ShA2_Y-UWkN8ZdfDBG2B6Eqpz2WXbs,91
22
+ calphy-1.3.10.dist-info/entry_points.txt,sha256=W9qq254koyWnAgo1jtfQP9bO5Q7sgZrzc8BMnfo3vf4,386
23
+ calphy-1.3.10.dist-info/top_level.txt,sha256=w871dhMqPwgjjbifBWdkT9_aOnK1ek4Odrh8UnSG3PE,7
24
+ calphy-1.3.10.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (70.1.0)
2
+ Generator: setuptools (72.1.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5