You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @paugier, thanks for the link! I hadn't seen that post.
Basically, I didn't really know about CFFI until recently. I've been having a good experience with ctypes and numpy arrays have builtin support for it. Right now, I don't know if it's worth the trouble of switching if ctypes is working. But I'm open to suggestions if there is anything specific that CFFI can address.
Thanks for taking the time to give feedback! I really appreciate it.
Activity
leouieda commentedon Jul 14, 2018
Hi @paugier, thanks for the link! I hadn't seen that post.
Basically, I didn't really know about CFFI until recently. I've been having a good experience with ctypes and numpy arrays have builtin support for it. Right now, I don't know if it's worth the trouble of switching if ctypes is working. But I'm open to suggestions if there is anything specific that CFFI can address.
Thanks for taking the time to give feedback! I really appreciate it.
seisman commentedon Mar 15, 2021
Can we close this 2.5-year-old issue? I don't think we will switch to cffi in the next few years.
weiji14 commentedon Mar 15, 2021
Yep, close it as wontfix. But feel free to reopen if someone wants to work on it 🙂
seisman commentedon Feb 28, 2024
Just tried cffi. The following example shows how to call the API function
GMT_Get_Enum:For comparison, the ctypes version is
pygmt/pygmt/clib/session.py
Lines 263 to 280 in 5014591