Open jrmlhermitte opened 6 years ago
interestingly, i randomly came across this piece by @danielballan : https://github.com/NSLS-II-CHX/chxtools/pull/12/files#diff-ea1e2c4c3d7aa9e134677059f594f44bR1
this may be part of the same discussion
@danielballan @afluerasu Is this still relevant to v2?
Suggestion to make a scripts folder seems make good sense to me. then it becomes easier "know" how to use the library by just looking at the directory structure; and also suggestive that if somehting doesn't work for some special case, editing the script locally would be "ok"
Good to formalize the preferred method to get away fro % run ......
@danielballan says reload
is a better practice.
So this doesn't really affect the analysis so much, generic_functions
has a mixture of purposes.
It sounds like for the generic functions, we need to agree on how to work together for common library functions. Not really a concern right now.
[ ] understand where code is going to be used (and by who/how). SDCC, beamline, one env for all, per beamline, per individual?
[ ] documentation on how to contribute so that we are all on the same page
[x] potentially to start now example of skbeam http://scikit-beam.github.io/scikit-beam/development/workflow/development_workflow.html https://github.com/scikit-beam/scikit-beam (bottom of the page on how to practice the above with skbeam)
This is in response to discussion in #8 (thanks for reminder @mrakitin ).
It seems there are two different types of
.py
files:from pyCHX.chx_generic_functions import shrink_image
%run XPCS_SAXS.py
The latter is more commonly run as a script because some flags are turned on or off. I think one example could be here.Should we make a separation between the two? I suggest we move script files in a new folder called
/scripts
.As the library is built as a lightsource2 package and we'd like to see a lot of this useful code be used by others (if @yugangzhang is okay with it :-) ) it would be nice to spend some time to think about this.
I would like to hear @yugangzhang 's opinion on this. Also, @danielballan may have better suggestions on how to do this.