Skip to content

Commit

Permalink
Merge pull request #80 from BlueBrain/sscx-emodels-paper
Browse files Browse the repository at this point in the history
merge sscx-emodels-paper branch to master
  • Loading branch information
wvangeit authored Aug 8, 2022
2 parents 845f826 + 29e516b commit 14507c9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions bluepyefe/extractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -1100,6 +1100,10 @@ def mean_features(self):
self.dataset_mean[expname]['bc_ld_features'][feature][
str(target)] = bcld

with open(self.maindirname + "dataset_means.json", "w") as handle:
json.dump(
self.dataset_mean, handle, indent=4, cls=tools.NumpyEncoder)

def get_threshold(self, amp, numspikes):
"""Get the spiking threshold of a cell by taking the smallest current
amplitude for which it fires"""
Expand Down
2 changes: 1 addition & 1 deletion bluepyefe/formats/axon.py
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ def sampling_rate_from_header(header):
# read sampling rate
sampling_rate = 1.e6 / header['protocol']['fADCSequenceInterval']

return(1, {"r": sampling_rate, "ru": "Hz"})
return (1, {"r": sampling_rate, "ru": "Hz"})


def get_nbepisod(header):
Expand Down

0 comments on commit 14507c9

Please sign in to comment.