Closed avivajpeyi closed 2 years ago
To reproduce
run_toi 2180
2021-11-18 15:52:37,778 - TESS-ATLAS-RUNNER - ERROR - Preprocessing /fred/oz200/avajpeyi/projects/atlas_runs/notebooks/0.2.1.dev64+gc7fa3a0/toi_2180.ipynb failed: An error occurred while executing the following cell: ------------------ prior_samples = sample_prior(planet_transit_model) if prior_samples: plot_priors(tic_entry, prior_samples, init_params) ------------------ --------------------------------------------------------------------------- ValueError Traceback (most recent call last) /tmp/ipykernel_3874/1590617151.py in <module> 1 prior_samples = sample_prior(planet_transit_model) 2 if prior_samples: ----> 3 plot_priors(tic_entry, prior_samples, init_params) /fred/oz200/avajpeyi/projects/tess-atlas/src/tess_atlas/plotting/histogram_plotter.py in plot_priors(tic_entry, prior_samples, init_params) 27 tic_entry: TICEntry, prior_samples: Dict, init_params: Dict 28 ) -> None: ---> 29 prior_samples, init_params = format_prior_samples_and_initial_params( 30 prior_samples, init_params 31 ) /fred/oz200/avajpeyi/projects/tess-atlas/src/tess_atlas/plotting/plotting_utils.py in format_prior_samples_and_initial_params(prior_samples, init_params) 35 init_params = {n: init_params[n] for n in prior_samples.keys()} 36 ---> 37 prior_samples = pd.DataFrame(prior_samples) 38 39 # log params /fred/oz200/avajpeyi/envs/tess/lib/python3.8/site-packages/pandas/core/frame.py in __init__(self, data, index, columns, dtype, copy) 612 elif isinstance(data, dict): 613 # GH#38939 de facto copy defaults to False only in non-dict cases --> 614 mgr = dict_to_mgr(data, index, columns, dtype=dtype, copy=copy, typ=manager) 615 elif isinstance(data, ma.MaskedArray): 616 import numpy.ma.mrecords as mrecords /fred/oz200/avajpeyi/envs/tess/lib/python3.8/site-packages/pandas/core/internals/construction.py in dict_to_mgr(data, index, columns, dtype, typ, copy) 462 # TODO: can we get rid of the dt64tz special case above? 463 --> 464 return arrays_to_mgr( 465 arrays, data_names, index, columns, dtype=dtype, typ=typ, consolidate=copy 466 ) /fred/oz200/avajpeyi/envs/tess/lib/python3.8/site-packages/pandas/core/internals/construction.py in arrays_to_mgr(arrays, arr_names, index, columns, dtype, verify_integrity, typ, consolidate) 117 # figure out the index, if necessary 118 if index is None: --> 119 index = _extract_index(arrays) 120 else: 121 index = ensure_index(index) /fred/oz200/avajpeyi/envs/tess/lib/python3.8/site-packages/pandas/core/internals/construction.py in _extract_index(data) 633 lengths = list(set(raw_lengths)) 634 if len(lengths) > 1: --> 635 raise ValueError("All arrays must be of the same length") 636 637 if have_dicts: ValueError: All arrays must be of the same length
Closing for now
To reproduce