Skip to content

Commit

Permalink
Merge pull request #6 from brisvag/fix/relion3.0
Browse files Browse the repository at this point in the history
relion 3.0 starfiles do not use optics groups
  • Loading branch information
brisvag authored Mar 1, 2023
2 parents 0f911ef + 72ccdf6 commit fc84134
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cryohub/writing/star.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ def write_star(particles, file_path, version="4.0", overwrite=False):
features = particles.drop(columns=POSESET_REDUNDANT_HEADERS, errors="ignore")
df = pd.concat([df, features], axis=1)

# split out optics group if present
if Relion.OPTICS_GROUP_HEADER in particles.columns:
# split out optics group if present (and version > 3.0)
if version != "3.0" and Relion.OPTICS_GROUP_HEADER in particles.columns:
optics_headers = [
h for h in Relion.POSSIBLE_OPTICS_GROUP_HEADERS if h in particles.columns
]
Expand Down

0 comments on commit fc84134

Please sign in to comment.