Skip to content

Commit

Permalink
Fix f=savig format to resolve low currents!
Browse files Browse the repository at this point in the history
  • Loading branch information
jrafolsr committed Nov 10, 2022
1 parent fe739a9 commit 214bfbb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ivl_logger/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ def run(self, value, runtime = np.inf, dt = 0.25, interrupt_measurement = True,
start = False

with open(filename,'a') as f:
f.write(('{:^5d}\t' +5*'{:^10.6f}\t' + '\n').format(i,etime, mcurrent, mvoltage,ttime, m_phvoltage))
f.write(('{:^5d}\t' +5*'{:^10.6e}\t' + '\n').format(i,etime, mcurrent, mvoltage,ttime, m_phvoltage))

i += 1

Expand Down
2 changes: 1 addition & 1 deletion ivlogger/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def run(self, value, runtime = np.inf, dt = 0.25, interrupt_measurement = True,
external_value = float(f.read())

with open(filename,'a') as f:
f.write(('{:^5d}\t' +5*'{:^10.6f}\t' + '\n').format(i,etime, mcurrent, mvoltage,ttime, external_value))
f.write(('{:^5d}\t' +5*'{:^10.6e}\t' + '\n').format(i,etime, mcurrent, mvoltage,ttime, external_value))

i += 1

Expand Down

0 comments on commit 214bfbb

Please sign in to comment.