Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions hide/load_heka_python/readers/stim_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,9 +210,9 @@ def get_inc_or_dec(self):
increasing_or_decreasing = "increasing"

elif self.voltage_increment_mode in ["ModeDec"]:
raise Expection("Test Negative")
raise Exception("Test Negative")
else:
raise Expection("voltage increment mode not recognised")
raise Exception("voltage increment mode not recognised")

return increasing_or_decreasing

Expand All @@ -234,10 +234,10 @@ def ramp(self, sweep_idx, start_voltage):
- the first sample is not 0 but 0 + one step along the ramp. see test_load_heka.py TestSeries() for details
"""
if self.delta_v_increment != 0:
raise Expection("increment with ramp has not been tested")
raise Exception("increment with ramp has not been tested")

if self.voltage_idx == 1: # if ramp is used but Voltage mode is holding it will be flat
raise Expection("ramp with voltage idx 1 has not been tested")
raise Exception("ramp with voltage idx 1 has not been tested")
self.voltage = 0
return self.block(0)

Expand All @@ -255,7 +255,7 @@ def handle_holding(self, data):

def run_checks(self):
if self.type not in ["SegmentConstant", "SegmentRamp", "SegmentContinuous"] or self.voltage_increment_mode != "ModeInc":
raise Expection("Stimulation Type {0} Not Supported".format(self.type))
raise Exception("Stimulation Type {0} Not Supported".format(self.type))

assert self.voltage_idx in [0, 1], "Only Voltage number and Holding are supported "

Expand Down