data_hacks icon indicating copy to clipboard operation
data_hacks copied to clipboard

Allow histogram.py and other scripts to be imported/used as python modules

Open bw2 opened this issue 9 years ago • 3 comments

Hi, I'd like to generate histograms to standard out in my python script, and currently have to do os.system("echo '%s' | historgram.py" % "\n".join(values))

It would be great if I could instead do

from data_stacks import histogram
histogram.histogram(values)

bw2 avatar Jul 06 '16 22:07 bw2

I'd like to have that too ... I don't think it would be too hard to make a pull request for that I should do that.

bsergean avatar Aug 21 '16 01:08 bsergean

You should check out #41, it's pretty handy.

pylipp avatar Feb 21 '17 21:02 pylipp

Thanks for referring the PR. I forgot to mention this issue from that PR.

jkawamoto avatar Feb 22 '17 11:02 jkawamoto