*** Wartungsfenster jeden ersten Mittwoch vormittag im Monat ***

Skip to content
Snippets Groups Projects
Commit 871db35c authored by Patrick Kappl's avatar Patrick Kappl
Browse files

Delete auxiliary files after ADGA calculation

parent 33a130b6
No related branches found
No related tags found
No related merge requests found
Pipeline #4370 passed with stages
in 1 minute and 38 seconds
...@@ -31,7 +31,6 @@ class Adga(object): ...@@ -31,7 +31,6 @@ class Adga(object):
self._executable = adga_root_path + "/bin/abinitiodga" self._executable = adga_root_path + "/bin/abinitiodga"
self._symmetrize_script = adga_root_path + "/scripts/symmetrize.py" self._symmetrize_script = adga_root_path + "/scripts/symmetrize.py"
# TODO: Delete auxiliary files when finished
# Generate a unique id for the names of the auxiliary files. # Generate a unique id for the names of the auxiliary files.
# Together with a unique copy of the config file, this allows to # Together with a unique copy of the config file, this allows to
# run multiple jackknives at once. # run multiple jackknives at once.
...@@ -75,6 +74,14 @@ class Adga(object): ...@@ -75,6 +74,14 @@ class Adga(object):
file containing the 2-particle Green's function!""") file containing the 2-particle Green's function!""")
raise raise
def __del__(self):
"""Delete all auxiliary files created during the calculation."""
os.remove(self._output_file_name)
os.remove(self._g4iw_file.filename)
os.remove(self._symmetry_file_name)
os.remove(self._config_file_name)
@property @property
def n_qmc_measurements(self): def n_qmc_measurements(self):
return self._n_qmc_measurements return self._n_qmc_measurements
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment