Skip to content

Commit

Permalink
Run pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
mfisherlevine committed May 8, 2024
1 parent 9354fa9 commit 6f6107a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions python/lsst/summit/extras/fastStarTrackerAnalysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ def getStreamingSequences(dayObs):

return data


def getRegularSequences(dayObs):
"""Get the regular sequences for a dayObs.
Expand Down Expand Up @@ -149,7 +150,7 @@ def getRegularSequences(dayObs):

data = {}
for file in regularFiles:
seqNum = int(file.split('/')[-1].split("_")[3].split('.')[0])
seqNum = int(file.split("/")[-1].split("_")[3].split(".")[0])
data[seqNum] = file
data = sorted(data.items())

Expand Down Expand Up @@ -544,7 +545,7 @@ def plotSourceMovement(results, sourceIndex=0, allowInconsistent=False):

allDayObs = set(s.dayObs for s in sources)
allSeqNums = set(s.seqNum for s in sources)
if len(allDayObs) > 1:# or len(allSeqNums) > 1:
if len(allDayObs) > 1: # or len(allSeqNums) > 1:
raise ValueError(
"The sources are from multiple days or sequences, found"
f" {allDayObs} dayObs and {allSeqNums} seqNum values."
Expand Down

0 comments on commit 6f6107a

Please sign in to comment.