Skip to content

Commit

Permalink
Merge branch '1426-sequences' of github.com:epam/Indigo into 1426-seq…
Browse files Browse the repository at this point in the history
…uences
  • Loading branch information
even1024 committed Dec 26, 2023
2 parents 79f1f8e + 4045376 commit cea6278
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
9 changes: 6 additions & 3 deletions api/python/indigo/indigo/indigo.py
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,9 @@ def loadSequence(self, string, seq_type):
return IndigoObject(
self,
IndigoLib.checkResult(
self._lib().indigoLoadSmartsFromString(string.encode(), seq_type.encode())
self._lib().indigoLoadSmartsFromString(
string.encode(), seq_type.encode()
)
),
)

Expand All @@ -546,11 +548,12 @@ def loadSequenceFromFile(self, filename, seq_type):
return IndigoObject(
self,
IndigoLib.checkResult(
self._lib().indigoLoadSequenceFromFile(filename.encode(), seq_type.encode())
self._lib().indigoLoadSequenceFromFile(
filename.encode(), seq_type.encode()
)
),
)


def loadReaction(self, string):
"""Loads reaction from string. Format will be automatically recognized.
Expand Down
10 changes: 8 additions & 2 deletions api/python/indigo/indigo/indigo_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,15 @@ def __init__(self) -> None:
IndigoLib.lib.indigoLoadSmartsFromFile.restype = c_int
IndigoLib.lib.indigoLoadSmartsFromFile.argtypes = [c_char_p]
IndigoLib.lib.indigoLoadSequenceFromString.restype = c_int
IndigoLib.lib.indigoLoadSequenceFromString.argtypes = [c_char_p, c_char_p]
IndigoLib.lib.indigoLoadSequenceFromString.argtypes = [
c_char_p,
c_char_p,
]
IndigoLib.lib.indigoLoadSequenceFromFile.restype = c_int
IndigoLib.lib.indigoLoadSequenceFromFile.argtypes = [c_char_p, c_char_p]
IndigoLib.lib.indigoLoadSequenceFromFile.argtypes = [
c_char_p,
c_char_p,
]
IndigoLib.lib.indigoLoadReactionFromString.restype = c_int
IndigoLib.lib.indigoLoadReactionFromString.argtypes = [c_char_p]
IndigoLib.lib.indigoLoadReactionFromFile.restype = c_int
Expand Down

0 comments on commit cea6278

Please sign in to comment.