CONAN._classes.load_result._load_result_array#
- CONAN._classes.load_result._load_result_array(data=['lc', 'rv'], verbose=True)#
Load result array from CONAN fit allowing for customised plots. All files with ‘_**out.dat’ are loaded.
- Parameters:
data (list of str;) – list of data to load. Must be one of [“lc”,”rv”] to load lc or rv data.
verbose (bool;) – print the files being loaded.
- Returns:
results – dictionary of holding the arrays for each output file.
- Return type:
dict;
Examples
>>> import CONAN >>> res=CONAN.load_result() >>> results = res._load_result_array() >>> list(results.keys()) >>> #['lc8det_lcout.dat', 'lc6bjd_lcout.dat']
>>> df1 = results['lc8det_lcout.dat'] >>> df1.keys() ['time', 'flux', 'error', 'full_mod', 'base_total', 'transit', 'det_flux',...]
>>> # plot arrays >>> plt.plot(df["time"], df["flux"],"b.") >>> plt.plot(df["time"], df["base_total"],"r") >>> plt.plot(df["time"], df["transit"],"g")