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

rename function to flag internal use #8

Merged
merged 5 commits into from
Apr 9, 2024
Merged

rename function to flag internal use #8

merged 5 commits into from
Apr 9, 2024

Conversation

KaelanDt
Copy link
Contributor

@KaelanDt KaelanDt commented Apr 9, 2024

No description provided.

@SamDuffield
Copy link
Contributor

I don't feel strongly on this, the sample_identity_diffusion function is already kinda not public facing since it only lives in thermox.sampler.sample_identity_diffusion unlike thermox.sample.

Happy to add the underscore if we like but if we do we should also add it to thermox.log_prob.log_prob_identity_diffusion to be consistent.

@KaelanDt KaelanDt requested a review from SamDuffield April 9, 2024 08:16
@KaelanDt
Copy link
Contributor Author

KaelanDt commented Apr 9, 2024

I don't feel strongly on this, the sample_identity_diffusion function is already kinda not public facing since it only lives in thermox.sampler.sample_identity_diffusion unlike thermox.sample.

Happy to add the underscore if we like but if we do we should also add it to thermox.log_prob.log_prob_identity_diffusion to be consistent.

That's true, let's keep it that way. Thinking about it again, I just don't like that sample_identity_diffusion can throw an error if you want to use it on a GPU, so what do you think of simply adding A_spd as a kwarg to it?

@SamDuffield
Copy link
Contributor

I don't feel strongly on this, the sample_identity_diffusion function is already kinda not public facing since it only lives in thermox.sampler.sample_identity_diffusion unlike thermox.sample.
Happy to add the underscore if we like but if we do we should also add it to thermox.log_prob.log_prob_identity_diffusion to be consistent.

That's true, let's keep it that way. Thinking about it again, I just don't like that sample_identity_diffusion can throw an error if you want to use it on a GPU, so what do you think of simply adding A_spd as a kwarg to it?

Yes absolutely!! Same wavelength, I'd even made an issue for it #9 😆

we should also do it for thermox.log_prob.log_prob_identity_diffusion

@SamDuffield
Copy link
Contributor

Can we unify the docstring for A_spd for log_prob too?

KaelanDt added 3 commits April 9, 2024 09:19
* add workflow for pre-commit and test

* split dependencies into test and dev

* install dev depencies in the workflow

* simplify pyproject.toml
@KaelanDt KaelanDt merged commit 91016d7 into main Apr 9, 2024
2 checks passed
@KaelanDt KaelanDt deleted the rename-function branch April 9, 2024 10:29
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.

2 participants