Closed Da-vid21 closed 5 months ago
Hi @Da-vid21, the search results should give you a Dataset
, which won't load into a Reaction
. Could you send me the search results you downloaded and I can send you a snippet to read them?
Closed due to inactivity.
Describe the bug I was trying to parse the ord-data provided and I keep on getting this error when trying to use
ParseFromString
functionTo Reproduce Steps to reproduce the behavior:
import gzip
from ord_schema.proto import reaction_pb2
reaction = reaction_pb2.Reaction()
with gzip.open('data/00/ord_search_results.pb.gz', 'rb') as f:
data = f.read()
reaction.ParseFromString(data)
print(reaction)
Expected behavior I want to be able to read the dataset so that I can parse the SMILES and chemical reaction name
Screenshots
Desktop (please complete the following information):