-
Notifications
You must be signed in to change notification settings - Fork 7
several quality-of-life improvements #293
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
base: dev
Are you sure you want to change the base?
Conversation
except: | ||
return None | ||
|
||
def _queryGaia(ID=None,coords=None, radius = 20): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you check that queryGaia still works? I think there is something with them changing permissions.
Also if this is adding a new module you'll need to update the docs accordingly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
works for me out of the box with a fresh env. I'll write up some docs.
|
||
# The inclination prior is a sine truncated between 0, and pi/2. | ||
self.priors['inc'] = dist.truncsine() | ||
self.priors['inc'] = dist.truncsine() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think for changing the order of things here you'll need to check that it doesn't influence the sampling.
I remember having problems with that at some point, where I thought using dictionaries should have solved this, but apparently it didn't.
Just so we aren't sampling nurot_e when we think it's something else like eps_g.
raise ValueError(f'Model {model} is invalid. Please use either MS, SG or RGB.') | ||
|
||
def runl1model(self, progress=True, dynamic=False, minSamples=5000, sampler_kwargs={}, logl_kwargs={}, **kwargs): | ||
''' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to use " " " instead of ' ' '.
self.Fpp(num_g, nu_p, nu_g, self.obs['dnu'][0], DPi1), lmbda=lmbda) | ||
return a, b | ||
|
||
num_p, num_g = jax.lax.fori_loop(0, self.rootiter, _body, (nu_p, nu_g)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this improve the compile-time?
We of course also need to verify that results don't change.
Uh oh!
There was an error while loading. Please reload this page.