diff --git a/bluepyefe/reader.py b/bluepyefe/reader.py index 5dd2c6a..eef29d8 100644 --- a/bluepyefe/reader.py +++ b/bluepyefe/reader.py @@ -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', @@ -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,