pysilcam/__main__.py
def writeCSV(datafilename, stats_all):
    '''
    Writes particle stats into the csv ouput file

    Args:
        datafilename (str):     filame prefix for -STATS.csv file that may or may not include a path
        stats_all (DataFrame):  stats dataframe returned from processImage()
    '''

    # create or append particle statistics to output file
    # if the output file does not already exist, create it
    # otherwise data will be appended
    # @todo accidentally appending to an existing file could be dangerous
    # because data will be duplicated (and concentrations would therefore
    # double) GUI promts user regarding this - directly-run functions are more dangerous.
    if not os.path.isfile(datafilename + '-STATS.csv'):
        stats_all.to_csv(datafilename +
                         '-STATS.csv', index_label='particle index')
    else:
        stats_all.to_csv(datafilename + '-STATS.csv',
                         mode='a', header=False)

    Writes particle stats into the csv ouput file

    Args:
        datafilename (str):     filame prefix for -STATS.csv file that may or may not include a path
        stats_all (DataFrame):  stats dataframe returned from processImage()
    
Writes particle stats into the csv ouput file
Writes particle stats into the csv ouput file
def writeCSV(datafilename, stats_all):
    if not os.path.isfile(datafilename + '-STATS.csv'):
        stats_all.to_csv(datafilename +
                         '-STATS.csv', index_label='particle index')
    else:
        stats_all.to_csv(datafilename + '-STATS.csv',
                         mode='a', header=False)
def writeCSV ( datafilename , stats_all ) : if not os . path . isfile ( datafilename + '-STATS.csv' ) : stats_all . to_csv ( datafilename + '-STATS.csv' , index_label = 'particle index' ) else : stats_all . to_csv ( datafilename + '-STATS.csv' , mode = 'a' , header = False )
Writes particle stats into the csv ouput file
Writes particle stats into the csv ouput file
'''
    Writes particle stats into the csv ouput file

    Args:
        datafilename (str):     filame prefix for -STATS.csv file that may or may not include a path
        stats_all (DataFrame):  stats dataframe returned from processImage()
    ''' # create or append particle statistics to output file # if the output file does not already exist, create it # otherwise data will be appended # @todo accidentally appending to an existing file could be dangerous # because data will be duplicated (and concentrations would therefore # double) GUI promts user regarding this - directly-run functions are more dangerous.
datafilename
filame prefix for -STATS.csv file that may or may not include a path
filame prefix for - STATS . csv file that may or may not include a path
stats_all
stats dataframe returned from processImage()
stats dataframe returned from processImage ()