Closed NMoksnes closed 4 years ago
If you develop a command line interface (CLI) using argparse then you'd want to pass in the path to the folder of CSV files, and potentially another configuration file.
In any case, you will also want a main function which the CLI calls which takes the filepath as an argument.
Ok. Then I understand. Thanks!
Something like:
def main(filepath, configuration_file):
"""Generate spatially disaggregated values"""
# Read input data
with open(os.path.join(filepath, "data.csv", 'r') as datafile:
data = datafile.readlines()
<...>
@willu47 I didn't understand exactly how you wanted the input data folder to be called? Was it from the command line as an argument?