Viewing a response to: @lemouth/re-effofex-re-lemouth-re-effofex-re-effofex-re-lemouth-particle-physics-utopian-io-objects-isolation-histogramming-and-a-first-task-request-20180628t054840334z
Pull request is live! Easiest way to get a feel for it is , from the HistoGen directory: `python src\HistoGen.py test\data\example_histos.saf --t` You can get help with: `python src\HistoGen.py -h` (or by asking me ;) ) ``` usage: HistoGen [-h] [-o OUTDIR] [--verbose] [-t] [-v] infile Generate some MadAnalysis5 histograms from an associated SAF file. positional arguments: infile Path to a a valid SAF file describing histogram data optional arguments: -h, --help show this help message and exit -o OUTDIR, --outdir OUTDIR Location in which to store generated histograms ((default is current dir) --verbose Provide lots of output during run (default is silent) -t, --terse Provide some output during run (default is silent) -v, --version show program's version number and exit ``` looking at `HistoGen.py` should also give you a feel for how this can be used a code module instead of as a CLI tool. Should get output as below:    
author | effofex |
---|---|
permlink | re-lemouth-re-effofex-re-lemouth-re-effofex-re-effofex-re-lemouth-particle-physics-utopian-io-objects-isolation-histogramming-and-a-first-task-request-20180629t034551633z |
category | utopian-io |
json_metadata | {"tags":["utopian-io"],"image":["https://cdn.steemitimages.com/DQmdRDa4y4gzKJHuGQs8dvaz5GNmYY9tKRFCbtQV2KoJWa3/Fig_1.png","https://cdn.steemitimages.com/DQmV7mRrf5XAzSv1xfDy7xv7Ya5L2vNgY7AsyPWtgRtNLMq/Fig_2.png","https://cdn.steemitimages.com/DQmUd91Lc6aR9Kh17cqQjXYZBDK46GUvJjdDiEcbeosiFCW/Fig_3.png","https://cdn.steemitimages.com/DQmRmK6UCiQXcENs7YwCfVxEZuJVpFXWW4YcmEfFgL6vWtN/Fig_4.png"],"app":"steemit/0.1"} |
created | 2018-06-29 03:45:48 |
last_update | 2018-06-29 03:45:48 |
depth | 6 |
children | 4 |
last_payout | 2018-07-06 03:45:48 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 1,461 |
author_reputation | 14,429,105,750,792 |
root_title | "Particle physics @ utopian-io - Objects isolation, histogramming and a first task request" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 62,691,379 |
net_rshares | 0 |
Written in a Python 3 environment (3.5), external dependencies include: * matplotlib * pandas * numpy * seaborn * pytest running pytest from the `HistoGen` dir should work. Right now the unit tests simply check to see if I'm reading the SAF file correctly.
author | effofex |
---|---|
permlink | re-effofex-re-lemouth-re-effofex-re-lemouth-re-effofex-re-effofex-re-lemouth-particle-physics-utopian-io-objects-isolation-histogramming-and-a-first-task-request-20180629t034756105z |
category | utopian-io |
json_metadata | {"tags":["utopian-io"],"app":"steemit/0.1"} |
created | 2018-06-29 03:47:51 |
last_update | 2018-06-29 03:53:33 |
depth | 7 |
children | 3 |
last_payout | 2018-07-06 03:47:51 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 257 |
author_reputation | 14,429,105,750,792 |
root_title | "Particle physics @ utopian-io - Objects isolation, histogramming and a first task request" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 62,691,547 |
net_rshares | 0 |
Does it work with python 2.7? (I can't test right now.)
author | lemouth |
---|---|
permlink | re-effofex-re-effofex-re-lemouth-re-effofex-re-lemouth-re-effofex-re-effofex-re-lemouth-particle-physics-utopian-io-objects-isolation-histogramming-and-a-first-task-request-20180629t162107816z |
category | utopian-io |
json_metadata | {"tags":["utopian-io"],"app":"steemit/0.1"} |
created | 2018-06-29 16:21:09 |
last_update | 2018-06-29 16:21:09 |
depth | 8 |
children | 2 |
last_payout | 2018-07-06 16:21:09 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 55 |
author_reputation | 338,011,164,701,274 |
root_title | "Particle physics @ utopian-io - Objects isolation, histogramming and a first task request" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 62,762,146 |
net_rshares | 0 |
Not sure, probably not. It might be possible to set it it up using from future imports, but I have no experience with that.
author | effofex |
---|---|
permlink | re-lemouth-re-effofex-re-effofex-re-lemouth-re-effofex-re-lemouth-re-effofex-re-effofex-re-lemouth-particle-physics-utopian-io-objects-isolation-histogramming-and-a-first-task-request-20180629t173308636z |
category | utopian-io |
json_metadata | {"tags":["utopian-io"],"app":"steemit/0.1"} |
created | 2018-06-29 17:33:30 |
last_update | 2018-06-29 17:33:30 |
depth | 9 |
children | 1 |
last_payout | 2018-07-06 17:33:30 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 124 |
author_reputation | 14,429,105,750,792 |
root_title | "Particle physics @ utopian-io - Objects isolation, histogramming and a first task request" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 62,769,427 |
net_rshares | 0 |