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

Added support for arbitrary height function for deprojection #5

Merged
merged 2 commits into from May 1, 2023

Conversation

TomHilder
Copy link
Contributor

Just a small update to add support for a user-specified height function instead of either a power-law or tabulated. Obviously, one could always tabulate data from their chosen parameterisation, but this is a little more convenient and I thought it may be useful for someone else as well at some point :)

I added also appropriate changes to the docstring and type-checking, as well as a few checks that the user is specifying the right thing. The tests are also passing locally on my machine.

@tomasstolker tomasstolker self-requested a review May 1, 2023 06:53
Copy link
Owner

@tomasstolker tomasstolker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great! Thanks a lot! Added a few minor suggestions in the review.

diskmap/diskmap.py Show resolved Hide resolved
diskmap/diskmap.py Outdated Show resolved Hide resolved
Copy link
Owner

@tomasstolker tomasstolker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the update! Ready to merge 👍

@tomasstolker tomasstolker merged commit 919a436 into tomasstolker:main May 1, 2023
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants