diff --git a/src/MEArec/generators/recordinggenerator.py b/src/MEArec/generators/recordinggenerator.py index aaedc8b..02d091f 100644 --- a/src/MEArec/generators/recordinggenerator.py +++ b/src/MEArec/generators/recordinggenerator.py @@ -729,6 +729,8 @@ def generate_recordings( gain = 1.0 / gain_to_int else: gain_to_int = 1.0 / gain + else: + gain = 1.0 # Necessary to output the correct gain used else: if tempgen is not None: if celltype_params is not None: @@ -867,6 +869,8 @@ def generate_recordings( gain = 1.0 / gain_to_int else: gain_to_int = 1.0 / gain + else: + gain = 1.0 # Necessary to output the correct gain used if gain_to_int is not None: if verbose_1: