コード例 #1
0
#!/usr/bin/env python
from BurstCube.simGenerator import configurator
conf = configurator('config.yaml')

from BurstCube.bcSim import simFiles
sfs = simFiles('config.yaml')

# print(sfs.sims[0].simFile)
# type(sfs.sims[0].simFile)# fileN = 'FIN_1000.000keV_15.00ze_0.00az.inc1.id1.sim'

area = sfs.calculateAeff()

simulation = 0
detectOne = 0
detectTwo = 0
detectThree = 0
detectFour = 0
percentOne = 0
percentTwo = 0
percentThree = 0
percentFour = 0
# detectOneTot = 0
# detectTwoTot = 0
# detectThreeTot = 0
# detectFourTot = 0
import sys
detectTot = 0
triggerDict = {}
# f = open("dict.txt","w")
doubTriggerDict = {}
triggerSim = []
コード例 #2
0
def create_configurator(request):

    conf = configurator(resource_filename('BurstCube', 'data/config.yaml'))
    
    return conf
コード例 #3
0
ファイル: bcSim.py プロジェクト: lepalmer/Simulation
    def __init__(self, config_file):
        """Object for a multiple simulations over energy and angle."""

        self.conf = configurator(config_file)
        self.sims = self.loadFiles()