Skip to content

Commit

Permalink
Fixed a compatibility issue with latest version of starfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillawme committed Oct 30, 2021
1 parent e9ed2fa commit 3d51ea1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion countparticles.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

def load_particles(starfile):
"""Load rlnClassNumber column from a run_data.star file."""
star_data = star.open(starfile)
star_data = star.read(starfile)
particles = star_data['particles']['rlnClassNumber']
return particles

Expand Down

0 comments on commit 3d51ea1

Please sign in to comment.