Skip to content

Commit

Permalink
fix current
Browse files Browse the repository at this point in the history
  • Loading branch information
ilkilic committed Jan 15, 2024
1 parent 82a6f51 commit 3f8679b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bluepyefe/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,12 +208,12 @@ def csv_lccr_reader(in_data):
in_data (dict): of the format
{
'filepath': "./XXX.txt",
'dt': 1
'dt': 1,
'ton': 2000,
'toff': 2500,
'ljp': 14.0,
'amplitudes': [10 -10 20 -20 30 -30 40 -40 50 -50],
'hypamp': -0.2
'hypamp': -0.2,
'remove_last_100ms': True,
'v_unit': 'mV',
't_unit': 'ms',
Expand Down Expand Up @@ -265,8 +265,8 @@ def csv_lccr_reader(in_data):
for amplitude, voltage in zip(amplitudes, voltages):
current = numpy.zeros_like(voltage)
ion, ioff = int(ton / dt), int(toff / dt)
current[ion:ioff] = amplitude

current[:] = hypamp
current[ion:ioff] = [amplitude + hypamp]
trace_data = {
"filename": os.path.basename(in_data['filepath']),
"current": current,
Expand Down

0 comments on commit 3f8679b

Please sign in to comment.