@@ -209,7 +209,7 @@ def add_nml_channel_to_nml_cell_file(
209209
210210def get_channel_ion (channel , custom_channel_ion = None ):
211211 """Get ion name given channel name.
212-
212+
213213 Arguments:
214214 channel (str): ion channel (e.g. StochKv)
215215 custom_channel_ion (dict): dict mapping channel to ion
@@ -218,14 +218,16 @@ def get_channel_ion(channel, custom_channel_ion=None):
218218 if ion is None and custom_channel_ion is not None :
219219 ion = custom_channel_ion .get (channel , None )
220220 if ion is None :
221- raise KeyError (f"Ion not found for channel { channel } ."
222- " Please set channel-ion mapping using custom_channel_ion." )
221+ raise KeyError (
222+ f"Ion not found for channel { channel } ."
223+ " Please set channel-ion mapping using custom_channel_ion."
224+ )
223225 return ion
224226
225227
226228def get_erev (ion , custom_ion_erevs = None ):
227229 """Get reversal potential as str given ion name.
228-
230+
229231 Arguments:
230232 ion (str): ion name (e.g. na)
231233 custom_ion_erevs (dict): dict mapping ion to erev (reversal potential)
@@ -234,8 +236,10 @@ def get_erev(ion, custom_ion_erevs=None):
234236 if erev is None and custom_ion_erevs is not None :
235237 erev = custom_ion_erevs .get (ion , None )
236238 if erev is None :
237- raise KeyError (f"Reversal potentail not found for ion { ion } ."
238- " Please set ion-erev mapping using custom_ion_erevs." )
239+ raise KeyError (
240+ f"Reversal potentail not found for ion { ion } ."
241+ " Please set ion-erev mapping using custom_ion_erevs."
242+ )
239243 return erev
240244
241245
0 commit comments