Example #1
0
def source_sink_checker():
    net = DataFixer.load("data/jdr_with_state.json")
    net.cache_props()
    print "sources"
    for source in net.sources:
        print source.state.flow
    print "sinks"
    for sink in net.sinks:
        print sink.state.flow
Example #2
0
def fixer():
    net = DataFixer.load("data/jdr_with_state.json")
    net.solve_with_state()
    net.dump("data/data_fixed_again.json")