Skip to content

fix: key error for tess-point module#28

Open
rosahoogenboom wants to merge 1 commit into
hposborn:pymcfrom
rosahoogenboom:pymc
Open

fix: key error for tess-point module#28
rosahoogenboom wants to merge 1 commit into
hposborn:pymcfrom
rosahoogenboom:pymc

Conversation

@rosahoogenboom
Copy link
Copy Markdown

Hi, I'm very excited to start using MonoTools to help plan upcoming observations!

I tried to follow the MonoTools tutorial (Example 1 - Modelling a Duotransit), but encountered some issues.

When running lc=lightcurve.multilc(tic,'tess', save=False,load=False,use_fast=False) and mod=fit.monoModel(tic,'tess',lc=lc) , it fails with Keyerror: 96.

This happens because the check for the id in sect_obs assumes that the id already exists. In tools.observed, the maximum sector is hardcoded to default to 96, but the indexing of out_dic starts at 0 (while TESS sector 0 does not exist). Therefore, key 96 was undefined. We fixed it by replacing the 0-index with 1-index and checking that the key exists.
Should the default maximum sector be updated?

The tutorial still includes from MonoTools.MonoTools import fit,tools,starpars,lightcurve, but starpars can no longer be imported. Is there a replacement for the usage in tutorial 1 (mod.init_starpars())?

Thanks!

 replace 0-index with 1-index and check key exists
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.

1 participant