family_camp/schedule/deep.py
def dump_to_dir(self, num_timetables=10):
        """Write details of the current hall to the output directory."""

        dt = datetime.strftime(datetime.now(), "%Y_%m_%d_%H_%M")

        for i in range(0, min(num_timetables, len(self))):
            filename = "{} - {}".format(dt, i)

            with open(os.path.join(self.dest, filename + "_summary.txt"), "w") as summary:
                timetable = Individual(self[i], self.campers, self.sessions,
                                       summary_file=summary)

                with open(os.path.join(self.dest, filename + "_timetable.txt"), 'w') as f:
                    f.write(print_individual(timetable, self.campers))

                with open(os.path.join(self.dest, filename + ".csv"), 'w') as f:
                    f.write(timetable.export_cvs())
Write details of the current hall to the output directory.
Write details of the current hall to the output directory.
Write details of the current hall to the output directory .
def dump_to_dir(self, num_timetables=10):
        dt = datetime.strftime(datetime.now(), "%Y_%m_%d_%H_%M")
        for i in range(0, min(num_timetables, len(self))):
            filename = "{} - {}".format(dt, i)
            with open(os.path.join(self.dest, filename + "_summary.txt"), "w") as summary:
                timetable = Individual(self[i], self.campers, self.sessions,
                                       summary_file=summary)
                with open(os.path.join(self.dest, filename + "_timetable.txt"), 'w') as f:
                    f.write(print_individual(timetable, self.campers))
                with open(os.path.join(self.dest, filename + ".csv"), 'w') as f:
                    f.write(timetable.export_cvs())
def dump_to_dir ( self , num_timetables = 10 ) : dt = datetime . strftime ( datetime . now ( ) , "%Y_%m_%d_%H_%M" ) for i in range ( 0 , min ( num_timetables , len ( self ) ) ) : filename = "{} - {}" . format ( dt , i ) with open ( os . path . join ( self . dest , filename + "_summary.txt" ) , "w" ) as summary : timetable = Individual ( self [ i ] , self . campers , self . sessions , summary_file = summary ) with open ( os . path . join ( self . dest , filename + "_timetable.txt" ) , 'w' ) as f : f . write ( print_individual ( timetable , self . campers ) ) with open ( os . path . join ( self . dest , filename + ".csv" ) , 'w' ) as f : f . write ( timetable . export_cvs ( ) )
Write details of the current hall to the output directory.
Write details of the current hall to the output directory .
"""Write details of the current hall to the output directory."""
self
num_timetables