quant-met 0.1.0__py3-none-any.whl → 0.1.2__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.
@@ -44,7 +44,8 @@ def q_analysis(parameters: Parameters) -> None:
44
44
  ) = routines.get_lengths_vs_temp(q_data=q_data, hamiltonian=hamiltonian)
45
45
 
46
46
  result_file = Path(f"{parameters.control.outdir}/{parameters.control.prefix}_sc_lengths.hdf5")
47
- result_file.unlink()
47
+ if result_file.exists():
48
+ result_file.unlink()
48
49
  lengths_vs_temp.to_hdf(result_file, key="lengths_vs_temp")
49
50
  gap_and_current_fig.savefig(
50
51
  f"{parameters.control.outdir}/{parameters.control.prefix}_gap_and_current_vs_q.pdf",
quant_met/cli/q_loop.py CHANGED
@@ -40,22 +40,24 @@ def q_loop(parameters: Parameters) -> None:
40
40
  delta_vs_temp, critical_temperatures, fit_fig = routines.search_crit_temp(
41
41
  hamiltonian=hamiltonian,
42
42
  kgrid=k_grid_obj,
43
- hubbard_int_orbital_basis=np.array(parameters.control.hubbard_int_orbital_basis),
44
- epsilon=parameters.control.conv_treshold,
45
- max_iter=parameters.control.max_iter,
43
+ hubbard_int_orbital_basis=np.array(parameters.control.crit_temp.hubbard_int_orbital_basis),
44
+ epsilon=parameters.control.crit_temp.conv_treshold,
45
+ max_iter=parameters.control.crit_temp.max_iter,
46
46
  n_temp_points=20,
47
47
  )
48
48
  logger.info("Search for T_C completed successfully.")
49
49
  logger.info("Obtained T_Cs: %s", critical_temperatures)
50
50
 
51
51
  fit_fig.savefig(
52
- result_path / f"{parameters.control.prefix}_critical_temperatures_fit.pdf",
52
+ result_path / f"{parameters.control.crit_temp.prefix}_critical_temperatures_fit.pdf",
53
53
  bbox_inches="tight",
54
54
  )
55
55
 
56
56
  result_file_crit_temp = (
57
- result_path / f"{parameters.control.prefix}_critical_temperatures.hdf5"
57
+ result_path / f"{parameters.control.crit_temp.prefix}_critical_temperatures.hdf5"
58
58
  )
59
+ if result_file_crit_temp.exists():
60
+ result_file_crit_temp.exists()
59
61
  delta_vs_temp.to_hdf(result_file_crit_temp, key="delta_vs_temp")
60
62
  with h5py.File(result_file_crit_temp, mode="a") as file:
61
63
  for orbital, crit_temp_orbital in enumerate(critical_temperatures):
@@ -82,7 +84,9 @@ def q_loop(parameters: Parameters) -> None:
82
84
  )
83
85
 
84
86
  result_file_q = result_path / f"{parameters.control.prefix}_q.hdf5"
85
- result_file_q.unlink()
87
+
88
+ if result_file_q.exists():
89
+ result_file_q.unlink()
86
90
  for key, df in delta_vs_q.items():
87
91
  df.to_hdf(result_file_q, key=f"temp_{float(key):.6f}")
88
92
  with h5py.File(result_file_q, "a") as f:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: quant-met
3
- Version: 0.1.0
3
+ Version: 0.1.2
4
4
  Summary: Calculate superconductivity in flat-band systems.
5
5
  Author-email: Tjark Sievers <tjarksievers@icloud.com>
6
6
  License-File: LICENSE.txt
@@ -8,8 +8,8 @@ quant_met/bdg/superfluid_weight.py,sha256=rLS6fK41Pt8aXxPL0KNVvK0dMWwYdbZ0eAqBEo
8
8
  quant_met/cli/__init__.py,sha256=11q_R4KoAKZy2EOuUgnAn4GxbS9yyTA6nSjKpDl-UjI,175
9
9
  quant_met/cli/crit_temp.py,sha256=l4jPXY07z75FD7xgACrj_C2B3t3xX-yQeWlcnkEGIAA,2179
10
10
  quant_met/cli/main.py,sha256=DNgXguBfVpp-pddmN-RKePeO1R2Dsr_b97BKei1MMG0,2074
11
- quant_met/cli/q_analysis.py,sha256=H-3o-of_xEv3c1uUqtREGKroY-pk8Yu7RWXmLxi0xpU,1986
12
- quant_met/cli/q_loop.py,sha256=6T01sS65pzqOwLx5gymC-6kbEa3XJjGerujfkB4D1cQ,3524
11
+ quant_met/cli/q_analysis.py,sha256=eRp8wxXz828BfanhtgO0vEHgITR1BAIjINWwApuwV80,2019
12
+ quant_met/cli/q_loop.py,sha256=WIwGAqP00zzePPtU3lrN0M4A4OP9miHbiT32omTVW0c,3696
13
13
  quant_met/cli/scf.py,sha256=jpFoIpC0ghf48lK7SfNeTXXADEtyCzv6kzyMvdcBF1Y,3283
14
14
  quant_met/parameters/__init__.py,sha256=d1XBoH8siW0fNRz5I8tpI2-JQfiSjadFBcmQANV97Zk,448
15
15
  quant_met/parameters/control.py,sha256=ZxtAf35Gnb2LwooazcFrdb1d2b_sipGHIUtF5bZwTIg,1384
@@ -21,8 +21,8 @@ quant_met/routines/analyse_q_data.py,sha256=8q32GBB2ftYgdjWJ1_EpvcNJO9_Fn1kfKSaW
21
21
  quant_met/routines/loop_over_q.py,sha256=3yYhCf_Xo7ziT5Pj4HmLDvvq8crbb7-MdJOjmyluYao,4460
22
22
  quant_met/routines/search_crit_temp.py,sha256=phK2pJTibj8sgtxOghEJkurbG4xt2LRq23MTdfwygAE,9598
23
23
  quant_met/routines/self_consistency.py,sha256=nb-gRzyEd24kc6ZU2O53ov07Zg3pN6wSz-9jjo68RCM,3071
24
- quant_met-0.1.0.dist-info/METADATA,sha256=Eos9y8wuLVX9JdvRwf5QXAnD8XDgL22NpRd9MCSwDXo,1837
25
- quant_met-0.1.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
26
- quant_met-0.1.0.dist-info/entry_points.txt,sha256=1Al3Kt-cMeQxwMp84ZSNL0qFwlbOVBu1o8A19MH8lEU,48
27
- quant_met-0.1.0.dist-info/licenses/LICENSE.txt,sha256=QO_duPQihSJlaxSLxPAXo52X3esROP5wBkhxqBd1Z4E,1104
28
- quant_met-0.1.0.dist-info/RECORD,,
24
+ quant_met-0.1.2.dist-info/METADATA,sha256=37Oxefcn3lKZglfFCUixUd50OhBUaT2uv0KHGoB31nE,1837
25
+ quant_met-0.1.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
26
+ quant_met-0.1.2.dist-info/entry_points.txt,sha256=1Al3Kt-cMeQxwMp84ZSNL0qFwlbOVBu1o8A19MH8lEU,48
27
+ quant_met-0.1.2.dist-info/licenses/LICENSE.txt,sha256=QO_duPQihSJlaxSLxPAXo52X3esROP5wBkhxqBd1Z4E,1104
28
+ quant_met-0.1.2.dist-info/RECORD,,