logger = get_custom_logger(main_logger_name) logger.setLevel(logging.DEBUG) logger.debug('logging level is DEBUG') from estimate_explosion_time.shared import simulation_dir from estimate_explosion_time.core.data_prep.data import DataHandler import pickle methods = all_methods[:-1] logger.debug(f'using methods{methods}') simulation_name = 'simsurvey_simulation' simsurvey_path = f'{simulation_dir}/{simulation_name}' simsurveyDH = DataHandler.get_dhandler(simulation_name, simsurvey_path) # simsurveyDH.select_and_adjust_selection_string( # req_prepeak=3, # req_postpeak=1, # req_max_timedif=50, # req_std=0.5, # check_band='all' # ) input('continue? ') for method in methods: logger.info(f'getting results for {simsurveyDH.name} analyzed by {method}') rhandler = simsurveyDH.rhandlers[method]
from estimate_explosion_time.shared import get_custom_logger, main_logger_name, all_methods import logging logger = get_custom_logger(main_logger_name) logger.setLevel(logging.DEBUG) from estimate_explosion_time.core.analyse_fits_from_simulation.plots import Plotter from estimate_explosion_time.core.data_prep.data import DataHandler from estimate_explosion_time.shared import get_custom_logger, main_logger_name import logging import argparse parser = argparse.ArgumentParser() parser.add_argument('ind', type=int, nargs='+') parser.add_argument('method', type=str) args = parser.parse_args() logger = get_custom_logger(main_logger_name) logger.setLevel(logging.DEBUG) dh = DataHandler.get_dhandler('dummy') plotter = Plotter(dh, args.method) for ind in args.ind: plotter.plot_lc(ind)
from estimate_explosion_time.shared import get_custom_logger, main_logger_name, all_methods import logging logger = get_custom_logger(main_logger_name) logger.setLevel(logging.DEBUG) from estimate_explosion_time.core.analyse_fits_from_simulation.plots import Plotter from estimate_explosion_time.core.data_prep.data import DataHandler from estimate_explosion_time.shared import get_custom_logger, main_logger_name import logging import argparse parser = argparse.ArgumentParser() parser.add_argument('ind', type=int, nargs='+') parser.add_argument('method', type=str, default='mosfit', nargs='+') args = parser.parse_args() logger = get_custom_logger(main_logger_name) logger.setLevel(logging.DEBUG) dh = DataHandler.get_dhandler('simsurvey_simulation') for method in args.method: plotter = Plotter(dh, method) for ind in args.ind: plotter.plot_lc(ind)