When reading certain CDX files I get a ValueError from CDXPositioningType, here: https://github.com/kienerj/pycdxml/blob/6e1cddb49fc7f2267ed3f61607099922703e9b7d/pycdxml/cdxml_converter/chemdraw_types.py#L1968
The from_bytes method is expecting two bytes, but it seems only one is passed for some files. I'm not sure yet why, but I have attached an example CDX (zip archive) from ChemDraw21. I will add details as I continue to investigate. What I can say now is it seems to only happen for certain styles and when enhanced stereochemistry annotations are present.
When reading certain CDX files I get a ValueError from
CDXPositioningType
, here: https://github.com/kienerj/pycdxml/blob/6e1cddb49fc7f2267ed3f61607099922703e9b7d/pycdxml/cdxml_converter/chemdraw_types.py#L1968 Thefrom_bytes
method is expecting two bytes, but it seems only one is passed for some files. I'm not sure yet why, but I have attached an example CDX (zip archive) from ChemDraw21. I will add details as I continue to investigate. What I can say now is it seems to only happen for certain styles and when enhanced stereochemistry annotations are present.