Skip to content

Instantly share code, notes, and snippets.

@tspriggs
Last active February 17, 2020 16:55
Show Gist options
  • Save tspriggs/d40f0ea9a2f9c960efc436b754c14855 to your computer and use it in GitHub Desktop.
Save tspriggs/d40f0ea9a2f9c960efc436b754c14855 to your computer and use it in GitHub Desktop.
logger.info(f"N fitted PNe: {}")
logger.info(f"PNLF N: {}")
logger.info(f"Bolometric luminosity: {}")
logger.info(f"L_bol error: {} {}")
logger.info(f"Rmag: {}")
logger.info(f"Vmag: {}")
logger.info(f"Distance (Mpc) +/-: {} {}")
logger.info(f"dM +/-: {} {}")
logging.basicConfig(filename=f"{EXPORT_DIR}{galaxy_name}_{loc}_log.log", level=logging.INFO, format="%(asctime)s -%(message)s", datefmt="%d-%b-%y %H:%M:%S")
logger = logging.getLogger()
logger.info("Starting PNe analysis")
import logging
peak_filter = np.where(objects["peak"]<30)
x_sep = objects["x"][peak_filter]
y_sep = objects["y"][peak_filter]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment