From 4c083b1fec31cafb6e35dea40a0827d81b59c869 Mon Sep 17 00:00:00 2001 From: CatMe0w Date: Thu, 14 Aug 2025 20:14:41 +0800 Subject: [PATCH 1/2] Fix `invalid escape sequence '\i'` on Windows --- molscribe/indigo/inchi.py | 2 +- molscribe/indigo/renderer.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/molscribe/indigo/inchi.py b/molscribe/indigo/inchi.py index 3a0cfd5..8e721d3 100644 --- a/molscribe/indigo/inchi.py +++ b/molscribe/indigo/inchi.py @@ -25,7 +25,7 @@ def __init__(self, indigo): if os.name == 'posix' and not platform.mac_ver()[0] and not platform.system().startswith("CYGWIN"): self._lib = CDLL(indigo.dllpath + "/libindigo-inchi.so") elif os.name == 'nt' or platform.system().startswith("CYGWIN"): - self._lib = CDLL(indigo.dllpath + "\indigo-inchi.dll") + self._lib = CDLL(indigo.dllpath + "/indigo-inchi.dll") elif platform.mac_ver()[0]: self._lib = CDLL(indigo.dllpath + "/libindigo-inchi.dylib") else: diff --git a/molscribe/indigo/renderer.py b/molscribe/indigo/renderer.py index 699c80e..e2e22c8 100644 --- a/molscribe/indigo/renderer.py +++ b/molscribe/indigo/renderer.py @@ -33,7 +33,7 @@ def __init__(self, indigo): ): self._lib = CDLL(indigo.dllpath + "/libindigo-renderer.so") elif os.name == "nt" or platform.system().startswith("CYGWIN"): - self._lib = CDLL(indigo.dllpath + "\indigo-renderer.dll") + self._lib = CDLL(indigo.dllpath + "/indigo-renderer.dll") elif platform.mac_ver()[0]: self._lib = CDLL(indigo.dllpath + "/libindigo-renderer.dylib") else: From 4fdf3706ecf8d65fcbefcef4960acebdb37b8732 Mon Sep 17 00:00:00 2001 From: CatMe0w Date: Wed, 20 Aug 2025 00:34:30 +0800 Subject: [PATCH 2/2] Prepare for MolScribe-Long --- molscribe/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/molscribe/utils.py b/molscribe/utils.py index d1dd833..cab5f99 100755 --- a/molscribe/utils.py +++ b/molscribe/utils.py @@ -22,7 +22,7 @@ }, "nodes": {"max_len": 384}, "atomtok_coords": {"max_len": 480}, - "chartok_coords": {"max_len": 480} + "chartok_coords": {"max_len": 1280} }