Skip to content

Commit

Permalink
Merge branch 'feature/duckdb' of github.com:Roestlab/massseer into fe…
Browse files Browse the repository at this point in the history
…ature/duckdb
  • Loading branch information
jcharkow committed Apr 5, 2024
2 parents 23eade5 + b7e8e54 commit 0359afb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion massdash/loaders/access/OSWDataAccess.py
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ def getSoftware(self):

def getPrecursorIDFromPeptideAndCharge(self, fullpeptidename: str, charge: int) -> int:
try:
return self.peptideHash.loc[fullpeptidename, charge]['PRECURSOR_ID']
return self.peptideHash.loc[fullpeptidename, charge]['PRECURSOR_ID'].values[0]
except KeyError:
print(f"Peptide {fullpeptidename} with charge {charge} not found.")
return None
Expand Down

0 comments on commit 0359afb

Please sign in to comment.