Ejemplo n.º 1
0
    def __init__(self, remove_death_time):
        BaseParser.__init__(self, remove_death_time)
        self.WDT = "FFDA8000"
        self.UNRESET_DEVICE = "FFDA6000"
        self.TIMEOUT_SPI = "FFDAB000"
        self.STM_START = "FFDAF000"
        self.BUFFER_FILL = "FFDAF100"
        self.MACHINE = "FFDAD000"
        self.SH_START = "F0DA2000"
        self.SH_UART = "F0DA3000"
        self.SH_ALU = "F0DA4000"

        self.OPCODE0 = "F0DA1000"
        self.OPCODE1 = "F0DA1001"
        self.REFERENCE0 = "55555555"
        self.SYMBOL0 = "5"
        self.REFERENCE1 = "AAAAAAAA"
        self.SYMBOL1 = "A"
        self.THRESHOLD = 128

        self.double_errors = []
Ejemplo n.º 2
0
    def __init__(self,
                 brief_data_file="brief_data.txt",
                 remove_death_time=False):
        BaseParser.__init__(self, brief_data_file, remove_death_time)
        self.STM_BUFFER_FILL = "FFDA0F00"
        self.STM_MACHINE = "FFDA0F01"
        self.STM_TIMEOUT_SPI = "FFDA0F02"
        self.STM_EVENT_REG = "FFDA0E00"
        self.STM_SH_UNRESET = "FFDA0A00"

        self.SH_START = "F0DA0000"
        self.SH_MEM = [
            "F0DA1000", "F0DA1001", "F0DA1002", "F0DA1003", "F0DA1004",
            "F0DA1005", "F0DA1006", "F0DA1007", "F0DA1008"
        ]
        self.MODULE_NAME_LIST = [
            "DICE", "DICE_cutWell", "DICE_band", "DICE_band_cutWell",
            "DFF (with Hamming)", "Hamming code",
            "DICE_band_cutWell (CKLNQD1)", "DICE_band_cutWell (CGDICE)",
            "DFF (without DICE)"
        ]

        self.SYMBOL0 = "5"
        self.SYMBOL1 = "A"
        self.REFERENCE0 = self.SYMBOL0 * 8
        self.REFERENCE1 = self.SYMBOL1 * 8

        self.THRESHOLD = 64
        self.RANGE_GROUP = 64

        self.brief_file = brief_data_file
        self.errors_dict = {module: [0, []] for module in self.SH_MEM}
        self.multiple_errors_dict = {module: [0, []] for module in self.SH_MEM}
        self.module_name = {
            module: name
            for module, name in zip(self.SH_MEM, self.MODULE_NAME_LIST)
        }
Ejemplo n.º 3
0
 def __init__(self):
     BaseParser.__init__(self)
     self._telescope = 'RXTE'
     self._datetime_format = '%Y:%j:%H:%M:%S'
Ejemplo n.º 4
0
	def __init(self):
		BaseParser.__init__(self)
Ejemplo n.º 5
0
 def __init__(self):
   BaseParser.__init__(self)
   self._telescope = 'Hubble'
 def __init__(self, name = 'MultiParser', verbose = False, window_size = 3):
     BaseParser.__init__(self, name, verbose, window_size)
     
     self.scope = False
Ejemplo n.º 7
0
 def __init__(self):
     BaseParser.__init__(self)
     self._telescope = 'Swift'
     self._data_url = 'https://www.swift.psu.edu/operations/obsSchedule.php?a=0&d=' + date.today(
     ).strftime('%Y-%m-%d')  # Changes per day
Ejemplo n.º 8
0
 def __init__(self):
   BaseParser.__init__(self)
   self._telescope = 'Swift'
   self._data_url = 'https://www.swift.psu.edu/operations/obsSchedule.php?d=2013-04-21&a=0' # Changes per day
Ejemplo n.º 9
0
 def __init__(self):
   BaseParser.__init__(self)
   self._telescope = 'Herschel'
   self._data_url = 'http://herschel.esac.esa.int/observing/ScheduleReport.html'
   self._datetime_format = '%Y-%m-%dT%H:%M:%SZ'  # 2013-04-30T13:56:59Z
Ejemplo n.º 10
0
 def __init__(self):
   BaseParser.__init__(self)
   self._telescope = 'Swift'
Ejemplo n.º 11
0
 def __init__(self):
   BaseParser.__init__(self)
   self._telescope = 'XMM-Newton'
   self._datetime_format = '%Y-%m-%d | %H:%M:%S'
 def __init__(self):
   BaseParser.__init__(self)
   self._telescope = 'XMM-Newton'
   #self._data_url = 'http://xmm2.esac.esa.int/external/xmm_sched/short_term_schedule.php'
   self._datetime_format = '%Y-%m-%d | %H:%M:%S'
 def __init__(self):
     BaseParser.__init__(self)
     self._telescope = 'INTEGRAL'
     self._datetime_format = '%Y-%m-%d %H:%M:%S.0'
Ejemplo n.º 14
0
 def __init__(self):
   BaseParser.__init__(self)
   self._telescope = 'Herschel'
   self._datetime_format = '%Y-%m-%dT%H:%M:%SZ'
Ejemplo n.º 15
0
 def __init__(self, remove_death_time):
     BaseParser.__init__(self, remove_death_time)
     self.WDT = "FFDA8000"
Ejemplo n.º 16
0
    def __init__(self, name='IntraParser', verbose=False, window_size=3):
        BaseParser.__init__(self, name, verbose, window_size)

        self.scope = True
Ejemplo n.º 17
0
 def __init__(self):
   BaseParser.__init__(self)
   self._telescope = 'Swift'
   self._data_url = 'https://www.swift.psu.edu/operations/obsSchedule.php?a=0&d=' + date.today().strftime('%Y-%m-%d') # Changes per day
Ejemplo n.º 18
0
 def __init__(self):
   BaseParser.__init__(self)
   self._telescope = 'XMM-Newton'
   self._data_url = 'http://xmm2.esac.esa.int/external/xmm_sched/short_term_schedule.php'
Ejemplo n.º 19
0
 def __init__(self):
     BaseParser.__init__(self)
     self._telescope = "Suzaku"
     self._data_url = "http://www.astro.isas.ac.jp/suzaku/schedule/shortterm/"
     self._datetime_format = "%Y %m %d %H %M %S"
Ejemplo n.º 20
0
 def __init__(self):
   BaseParser.__init__(self)
   self._telescope = 'INTEGRAL'
   self._datetime_format = '%Y-%m-%d %H:%M:%S.0'
Ejemplo n.º 21
0
from base_parser import BaseParser
from memory_parser import MemoryParser
from file_list import filename_list

base = BaseParser()
# base.read_cosrad_table("_cosrad/82_2020-3-3_23i16i27.xls")

BRIEF_DATA = "brief_data.txt"


def create_dir(path_dir):
    import os
    if os.path.isdir(path_dir) is False:
        os.mkdir(path_dir)


memory = MemoryParser(BRIEF_DATA, False)

for file, cosrad in filename_list:
    print("{0:s} is being processed".format(file))
    memory.error_parse(file, cosrad)
Ejemplo n.º 22
0
 def __init__(self):
   BaseParser.__init__(self)
   self._telescope = 'INTEGRAL'
   self._data_url = 'http://integral.esac.esa.int/isocweb/schedule.html?action=intro'
   self._datetime_format = '%Y-%m-%d %H:%M:%S'
Ejemplo n.º 23
0
 def __init__(self):
     BaseParser.__init__(self)
     self._telescope = "Fermi"
     self._datetime_format = "%Y-%j-%H:%M:%S"
Ejemplo n.º 24
0
 def __init__(self, remove_death_time):
     BaseParser.__init__(self, remove_death_time)
     self.OPCODE = "F0DA4000"
     self.REFERENCE = "00000801"
Ejemplo n.º 25
0
 def __init__(self):
   BaseParser.__init__(self)
   self._telescope = 'Spitzer'
Ejemplo n.º 26
0
            img_dim = L_high_np.shape[1:]
            sample(sample_imgs,
                   split=split_point,
                   figure_size=(2, 3),
                   img_dim=img_dim,
                   path=filepath,
                   num=epoch,
                   metrics=True)


if __name__ == "__main__":
    criterion = Restore_Loss()
    model = RestoreNet_Unet(use_MaskMul=False)
    decom_net = DecomNet()

    parser = BaseParser()
    args = parser.parse()

    with open(args.config) as f:
        config = yaml.load(f)
    args.checkpoint = True

    if args.checkpoint is not None:
        decom_net = load_weights(decom_net,
                                 path='./weights/decom_net_normal.pth')
        log('DecomNet loaded from decom_net.pth')
        model = load_weights(model, path='./weights/restore_net_finetune.pth'
                             )  # restore-SID/restore_mask_0.pth')
        log('Model loaded from restore_net.pth')

    root_path_train = r'H:\datasets\Low-Light Dataset\KinD++\LOLdataset\our485'
Ejemplo n.º 27
0
 def __init__(self):
     BaseParser.__init__(self)
     self._telescope = 'NuStar'
     self._data_url = 'http://www.srl.caltech.edu/NuSTAR_Public/NuSTAROperationSite/AFT_Public.php'
     self._datetime_format = '%Y:%j:%H:%M:%S'
Ejemplo n.º 28
0
 def __init__(self):
     BaseParser.__init__(self)
     self._telescope = 'Suzaku'
     self._data_url = 'http://www.astro.isas.ac.jp/suzaku/schedule/shortterm/'
     self._datetime_format = '%Y %m %d %H %M %S'
Ejemplo n.º 29
0
 def __init__(self):
     BaseParser.__init__(self)
     self._telescope = 'XMM-Newton'
     #self._data_url = 'http://xmm2.esac.esa.int/external/xmm_sched/short_term_schedule.php'
     self._datetime_format = '%Y-%m-%d | %H:%M:%S'
Ejemplo n.º 30
0
 def __init__(self):
     BaseParser.__init__(self)
     self._telescope = 'Hubble'
Ejemplo n.º 31
0
 def __init__(self):
     BaseParser.__init__(self)
     self._telescope = 'INTEGRAL'
     self._data_url = 'http://integral.esac.esa.int/isocweb/schedule.html?action=intro'
     self._datetime_format = '%Y-%m-%d %H:%M:%S'
Ejemplo n.º 32
0
 def __init__(self):
   BaseParser.__init__(self)
   self._telescope = 'NuStar'
   self._data_url = 'http://www.srl.caltech.edu/NuSTAR_Public/NuSTAROperationSite/AFT_Public.php'
   self._datetime_format = '%Y:%j:%H:%M:%S'
Ejemplo n.º 33
0
 def __init__(self):
   BaseParser.__init__(self)
   self._telescope = 'Chandra'
   self._datetime_format = '%Y:%j:%H:%M:%S'
Ejemplo n.º 34
0
 def __init__(self, rss_url):
     BaseParser.__init__(self)
     self.url = rss_url
Ejemplo n.º 35
0
 def __init__(self):
   BaseParser.__init__(self)
   self._telescope = 'Fermi'
   self._data_url = 'http://fermi.gsfc.nasa.gov/ssc/observations/timeline/posting/'
   self._datetime_format = '%Y-%j-%H:%M:%S'