Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python API for libctlgeom? #70

Open
stevengj opened this issue Sep 5, 2024 · 2 comments · May be fixed by #71
Open

Python API for libctlgeom? #70

stevengj opened this issue Sep 5, 2024 · 2 comments · May be fixed by #71

Comments

@stevengj
Copy link
Collaborator

stevengj commented Sep 5, 2024

It might be worth taking some of the Python API from meep and moving it into libctl (Python analogues of geometric objects, plus code to construct the corresponding libctl object), and the various queries of the objects. Once you have that, then you would also wrap a routine to convert a Python list of objects to a C array of objects, then wrap the functions to create a tree of objects from the array, then wrap the functions to query the object of a point in the tree.

@stevengj stevengj changed the title Python API? Python API for libctlgeom? Sep 5, 2024
@Luochenghuang Luochenghuang linked a pull request Nov 15, 2024 that will close this issue
@stevengj
Copy link
Collaborator Author

Looks good, the main remaining task is to integrate the build with the rest of the Makefile.am files (similar to meep). I'll bang on this and post a branch.

@stevengj
Copy link
Collaborator Author

stevengj commented Nov 15, 2024

I've pushed a https://github.com/NanoComp/libctl/tree/python fork of the Luochenghuang:master repo that adds an automake-ified build. You should just be able to do:

./configure --enable-maintainer-mode PYTHON=python3
make
make install

to build and install the Python package.

Update: Whoops, I meant to post this on #71.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant