This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Analyse a `logs_reduced_*.yml` file from lstmcpipe by going through all job ids and printing their status if not COMPLETED | |
""" | |
import argparse | |
import yaml | |
import subprocess | |
import re | |
def get_data_from_yaml(file_path): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
This script get the dependencies of a job and list all of them that are not COMPLETED | |
""" | |
import subprocess | |
import re | |
import argparse | |
# Create the argument parser |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from ctaplot.ana.ana import get_magic_sensitivity | |
from pyirf.spectral import CRAB_MAGIC_JHEAP2015 | |
def magic_sens_in_crab_unit(): | |
magic_sens = get_magic_sensitivity() | |
energy = magic_sens['e_center'] | |
crab = CRAB_MAGIC_JHEAP2015(energy) | |
return energy, (magic_sens['sensitivity_lima_5off']/crab).decompose() | |