Closed Baharis closed 1 year ago
@irisdyoung , @dwpaley , @nksauter , @phyy-nx , @vganapati Little PR suggestion concerning our today's discussion.
As suggested by @phyy-nx , reading from the same or different directories should be decided automatically and not via a dedicated phil parameter. Closing this PR and creating a new branch + PR to suggest this functionality.
By default,
cctbx.xfel.merge
requires thatinput
expts and refls reside in the same directory. Whether theinput
is specified using directory paths or file globs, the currentfile_lister
matches expts and refls in the following way:In my particular case, I need
cctbx.xfel.merge
to read input expts and refls from two different directories. To this aim, I added a phil parameterinput.match_directories
and implemented a secondfile_lister
matching method, which does not require the files to be in the same directory BUT requires the filenames to be unique across all input directories:I have already implemented this feature here for my own use, but I would like to ask if this functionality is potentially useful for anyone other than me. Or should we refrain from merging this change to master since the case is too specific?