Skip to content

logspacing in pdf1d #844

@schen70

Description

@schen70

When the class pdf1d is run for radius bins, the bins are set to log spaced bins

            if logspacing:
                self.min_val = math.log10(self.min_val)
                self.max_val = math.log10(self.max_val)
                tgridvals = np.log10(tgridvals)

However the unique values of tgridvals , uniqvals are defined before this point, but are not transformed into log space alongside it. This results in the value error "Not all the physics grid model points mapped to 1d ppdf bins - should not happen". I don't know why the example metal_small does not run into this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions