aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2021-03-31 16:24:05 +0200
committerThomas White <taw@physics.org>2021-03-31 16:24:05 +0200
commit9301276365b0278b1ea4d2b515837a03aae0621a (patch)
tree768f7f69d940c788cc2150d975597bb1651de4aa /scripts
parentf374fd264c9eb0d390819418940c6aee2a33ed26 (diff)
stream2sol.py: Remove --include-pars
These are now obsolete, and the distributed version of CrystFEL will choke on them.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/stream2sol.py14
1 files changed, 1 insertions, 13 deletions
diff --git a/scripts/stream2sol.py b/scripts/stream2sol.py
index 5ae93ed7..d913b32e 100755
--- a/scripts/stream2sol.py
+++ b/scripts/stream2sol.py
@@ -29,16 +29,13 @@ class Crystal:
self.centering = None
self.unique_axis = None
self.det_shift = (None, None)
- self.profile_radius = None
- self.resolution = None
self.start_line = line
@property
def initialized(self):
return all([x is not None
for x in [*self.astar, *self.bstar, *self.cstar,
- *self.det_shift, self.profile_radius,
- self.resolution, self.lattice_type,
+ *self.det_shift, self.lattice_type,
self.centering]])
@property
@@ -69,8 +66,6 @@ class Crystal:
cs = ' '.join(['{0[0]} {0[1]} {0[2]}'.format(vec)
for vec in [self.astar, self.bstar, self.cstar]])
cs += ' {0[0]} {0[1]}'.format(self.det_shift)
- if args.include_pars: # this is a bit dirty but will become obsolete one day
- cs += ' {0} {1}'.format(self.profile_radius, self.resolution)
cs += ' ' + self.lattice_type_sym
return cs
@@ -202,17 +197,11 @@ def parse_stream(stream, sol=None, return_meta=True,
elif l.startswith('unique_axis'):
curr_cryst.unique_axis = l.split(' ')[2].rstrip('\r\n')
- elif l.startswith('profile_radius'):
- curr_cryst.profile_radius = parse_vec(l)[0]
-
elif l.startswith('predict_refine/det_shift'):
curr_cryst.det_shift = parse_vec(l)
curr_cryst.det_shift = (curr_cryst.det_shift[0] + curr_chunk.x_shift,
curr_cryst.det_shift[1] + curr_chunk.y_shift)
- elif l.startswith('diffraction_resolution_limit'):
- curr_cryst.resolution = parse_vec(l)[0]
-
elif l.startswith(BEGIN_GEOM) and not have_geom:
parsing_geom = True
@@ -270,7 +259,6 @@ def main():
parser.add_argument('--y-shift-field', type=str, help='Field in chunk for y-shift identifier', default='')
parser.add_argument('--shift-factor', type=float,
help='Pre-factor for shifts, typically the pixel size in mm if the shifts are in pixel', default=1)
- parser.add_argument('--include-pars', help='Include profile radius and resolution estimate into sol file', action='store_true')
args = parser.parse_args()