Exemplo n.º 1
0
def lastSummary():
    last = lastLog()
    f = parseFile('data/' + last + '/SUM0001.FPH')

    w = open('site/summary.csv', 'w')
    w.write(f.toCSV())

    return last
Exemplo n.º 2
0
def lastSummary():
	last = lastLog()
	f = parseFile('data/' + last + '/SUM0001.FPH')

	w = open('site/summary.csv', 'w')
	w.write(f.toCSV())

	return last
Exemplo n.º 3
0
#!/usr/bin/env python2.7

# Dump a list of sleep sessions (not CPAP sessions) to stdout
#
# Fisher and Paykel CPAP .FPH file parser.
# http://sourceforge.net/apps/mediawiki/sleepyhead/index.php?title=Icon

import sys
from fph.parseFile import parseFile
from fph.summary import SummaryFile, SleepsSummary

if __name__ == "__main__":
    args = sys.argv

    if len(args) > 1 and args[1]:
        filename = args[1]

        f = parseFile(filename)
        if (not isinstance(f, SummaryFile)):
            raise 'Supplied file is not a summary file'

        print SleepsSummary(f).toCSV()

    else:
        print 'No file supplied.'
        print 'Usage: ./sleeps.py <SUM????.FPH>'
Exemplo n.º 4
0
#!/usr/bin/env python2.7

# Dump a list of sleep sessions (not CPAP sessions) to stdout
#
# Fisher and Paykel CPAP .FPH file parser.
# http://sourceforge.net/apps/mediawiki/sleepyhead/index.php?title=Icon

import sys
from fph.parseFile import parseFile
from fph.summary import SummaryFile, SleepsSummary


if __name__ == "__main__":
	args = sys.argv

	if len(args) > 1 and args[1]:
		filename = args[1];

		f = parseFile(filename)
		if (not isinstance(f, SummaryFile)):
			raise 'Supplied file is not a summary file'

		print SleepsSummary(f).toCSV()

	else:
		print 'No file supplied.'
		print 'Usage: ./sleeps.py <SUM????.FPH>'
Exemplo n.º 5
0
#!/usr/bin/env python2.7

# Dump file contents to CSV at stdout
#
# Fisher and Paykel CPAP .FPH file parser.
# http://sourceforge.net/apps/mediawiki/sleepyhead/index.php?title=Icon

import sys
from fph.parseFile import parseFile

if __name__ == "__main__":
	args = sys.argv

	if len(args) > 1 and args[1]:
		filename = args[1];

		print parseFile(filename).toCSV()

	else:
		print 'No file supplied.'
		print 'Usage: ./dumpcsv.py <file.FPH>'