Skip to content

Not able to run K2-18b code #1

Description

@mrtommyb

I downloaded the data on K2-18b from https://osf.io/n7dqx/.
I then pip installed iraclis, and within the unzipped directory I ran

python analysis_spectral_extraction.py
Downloading clablimb database...
all_coefficients_TESS.pickle

Downloading ephemeris database...
bjd_dict.pickle
hjd_dict.pickle

Downloading oec database...
systems.xml.gz

Downloading wfc3 database...
apertures_scales_G102.fits
apertures_scales_G141.fits
default_high.txt
default_high_g102.txt
default_low.txt
default_low_g102.txt
default_vlow.txt
default_vlow_g102.txt
filters_offsets.fits
G102_troughtput.txt
G141_troughtput.txt
t2c16200i_ccd.fits
t2c16200i_ccd_custom.fits
t5s1754mi_drk.fits
t5s1754ri_drk.fits
t5s17550i_drk.fits
u1k1727mi_lin.fits
u1k1727mi_lin_custom.fits
u4m1335mi_pfl.fits
uaf1255ei_drk.fits
WFC3.IR.G102.1st.sens.2.fits
WFC3.IR.G102.calib.fits
WFC3.IR.G102.flat.2.fits
WFC3.IR.G102.sky.V1.0.fits
WFC3.IR.G141.1st.sens.2.fits
WFC3.IR.G141.calib.fits
WFC3.IR.G141.flat.2.fits
WFC3.IR.G141.sky.V1.0.fits
xcc20394i_drk.fits
xcc20396i_drk.fits
xcc20397i_drk.fits
xcc20398i_drk.fits
xcc20399i_drk.fits
xcc2039ai_drk.fits
xcc2039bi_drk.fits
xcc2039ci_drk.fits
y711520di_bpx.fits
y711520di_bpx_custom.fits
zb21929ti_drk.fits
zb219300i_drk.fits
zb219301i_drk.fits
zb219302i_drk.fits
Loading parameters file: visit_1_parameters.txt ...
WARNING: Parameter not in file, setting star_teff=auto
WARNING: Parameter not in file, setting star_logg=auto
WARNING: Parameter not in file, setting star_meta=auto

Processing directory:  visit_1
                   @:  /Users/tom/Downloads/dropbox-archive


Loading raw images ...
Timing.........: 94 / 94   time left: 0:00:00   total time: 0:00:00
Bias...........: 94 / 94   time left: 0:00:00   total time: 0:00:07
Linearity......: 94 / 94   time left: 0:00:00   total time: 0:00:12
Dark...........: 94 / 94   time left: 0:00:00   total time: 0:00:02
Gain...........: 94 / 94   time left: 0:00:00   total time: 0:00:02
Sky............: 94 / 94   time left: 0:00:00   total time: 0:06:01
/Users/tom/anaconda3/lib/python3.6/site-packages/iraclis/images2_calibration.py:633: RuntimeWarning: divide by zero encountered in true_divide
  return (c1 / (c2 + l_wdpt) + c3) + (s1 / (s2 + l_wdpt) + s3) * x_wdpt
/Users/tom/anaconda3/lib/python3.6/site-packages/iraclis/images2_calibration.py:633: RuntimeWarning: invalid value encountered in add
  return (c1 / (c2 + l_wdpt) + c3) + (s1 / (s2 + l_wdpt) + s3) * x_wdpt
Calibration....: 94 / 94   time left: 0:00:00   total time: 0:02:43
Flat...........: 94 / 94   time left: 0:00:00   total time: 0:00:03
BPs & CRs......: 94 / 94   time left: 0:00:00   total time: 0:07:15
Saving reduced frames in reduced_data ...

Loading reduced images ...
Loading bins file: bins.txt ...
Photometry.....: 94 / 94   time left: 0:00:00   total time: 0:00:25
Saving extracted light-curves in results/extracted_light_curves.pickle ...
Saving extraction plots in figures_extraction ...
Loading bins file: bins.txt ...
2019-11-10 20:46:04.699 python[24193:1166328] -[NSApplication _setup:]: unrecognized selector sent to instance 0x7fe2d0ef8310
2019-11-10 20:46:04.715 python[24193:1166328] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSApplication _setup:]: unrecognized selector sent to instance 0x7fe2d0ef8310'
*** First throw call stack:
(
	0   CoreFoundation                      0x00007fff8be9d46b __exceptionPreprocess + 171
	1   libobjc.A.dylib                     0x00007fffa0cdd48d objc_exception_throw + 48
	2   CoreFoundation                      0x00007fff8bf1f0e4 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132
	3   CoreFoundation                      0x00007fff8be0eb05 ___forwarding___ + 1061
	4   CoreFoundation                      0x00007fff8be0e658 _CF_forwarding_prep_0 + 120
	5   libtk8.6.dylib                      0x000000011b0da31d TkpInit + 413
	6   libtk8.6.dylib                      0x000000011b03217e Initialize + 2622
	7   _tkinter.cpython-36m-darwin.so      0x0000000117001a16 _tkinter_create + 1174
	8   python                              0x000000010c0c2088 _PyCFunction_FastCallDict + 200
	9   python                              0x000000010c198f4f call_function + 143
	10  python                              0x000000010c196abf _PyEval_EvalFrameDefault + 46847
	11  python                              0x000000010c18a209 _PyEval_EvalCodeWithName + 425
	12  python                              0x000000010c199b1c _PyFunction_FastCallDict + 364
	13  python                              0x000000010c0408b0 _PyObject_FastCallDict + 320
	14  python                              0x000000010c067fe8 method_call + 136
	15  python                              0x000000010c047efe PyObject_Call + 62
	16  python                              0x000000010c0e9385 slot_tp_init + 117
	17  python                              0x000000010c0ed8c1 type_call + 241
	18  python                              0x000000010c040821 _PyObject_FastCallDict + 177
	19  python                              0x000000010c048a67 _PyObject_FastCallKeywords + 327
	20  python                              0x000000010c199048 call_function + 392
	21  python                              0x000000010c196b6f _PyEval_EvalFrameDefault + 47023
	22  python                              0x000000010c19930c fast_function + 188
	23  python                              0x000000010c198fac call_function + 236
	24  python                              0x000000010c196abf _PyEval_EvalFrameDefault + 46847
	25  python                              0x000000010c18a209 _PyEval_EvalCodeWithName + 425
	26  python                              0x000000010c199b1c _PyFunction_FastCallDict + 364
	27  python                              0x000000010c0408b0 _PyObject_FastCallDict + 320
	28  python                              0x000000010c067fe8 method_call + 136
	29  python                              0x000000010c047efe PyObject_Call + 62
	30  python                              0x000000010c196cc0 _PyEval_EvalFrameDefault + 47360
	31  python                              0x000000010c18a209 _PyEval_EvalCodeWithName + 425
	32  python                              0x000000010c1993ba fast_function + 362
	33  python                              0x000000010c198fac call_function + 236
	34  python                              0x000000010c196abf _PyEval_EvalFrameDefault + 46847
	35  python                              0x000000010c18a209 _PyEval_EvalCodeWithName + 425
	36  python                              0x000000010c1993ba fast_function + 362
	37  python                              0x000000010c198fac call_function + 236
	38  python                              0x000000010c196b6f _PyEval_EvalFrameDefault + 47023
	39  python                              0x000000010c19930c fast_function + 188
	40  python                              0x000000010c198fac call_function + 236
	41  python                              0x000000010c196abf _PyEval_EvalFrameDefault + 46847
	42  python                              0x000000010c18a209 _PyEval_EvalCodeWithName + 425
	43  python                              0x000000010c1993ba fast_function + 362
	44  python                              0x000000010c198fac call_function + 236
	45  python                              0x000000010c196abf _PyEval_EvalFrameDefault + 46847
	46  python                              0x000000010c19930c fast_function + 188
	47  python                              0x000000010c198fac call_function + 236
	48  python                              0x000000010c196abf _PyEval_EvalFrameDefault + 46847
	49  python                              0x000000010c18a209 _PyEval_EvalCodeWithName + 425
	50  python                              0x000000010c1e2d4c PyRun_FileExFlags + 252
	51  python                              0x000000010c1e2224 PyRun_SimpleFileExFlags + 372
	52  python                              0x000000010c208d66 Py_Main + 3734
	53  python                              0x000000010c038929 main + 313
	54  libdyld.dylib                       0x00007fffa1617235 start + 1
	55  ???                                 0x0000000000000004 0x0 + 4
)
libc++abi.dylib: terminating with uncaught exception of type NSException
Loading parameters file: visit_2_parameters.txt ...
WARNING: Parameter not in file, setting star_teff=auto
WARNING: Parameter not in file, setting star_logg=auto
WARNING: Parameter not in file, setting star_meta=auto

There are similar errors for the other visits.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions