4.2.1.2. DepolarizationBlockTest

class DepolarizationBlockTest(observation={'Ith_std': None, 'Veq_std': None, 'mean_Ith': None, 'mean_Veq': None}, name='Depolarization block test', force_run=False, base_directory=None, show_plot=True, save_all=True)[source]

Bases: sciunit.tests.Test

Tests if the model enters depolarization block under current injection of increasing amplitudes.

Parameters
  • observation (dict) – dictionary loaded from a JSON file, containing the experimental mean and std values for the features to be tested

  • force_run (boolean) – If True and the pickle files containing the model’s response to the simulation exists, the simulation won’t be run again, traces are loaded from the pickle file

  • base_directory (str) – Results will be saved here

  • show_plot (boolean) – If False, plots are not displayed but still saved

  • save_all (boolean) – If False, only the JSON files containing the absolute feature values, the feature error scores and the final scores, and a log file are saved, but the figures and pickle files are not.

Methods Summary

analyse_trace_end(results, Veq_index)

bind_score(score, model, observation, prediction)

For the user to bind additional features to the score.

cclamp(model, amp, delay, dur)

compute_score(observation, prediction[, verbose])

Implementation of sciunit.Test.score_prediction.

find_Ith_Veq(model, results, amps)

format_data(observation)

generate_prediction(model[, verbose])

Implementation of sciunit.Test.generate_prediction.

validate_observation(observation)

Validate the observation provided to the constructor.

Methods Documentation

analyse_trace_end(results, Veq_index)[source]
bind_score(score, model, observation, prediction)[source]

For the user to bind additional features to the score.

cclamp(model, amp, delay, dur)[source]
compute_score(observation, prediction, verbose=False)[source]

Implementation of sciunit.Test.score_prediction.

find_Ith_Veq(model, results, amps)[source]
format_data(observation)[source]
generate_prediction(model, verbose=False)[source]

Implementation of sciunit.Test.generate_prediction.

validate_observation(observation)[source]

Validate the observation provided to the constructor.

Raises an ObservationError if invalid.