Skip to content

Call sourcextractor++ from Python #522

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

Draft
wants to merge 35 commits into
base: develop
Choose a base branch
from

Conversation

ayllon
Copy link
Member

@ayllon ayllon commented Sep 22, 2022

SourceXtractorDemo.py can help you see how it can be used.

Closes #179

@ayllon ayllon force-pushed the experimental/call_from_python branch from aaeca8f to 94c6994 Compare September 22, 2022 07:20
@ayllon ayllon marked this pull request as draft September 22, 2022 12:10
@ayllon ayllon force-pushed the experimental/call_from_python branch from a52bb90 to c6bc56d Compare October 13, 2022 11:44
@ayllon
Copy link
Member Author

ayllon commented Oct 13, 2022

The last commits should make the handling of errors and multi-threading somewhat more reliable.
Not yet supported: error interception from a custom output handler (you can write one, but context does not expose the errors, should be relatively easy to do so, though), nor custom segmentation.

@ayllon
Copy link
Member Author

ayllon commented Oct 14, 2022

Not yet supported: error interception from a custom output handler (you can write one, but context does not expose the errors, should be relatively easy to do so, though), nor custom segmentation.

Both done! But no custom grouping yet.

CustomSegmentationDemo.py is an example of a very naive custom segmentation that sends sources to sourcextractor++. Good for the demo?

Of course, you can not rely on this custom segmentation, but looking at the cross-match

crossmatch

the rest of the pipeline seems to pick well on these objects.

@ayllon ayllon force-pushed the experimental/call_from_python branch from dc048fa to 2f0dd74 Compare October 14, 2022 12:31
@ayllon
Copy link
Member Author

ayllon commented Oct 17, 2022

And a primitive custom grouping.

@ayllon
Copy link
Member Author

ayllon commented Oct 20, 2022

And here is the live preview demo

It is not intended for production. I have my doubts it will scale! It may be better to add the pixels by hand rather than having one artist per source, but you can get an idea of how to do it.

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

Successfully merging this pull request may close these issues.

Make sourceXtractor++ functionality available as a Python library
2 participants