Skip to content

Commit

Permalink
abf: autoformat comments
Browse files Browse the repository at this point in the history
  • Loading branch information
swharden committed Sep 17, 2024
1 parent 2274ee1 commit 35cf7a6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pyabf/abf.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,8 +327,8 @@ def _readHeadersV2(self, fb: BufferedReader):
try:
# This is the correct way, but it doesn't seem to work for every ABF.
# I think this is because there is a bug in the string indexer.
#self.userList = self._stringsIndexed.indexedStrings[self._userListSection.nStringIndex[0]]
#self.userList = [float(x) for x in self.userList.split(",")]
# self.userList = self._stringsIndexed.indexedStrings[self._userListSection.nStringIndex[0]]
# self.userList = [float(x) for x in self.userList.split(",")]

# This is weird but it's been in the code for a while and seems to work.
firstBlockStrings = self._stringsSection._stringsRaw[0].split(
Expand Down Expand Up @@ -384,7 +384,7 @@ def _readHeadersV2(self, fb: BufferedReader):
self._dataGain = [1]*self.channelCount
self._dataOffset = [0]*self.channelCount
for i in range(self.channelCount):
#adcIndex = self._adcSection.nADCSamplingSeq[i]
# adcIndex = self._adcSection.nADCSamplingSeq[i]
# NOTE: ADC sequence is handled inside the ADC section so it doesn't need to be handled here
adcIndex = i
self._dataGain[i] /= self._adcSection.fInstrumentScaleFactor[adcIndex]
Expand Down

0 comments on commit 35cf7a6

Please sign in to comment.