src.update_list#
Functions#
|
Generates a list of integers from 1 to the specified length, saves it as a CSV file, and returns the output file path. Used to update timeslice and daytype. |
Module Contents#
- src.update_list.new_list(length: int, output_file: str | pathlib.Path)[source]#
Generates a list of integers from 1 to the specified length, saves it as a CSV file, and returns the output file path. Used to update timeslice and daytype.
- Parameters:
length (int) -- The number of integers to include in the list.
output_file (str) -- The file path where the CSV will be saved.
- Returns:
The path to the output CSV file.
- Return type:
str
The generated CSV will contain a single column named 'VALUE' with integers from 1 to 'length' (inclusive).