Skip to content

Commit

Permalink
Merge pull request #263 from scipion-em/hotfix
Browse files Browse the repository at this point in the history
hotfix for missing ctf attrs
  • Loading branch information
azazellochg authored Dec 25, 2020
2 parents 1928866 + f9e2f08 commit e8fd9a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion relion/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

from .constants import *

__version__ = '3.0.0b7'
__version__ = '3.0.0b8'
_logo = "relion_logo.png"
_references = ['Scheres2012a', 'Scheres2012b', 'Kimanius2016', 'Zivanov2018']

Expand Down
4 changes: 2 additions & 2 deletions relion/convert/convert31.py
Original file line number Diff line number Diff line change
Expand Up @@ -574,8 +574,8 @@ def rowToCtf(row, ctf):
ctf.setDefocusU(row.rlnDefocusU)
ctf.setDefocusV(row.rlnDefocusV)
ctf.setDefocusAngle(row.rlnDefocusAngle)
ctf.setResolution(row.rlnCtfMaxResolution or 0)
ctf.setFitQuality(row.rlnCtfFigureOfMerit or 0)
ctf.setResolution(row.get('rlnCtfMaxResolution', 0))
ctf.setFitQuality(row.get('rlnCtfFigureOfMerit', 0))

if getattr(row, 'rlnPhaseShift', False):
ctf.setPhaseShift(row.rlnPhaseShift)
Expand Down

0 comments on commit e8fd9a3

Please sign in to comment.