#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Implements example simulation model which can be run from the command line

Arguments
=========
raininess : int
    Sets the amount of rain

"""

from argparse import ArgumentParser
from . water_supply import ExampleWaterSupplySimulation


def argparse():
    parser = ArgumentParser()
    parser.add_argument("--raininess",
                        type=int,
                        help="Sets the amount of rain")
    return parser.parse_args()


def main():
    args = argparse()
    water_supply = ExampleWaterSupplySimulation(args.raininess)
    results = water_supply.simulate()
    for key, val in results.items():
        print("{},{}".format(key, val))


if __name__ == '__main__':
    main()

#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Implements example simulation model which can be run from the command line

Arguments
=========
raininess : int
    Sets the amount of rain

"""

from argparse import ArgumentParser
from water_supply import ExampleWaterSupplySimulation


def argparse():
    parser = ArgumentParser()
    parser.add_argument("--raininess",
                        type=int,
                        help="Sets the amount of rain")
    return parser.parse_args()


def main():
    args = argparse()
    water_supply = ExampleWaterSupplySimulation(args.raininess)
    results = water_supply.simulate()
    for key, val in results.items():
        print("{},{}".format(key, val))


if __name__ == '__main__':
    main()

Revert "Used relative import for water_supply fixture"
Revert "Used relative import for water_supply fixture"

This reverts commit 8615f9c9d8a254dc6a43229e0ec8fc68ebe12e08.
