astrorama / SourceXtractorPlusPlus

SourceXtractor++, the next generation SExtractor
https://astrorama.github.io/SourceXtractorPlusPlus/
GNU Lesser General Public License v3.0
72 stars 9 forks source link

No attribute 'get_radius' #437

Closed louisquilley closed 2 years ago

louisquilley commented 2 years ago

Hello, I would like to understand the error message I am receiving, which starts like this :

2022-01-12T16:33:03CET Config INFO : Loaded segmentation filter: gauss_5.0_9x9.conv width: 9 height: 9 2022-01-12T16:33:03CET Config INFO : Free parameter compiled 2022-01-12T16:33:03CET Config INFO : digraph G { label="Free parameter" "0" [label=""]; "1" [label="_0.isophotal_flux"]; "0" -> "1" "2" [label="1.000000"]; "0" -> "2" } 2022-01-12T16:33:03CET Config INFO : Range min compiled 2022-01-12T16:33:03CET Config INFO : digraph G { label="Range min" "0" [label=""]; "1" [label="_0"]; "0" -> "1" "2" [label="0.001000"]; "0" -> "2" } 2022-01-12T16:33:03CET Config INFO : Range max compiled 2022-01-12T16:33:03CET Config INFO : digraph G { label="Range max" "0" [label="*"]; "1" [label="_0"]; "0" -> "1" "2" [label="1000.000000"]; "0" -> "2"

A series of messages looking like the previous one or like the following one ensues

2022-01-12T16:33:03CET Config INFO : Range min compiled 2022-01-12T16:33:03CET Config INFO : digraph G { label="Range min" "0" [label="950.721336"]; } 2022-01-12T16:33:03CET Config INFO : Range max compiled 2022-01-12T16:33:03CET Config INFO : digraph G { label="Range max" "0" [label="960.721336"]; } 2022-01-12T16:33:03CET Config INFO : Free parameter compiled 2022-01-12T16:33:03CET Config INFO : digraph G { label="Free parameter" "0" [label="961.286186"];

and then it ends with

2022-01-12T16:33:03CET SourceXtractor FATAL : AttributeSet object has no attribute 'get_radius' 2022-01-12T16:33:03CET Python::Interpreter INFO : Python GIL acquired 54 times

The last lines looking like the first message are the one below, so I understand that the free parameters end up finding a value until this one

2022-01-12T16:33:03CET Config INFO : Free parameter compiled 2022-01-12T16:33:03CET Config INFO : digraph G { label="Free parameter" "0" [label="_0.centroid_y"]; } 2022-01-12T16:33:03CET Config INFO : Range min compiled 2022-01-12T16:33:03CET Config INFO : digraph G { label="Range min" "0" [label="-"]; "1" [label="_0"]; "0" -> "1" "2" [label="_1.radius"]; "0" -> "2" } 2022-01-12T16:33:03CET Config INFO : Range max compiled 2022-01-12T16:33:03CET Config INFO : digraph G { label="Range max" "0" [label="+"]; "1" [label="_0"]; "0" -> "1" "2" [label="_1.radius"]; "0" -> "2"

I encountered this message while doing model-fitting in bands (u and z of SDSS) for which I have very limited flux, and/or high noise, so low SNR, compared to what I was usually doing. For the partition step to find a source I am using a band (g of SDSS) I already have used to perform model-fitting (successfully) , so the delimitation of the source matches for each galaxy. I am wondering if this error can be solved by better parametrisation or if it is a normal consequence of the limited flux which doesn't allow to find a radius. I can provide some of my images and configuration files if needed.

Thank you in advance for your help. Best regards, Louis

mkuemmel commented 2 years ago

Please have a look at #433.

There are a couple of syntax changes that started with 0.16:

The additional output ("digraph G {...}") comes from a new module which accelerates python priors and is not an error.

That should be it. We are behind with our documentation. Apologies for that.

louisquilley commented 2 years ago

Ok, I had missed this syntax update. Thank you for the quick answer.

mkuemmel commented 2 years ago

Is it solved? Can we close that one?

louisquilley commented 2 years ago

Yes it is fine, I have my answer.