***
Wartungsfenster jeden ersten Mittwoch vormittag im Monat
***
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
jackknife
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
E138 Institute of Solid State Physics
E138-01 Computational Materials Science
Software
jackknife
Commits
871db35c
Commit
871db35c
authored
5 years ago
by
Patrick Kappl
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
adga.py
+8
-1
8 additions, 1 deletion
adga.py
with
8 additions
and
1 deletion
adga.py
+
8
−
1
View file @
871db35c
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment