nenupy.schedule.open_time.NenuCalendar

class nenupy.schedule.open_time.NenuCalendar(events)[source]

Bases: object

__init__(events)[source]

Methods

__init__(events)

from_csv(*csv_files)

from_ics(*ics_files)

from_xls(*xls_files)

info()

month_plot(fig_name)

write_summary_csv([path, filename])

Write a CSV file summarizing the events.

write_vcr_csv([path, add_error])

Write a CSV file from the events loaded in this NenuCalendar instance.

write_summary_csv(path='', filename='')[source]

Write a CSV file summarizing the events.

Parameters:
  • path (str, optional) – The output path to store the summary, by default “”

  • filename (str, optional) – The name of the output CSV (should end with .csv), no path name, by default “” (i.e. ‘calendar_summary.csv’)

write_vcr_csv(path='', add_error=True)[source]

Write a CSV file from the events loaded in this NenuCalendar instance. The CSV format is such that it can be imported to book KP slots in the VCR.

Parameters:
  • path (str, optional) – The output path to store the booking file, by default “”

  • add_error (bool, optional) – Duplicater the last line so that it results in an error (i.e., to check that this is the last remaining error while importing the data to the VCR), by default True