Skip to content

Commit

Permalink
Fix BATCH dtype from I to B
Browse files Browse the repository at this point in the history
  • Loading branch information
Egor Marin committed Feb 12, 2021
1 parent 9741eea commit 6ba9d5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions reciprocalspaceship/io/crystfel.py
Original file line number Diff line number Diff line change
@@ -211,14 +211,14 @@ def read_crystfel(streamfile) -> DataSet:
# set mtztypes as in precognition.py
# hkl -- H
# I, sigmaI -- J, Q
# BATCH -- I
# BATCH -- B
# s1{x,y,z} -- R
# ewald_offset -- R
names = [
'H', 'K', 'L', 'I', 'sigmaI', 'BATCH', 's1x', 's1y', 's1z',
'ewald_offset'
]
mtztypes = ["H", "H", "H", "J", "Q", "I", "R", "R", "R", "R"]
mtztypes = ["H", "H", "H", "J", "Q", "B", "R", "R", "R", "R"]
dataset = DataSet()
for (k, v), mtztype in zip(df.items(), mtztypes):
dataset[k] = v.astype(mtztype)

0 comments on commit 6ba9d5e

Please sign in to comment.