Commit 14de95477b3824b0569b3239630ccb4502ea5777
1 parent
4a53fe13
Exists in
master
and in
67 other branches
Resolving the problem with numeric precision error in progress when loading dicom files
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
invesalius/data/vtk_utils.py
| ... | ... | @@ -80,7 +80,7 @@ def ShowProgress(number_of_filters = 1, |
| 80 | 80 | ps.Publisher().sendMessage('Update status in GUI', |
| 81 | 81 | (progress[0], label)) |
| 82 | 82 | else: |
| 83 | - if (int(progress[0]) == 99): | |
| 83 | + if (progress[0] >= 99.999): | |
| 84 | 84 | progress[0] = 100 |
| 85 | 85 | |
| 86 | 86 | if not(dlg.Update(progress[0],label)): | ... | ... |