Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
dolfin_dic
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
GitLab upgrade completed. Current version is 17.8.2.
Show more breadcrumbs
ALVAREZ BARRIENTOS Felipe
dolfin_dic
Commits
fde81723
Commit
fde81723
authored
5 years ago
by
Martin Genet
Browse files
Options
Downloads
Patches
Plain Diff
Use __del__ instead of close
parent
522eed10
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
ImageIterator.py
+1
-1
1 addition, 1 deletion
ImageIterator.py
NonlinearSolver.py
+1
-1
1 addition, 1 deletion
NonlinearSolver.py
Problem_ImageRegistration.py
+1
-1
1 addition, 1 deletion
Problem_ImageRegistration.py
with
3 additions
and
3 deletions
ImageIterator.py
+
1
−
1
View file @
fde81723
...
...
@@ -187,7 +187,7 @@ class ImageIterator():
self
.
printer
.
dec
()
self
.
printer
.
print_str
(
"
Plotting QOI…
"
)
qoi_printer
.
close
()
qoi_printer
.
__del__
()
#MG20190702: Not needed, right?
commandline
=
"
gnuplot -e
\"
set terminal pdf;
"
commandline
+=
"
set output
'"
+
qoi_filebasename
+
"
.pdf
'
;
"
commandline
+=
"
set grid;
"
...
...
This diff is collapsed.
Click to expand it.
NonlinearSolver.py
+
1
−
1
View file @
fde81723
...
...
@@ -154,7 +154,7 @@ class NonlinearSolver():
self
.
printer
.
dec
()
if
(
self
.
write_iterations
):
self
.
frame_printer
.
close
()
self
.
frame_printer
.
__del__
()
#MG20190702: Not needed, right?
commandline
=
"
gnuplot -e
\"
set terminal pdf noenhanced;
"
commandline
+=
"
set output
'"
+
self
.
frame_filebasename
+
"
.pdf
'
;
"
commandline
+=
"
set key box textcolor variable;
"
...
...
This diff is collapsed.
Click to expand it.
Problem_ImageRegistration.py
+
1
−
1
View file @
fde81723
...
...
@@ -47,7 +47,7 @@ class ImageRegistrationProblem(Problem):
def
__del__
(
self
):
self
.
printer
.
close
()
self
.
printer
.
__del__
()
#MG20190702: Not needed, right?
...
...
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