Hi Sarah! Thanks so much for posting into this discussion group. This
feature can definitely be added in some form or another. The only real
question is how the interface should work. Your idea was: "Maybe it
would be possible to sort the files with the same name into folders
and then have the macro add all the files in each folder and integrate
them. Maybe this is too difficult to be accomplished, but would be a
great feature for me."
In principle, all the steps like making new folders and moving files
around shouldn't be too hard for me to code up. It is the type of
thing that computers are really good at automating. The only thing
that I don't really understand is what exactly you mean by "files with
the same name". The problem I feel is that everybody who will want to
use this feature will have all their files having the same name BUT
with the names the same in slightly different ways. Is the any real
naming convention for diffraction data that you want to add together
later? So it seems like it would be hard to pick a convention that
even most people would agree upon. And it would really suck if
somebody had to rename all of their files just to use my program
because their convention was different.
Another possibility might be to make the user move all of the files
into subfolders manually and then have the user tell the macro the
folder name with all the subfolders inside of it. The program would
then add all of the files in one subfolder, do the analysis of the
combined image, and repeat for each of the subfolders. There would be
no real ambiguity to this approach because if several files were all
in the same subfolder, they would always get added together regardless
of their names. This would seem to be less complicated for the user,
but it would have the downside of requiring the user to manually
create a bunch of folders and then sort their data into them.
I am not convinced either way and there is probably an even better way
that neither of use have though of. Do you have any real preference?
Also, how many files are you dealing with? How long would it take you
to sort all your files into subfolders?
Josh