Project

General

Profile

Feature #675

"Convert to human readable" macro

Added by Rogers, Chris almost 12 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Crazy Ideas
Target version:
Start date:
17 August 2011
Due date:
% Done:

100%

Estimated time:
Workflow:

Description

Need a macro to convert json output to human readable form. Should be only few lines of code.

#1

Updated by Rogers, Chris over 11 years ago

  • Assignee changed from Rogers, Chris to Kyberd, Paul

Paul, would you like to code review this? Sort of something you (and others) have requested.

The code is in lp:~chris-rogers/maus/devel/

https://code.launchpad.net/~chris-rogers/maus/devel

Files:

$MAUS_ROOT_DIR/bin/utilities/json_browser.py
$MAUS_ROOT_DIR/tests/integration/test_utilities/test_json_browser.py

Nb: I had a query that I wasn't sure about, which needs a perspective from user. We have a common "run control" thing like the old datacards, I've been trying to make sure everyone uses the common datacards stuff for controlling their code. For things like this, that are pretty much stand alone applications, I wasn't sure whether it would be better to have a few command line arguments defined in the code (as I've done here).

  • In the first instance, we get a common interface to all executables but there are hundreds of control parameters that are not relevant to the application.
  • In the second instance, we get some executables that have a completely different interface, that may jar with the rest of the code - especially if they start duplicating existing run control variables.

Thoughts, comments appreciated...

#2

Updated by Tunnell, Christopher over 11 years ago

bump or close?

#3

Updated by Rogers, Chris over 11 years ago

  • Category set to Crazy Ideas
  • Status changed from Open to Closed
  • % Done changed from 0 to 100

Done - bin/utilities/json_browser.py

#4

Updated by Rogers, Chris over 11 years ago

  • Target version changed from Future MAUS release to MAUS-v0.0.8

Also available in: Atom PDF