Skip to content

Commit

Permalink
Update scripts/Modules/agc_lib.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ximk authored Dec 26, 2023
1 parent 079ffd2 commit e2da46f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions scripts/Modules/agc_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,17 +198,17 @@ def frame_to_file(filename, readid):
def get_framedata(readid):
return FrameData(get_addr(readid))

def timerdata_to_file(filename, rid):
timerdata = TimerData(readid = rid)
def timerdata_to_file(filename, read_id):
timerdata = TimerData(read_id)
file = open(filename, 'a')
if file is None :
gui.add_osd_message("Error : could not create the data file")
else :
file.write(str(timerdata))
file.close()

def get_timerdata(rid):
return TimerData(readid = rid)
def get_timerdata(read_id):
return TimerData(read_id)

def file_to_framedatalist(filename):
datalist = []
Expand All @@ -234,9 +234,9 @@ def file_to_framedatalist(filename):
return metadata, datalist, timerdata, rkg_metadata


def framedatalist_to_file(filename, datalist, rid):
metadata = get_metadata(rid)
timerdata = get_timerdata(rid)
def framedatalist_to_file(filename, datalist, read_id):
metadata = get_metadata(read_id)
timerdata = get_timerdata(read_id)
file = open(filename, 'w')
if file is None :
gui.add_osd_message("Error : could not create the data file")
Expand Down

0 comments on commit e2da46f

Please sign in to comment.