Skip to content

host_type and host_prior #78

@bruholder

Description

@bruholder

Hello,

First of all, I want to express my great appreciation for this fantastic tool. I think it will be incredibly useful for astronomers worldwide.

I was trying to run the example notebook, but I ran into some issues during initialization. I should mention that I'm not very experienced in programming, so I apologize if I've misunderstood something simple.

When running the code to determine the number of broad components and fit of the galaxies, I encountered the following error:

Image

From what I can tell, the problem seems to be that it can't find the reference files for the BC03 model.

I tried to look into the source code to understand the issue and I saw that in the definition of Fit, the default value for host_type is set to 'BC03':

Image

But in the comments there is a statement that only PCA option is allowed if host_prior=True

Image

When I manually changed the host_type parameter to 'PCA' in the example, everything seemed to work as intended.

Could you please clarify if this is the expected behavior, or if there might be a small oversight in the example or default configuration? I just wanted to bring this to your attention. I am using version 2.1.6

Thank you very much for your time and for creating this tool!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions