Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
oierlauzi committed Dec 13, 2023
1 parent a917506 commit a5b4f30
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions xmipp3/convert/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -1675,13 +1675,13 @@ def writeMovieMd(movie, outXmd, f1, fN, useAlignment=False, eerFrames=40):
lastFrame = frames

if isEer:
firstFrame = (firstFrame - 1) // eerFrames + 1
lastFrame = (lastFrame - 1) // eerFrames + 1
frameIndex = (frameIndex - 1) // eerFrames + 1
firstFrame = 1 # TODO determine
lastFrame = eerFrames
frameIndex = 1 # TODO determine

if f1 < firstFrame or fN > lastFrame:
raise Exception("Frame range could not be greater"
" than the movie one.")
raise Exception(f"Frame range [{f1}-{fN}] could not be greater"
f" than the movie one [{firstFrame}-{lastFrame}].")

ih = ImageHandler()

Expand Down

0 comments on commit a5b4f30

Please sign in to comment.