From 93a2dc8cefd51985a000b7825a1155771dc374c6 Mon Sep 17 00:00:00 2001 From: Beale John Henry Date: Wed, 22 Jan 2025 12:38:53 +0100 Subject: [PATCH] now removes '*_cut.hkl' file --- reduction_tools/make_mtz.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/reduction_tools/make_mtz.py b/reduction_tools/make_mtz.py index bb7a9f4..0f4eaa0 100644 --- a/reduction_tools/make_mtz.py +++ b/reduction_tools/make_mtz.py @@ -162,6 +162,13 @@ def main( hklin_file, hklout_file, mtzout, project, crystal, dataset, cell, spac make_mtz( hklout_file, mtzout, project, crystal, dataset, cell, spacegroup, residues, res_range ) print( "done" ) + # remove *cut.hkl out + cwd = os.getcwd() + files = os.listdir( cwd ) + for file in files: + if file.endswith( "cut.hkl" ): + os.remove( file ) + def list_of_floats(arg): return list(map(float, arg.split(',')))