def __init__(self, fp, observer_code, *, delimiter=',', date_format='JD',
                 obstype='Visual'):
        """
        Creates the writer which will write observations into the file-like
        object given in first parameter. The only other required parameter
        is the official AAVSO-assigned observer code.

        :param fp: file-like object to write observations into
        :param observer_code: AAVSO observer code
        :param delimiter: field delimiter (set as DELIM header)
        :param date_format: observation date format (one of *JD* or *Excel*)
        :param obstype: observation type (*Visual* or *PTG*)
        """
        self.observer_code = observer_code
        self.date_format = date_format
        self.obstype = obstype
        fp.write('#TYPE=Visual\n')
        fp.write('#OBSCODE=%s\n' % observer_code)
        fp.write("#SOFTWARE=pyaavso %s\n" % pyaavso.get_version())
        fp.write("#DELIM=%s\n" % delimiter)
        fp.write("#DATE=%s\n" % date_format.upper())
        fp.write("#OBSTYPE=%s\n" % obstype)
        self.writer = csv.writer(fp, delimiter=delimiter)
def __init__ ( self , fp , observer_code , * , delimiter = ',' , date_format = 'JD' , obstype = 'Visual' ) : self . observer_code = observer_code self . date_format = date_format self . obstype = obstype fp . write ( '#TYPE=Visual\n' ) fp . write ( '#OBSCODE=%s\n' % observer_code ) fp . write ( "#SOFTWARE=pyaavso %s\n" % pyaavso . get_version ( ) ) fp . write ( "#DELIM=%s\n" % delimiter ) fp . write ( "#DATE=%s\n" % date_format . upper ( ) ) fp . write ( "#OBSTYPE=%s\n" % obstype ) self . writer = csv . writer ( fp , delimiter = delimiter )
Creates the writer which will write observations into the file-like
        object given in first parameter. The only other required parameter
        is the official AAVSO-assigned observer code.

        :param fp: file-like object to write observations into
        :param observer_code: AAVSO observer code
        :param delimiter: field delimiter (set as DELIM header)
        :param date_format: observation date format (one of *JD* or *Excel*)
        :param obstype: observation type (*Visual* or *PTG*)