-
Notifications
You must be signed in to change notification settings - Fork 30
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
jktebop wrapper support for exposure times #700
Comments
Repeat of question from #699 I don't see any reference to dataset in the JKTEBOP backend code. Is that handled neatly such that the bundle there only sees one dataset (the one it needs)? Or will I run into trouble there if it is defined like a regular parameter, in case there is two light curves defined? |
Each dataset has an phoebe2/phoebe/parameters/dataset.py Line 241 in 05e263b
and then the compute options for each backend that supports exposure times has an phoebe2/phoebe/parameters/compute.py Lines 182 to 183 in 05e263b
Since the jktebop backend currently creates a separate call to jktebop for each defined dataset (see |
Ah so I don't even need to touch _worker_setup() like I did before? |
I don't think so, for the jktebop wrapper (it varies a bit between the different wrappers since some can run multiple datasets in a single call, etc) I would think of |
Makes sense, it looks like I can get it to run by getting values from the |
At the moment, it looks like there is some issue with "2 results found" when I try to implement this the simple way. I will get an error like: ValueError: 2 results found: ['fti_oversample@lc01@phoebe01@phoebe@compute', 'fti_oversample@lc01@compute1@jktebop@compute'] Then, if I try to require in the code that it uses either |
Is |
It should be, but I will check again tomorrow.
…On Tue, 14 Feb 2023, 17.27 Kyle Conroy, ***@***.***> wrote:
Is fti_method set to 'oversample'? If you want to pull the value even if
it is not, you can pass check_visible to your filter or get_value calls.
If that still doesn't work, can you push what you have to a branch on your
fork and I might be able to see what is causing the problem.
—
Reply to this email directly, view it on GitHub
<#700 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANR5GXBO6SQ7DLEMIVC6P3LWXO56PANCNFSM6AAAAAAU3ZAEQU>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Hi @kecnry, I messed up my fork by pushing the rv bugfix to master. So is it ok if I just make a branch with both the rv bugfix and the fti thing I have attempted? And then you can just look at what I have done and implement something in a different branch? |
Hi again, I reverted the master branch and made a new branch "jktebop_fti_oversample" after. Check it out if you want to see the implementation. It seems to work as intended now, but I was forced to use twigs to get it to work. It also uses a try except statement, since I could not figure out an intuitive way to check if the fti_oversample parameter exists. |
Thanks! I opened that branch as a draft PR (#702) so that it's easier for anyone to update, and also add a list of things that I think we'll need to address (feel free to do any you would like and just push to that same branch, or we can take over at any point and try to wrap it up - just let me know what you'd like to do). |
I think I would prefer if you all took over. I wrote it with twigs and try/except because I could not get the filtering to work and saw no other way intuitively, despite knowing that it was considered non-ideal. So those hacks show the limits of my comprehension of the internals of PHOEBE. |
Ok, will do. It's probably not terribly high on our priority list if the version you have locally works for what you need, but we'll try to wrap it up as soon as we can. Feel free to subscribe to the PR if you want to be notified of future work/conversations there. Thanks for getting it this far! |
It should be completely functional, and it looks like it is working on my local install. |
No description provided.
The text was updated successfully, but these errors were encountered: