#                
if __name__ == '__main__':

    d_arguments = docopt(__doc__)

    from src.calc import BigData
    q = BigData(d_arguments=d_arguments)

    mode = 0
    if d_arguments["e"]:
        mode += 1
    if d_arguments["ae"]:
        mode += 2
    if not mode:
        mode = 3

    if not d_arguments["--plot"]:
      from src.print_util import print_energie_recap
      print_energie_recap(q,order_by=d_arguments["--order_by"],mode=mode)

    if d_arguments["plotly"]:
      from src.print_util import print_plotly
      print_plotly(q)

    elif d_arguments["gnuplot"]:
      from src.print_util import print_table_gnuplot
      print_table_gnuplot(q)

    elif d_arguments["vladimir"]:
      from src.print_util import print_table_vladimir
      print_table_vladimir(q)
示例#2
0
    table_body = format_table(header_name, table_body)

    #               ___
    #  /\   _  _ o o |  _. |_  |  _
    # /--\ _> (_ | | | (_| |_) | (/_
    #

    if not (arguments["--gnuplot"] or arguments["--plotly"]):
        print_table_energy(run_info, table_body, header_name, header_unit)

    #  __
    # /__ ._      ._  |  _ _|_
    # \_| | | |_| |_) | (_) |_
    #             |
    elif arguments["--gnuplot"]:
        print_table_gnuplot(table_body, header_name)

    #  _
    # |_) |  _ _|_   |
    # |   | (_) |_ o | \/
    #                  /
    elif arguments["--plotly"]:

        try:
            import plotly.plotly as py
            from plotly.graph_objs import Layout, ErrorY, XAxis, YAxis, Legend
            from plotly.graph_objs import Figure, Scatter, Data
        except:
            print "you need plotly to be installed and configure"
            print "https://plot.ly/python/getting-started/"
            sys.exit(1)
示例#3
0
#
if __name__ == '__main__':

    d_arguments = docopt(__doc__)

    from src.calc import BigData
    q = BigData(d_arguments=d_arguments)

    mode = 0
    if d_arguments["e"]:
        mode += 1
    if d_arguments["ae"]:
        mode += 2
    if not mode:
        mode = 3

    if not d_arguments["--plot"]:
        from src.print_util import print_energie_recap
        print_energie_recap(q, order_by=d_arguments["--order_by"], mode=mode)

    if d_arguments["plotly"]:
        from src.print_util import print_plotly
        print_plotly(q)

    elif d_arguments["gnuplot"]:
        from src.print_util import print_table_gnuplot
        print_table_gnuplot(q)

    elif d_arguments["vladimir"]:
        from src.print_util import print_table_vladimir
        print_table_vladimir(q)