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

image plane priors for position #199

Merged
merged 1 commit into from
Sep 23, 2015
Merged

image plane priors for position #199

merged 1 commit into from
Sep 23, 2015

Conversation

ntessore
Copy link
Contributor

This PR introduces image plane priors for the positions of objects. With these, it's possible to fix the position of a source to one of its visible images. This is done in the ini file by prefixing the prior with image, for example

source.x   = image unif 34 36
source.y   = image unif 63 65

The image plane prior is calculated in the set_params kernel which is called when parameters need adjustment. Given how rarely that happens relative to the deflection and surface brightness calculations, there should not be any noticeable impact on performance.

The implementation is restricted to objects that have subsequent parameters x and y (i.e. all of the current ones).

@ntessore ntessore force-pushed the nt/image-plane-priors branch 2 times, most recently from 5197a0a to e10a873 Compare September 14, 2015 21:12
@ntessore
Copy link
Contributor Author

cc @fabiobg83 @rbmetcalf

@rbmetcalf
Copy link
Member

Excellent!

@ntessore
Copy link
Contributor Author

I'm a bit peeved by the fact that this was possible with so little changes.

@ntessore ntessore force-pushed the nt/image-plane-priors branch from 1b11289 to 4f17a54 Compare September 16, 2015 06:27
@ntessore
Copy link
Contributor Author

There is a problem with the different address spaces used for data. The way it's written seems to work on integrated cards, but not on those with dedicated memory.

I think I have to change the storage of the data objects to local memory before this can work.

@ntessore ntessore force-pushed the nt/image-plane-priors branch from 4f17a54 to 1e78b73 Compare September 16, 2015 09:54
@ntessore
Copy link
Contributor Author

I have rebased this onto the proposed changes of #202 as they should take care of the problems.

@ntessore ntessore force-pushed the nt/image-plane-priors branch from 1e78b73 to 8821190 Compare September 23, 2015 10:04
ntessore pushed a commit that referenced this pull request Sep 23, 2015
@ntessore ntessore merged commit aa364bf into master Sep 23, 2015
@ntessore ntessore deleted the nt/image-plane-priors branch September 23, 2015 10:12
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