コード例 #1
0
ファイル: broomstick.py プロジェクト: psbritt/FRENSIE-tests
    
    # Parse the command line options
    parser = OptionParser()
    parser.add_option("--threads", type="int", dest="threads", default=1,
                      help="the number of threads to use")
    parser.add_option("--db_path", type="string", dest="db_path",
                      help="the database name (with extension)")
    parser.add_option("--sim_name", type="string", dest="sim_name", default="sphere",
                      help="the simulation name")
    parser.add_option("--log_file", type="string", dest="log_file",
                      help="the file that will be used for logging")
    parser.add_option("--num_particles", type="float", dest="num_particles", default=1e3,
                      help="the number of particles to run")
    options,args = parser.parse_args()

    if options.db_path is None:
        print "The database path must be specified!"
        sys.exit(1)

    # Run the simulation
    runBroomstickSimulation( options.sim_name,
                             options.db_path,
                             options.num_particles,
                             MonteCarlo.IMPULSE_INCOHERENT_MODEL,
                             1.0,
                             Utility.doubleArrayFromString( "{1e-3, 998i, 1.0}" ),
                             options.threads,
                             options.log_file )
    
    
コード例 #2
0
ファイル: broomstick.py プロジェクト: psbritt/FRENSIE-tests
                   7.920208, 7.940206, 7.960204, 7.980202, 8.0002, 8.020198, 
                   8.040196, 8.060194, 8.080192, 8.10019, 8.120188, 8.140186, 
                   8.160184, 8.180182, 8.20018, 8.220178, 8.240176, 8.260174, 
                   8.280172, 8.30017, 8.320168, 8.340166, 8.360164, 8.380162, 
                   8.40016, 8.420158, 8.440156, 8.460154, 8.480152, 8.50015, 
                   8.520148, 8.540146, 8.560144, 8.580142, 8.60014, 8.620138, 
                   8.640136, 8.660134, 8.680132, 8.70013, 8.720128, 8.740126, 
                   8.760124, 8.780122, 8.80012, 8.820118, 8.840116, 8.860114, 
                   8.880112, 8.90011, 8.920108, 8.940106, 8.960104, 8.980102, 
                   9.0001, 9.020098, 9.040096, 9.060094, 9.080092, 9.10009, 
                   9.120088, 9.140086, 9.160084, 9.180082, 9.20008, 9.220078, 
                   9.240076, 9.260074, 9.280072, 9.30007, 9.320068, 9.340066, 
                   9.360064, 9.380062, 9.40006, 9.420058, 9.440056, 9.460054, 
                   9.480052, 9.50005, 9.520048, 9.540046, 9.560044, 9.580042, 
                   9.60004, 9.620038, 9.640036, 9.660034, 9.680032, 9.70003, 
                   9.720028, 9.740026, 9.760024, 9.780022, 9.80002, 9.820018, 
                   9.840016, 9.860014, 9.880012, 9.90001, 9.920008, 9.940006, 
                   9.960004, 9.980002, 10.0]

    # Run the simulation
    runBroomstickSimulation( options.sim_name,
                             options.db_path,
                             options.num_particles,
                             MonteCarlo.IMPULSE_INCOHERENT_MODEL,
                             10.0,
                             energy_bins,
                             options.threads,
                             options.log_file )
    
    
コード例 #3
0
ファイル: broomstick.py プロジェクト: psbritt/FRENSIE-tests
    parser.add_option("--db_path",
                      type="string",
                      dest="db_path",
                      help="the database name (with extension)")
    parser.add_option("--sim_name",
                      type="string",
                      dest="sim_name",
                      default="sphere",
                      help="the simulation name")
    parser.add_option("--log_file",
                      type="string",
                      dest="log_file",
                      help="the file that will be used for logging")
    parser.add_option("--num_particles",
                      type="float",
                      dest="num_particles",
                      default=1e3,
                      help="the number of particles to run")
    options, args = parser.parse_args()

    if options.db_path is None:
        print "The database path must be specified!"
        sys.exit(1)

    # Run the simulation
    runBroomstickSimulation(
        options.sim_name, options.db_path, options.num_particles,
        MonteCarlo.DECOUPLED_HALF_PROFILE_DB_HYBRID_INCOHERENT_MODEL, 0.2,
        Utility.doubleArrayFromString("{1e-3, 998i, 0.2}"), options.threads,
        options.log_file)
コード例 #4
0
ファイル: broomstick.py プロジェクト: psbritt/FRENSIE-tests
        0.138708, 0.139106, 0.139504, 0.139902, 0.1403, 0.140698, 0.141096,
        0.141494, 0.141892, 0.14229, 0.142688, 0.143086, 0.143484, 0.143882,
        0.14428, 0.144678, 0.145076, 0.145474, 0.145872, 0.14627, 0.146668,
        0.147066, 0.147464, 0.147862, 0.14826, 0.148658, 0.149056, 0.149454,
        0.149852, 0.15025, 0.150648, 0.151046, 0.151444, 0.151842, 0.15224,
        0.152638, 0.153036, 0.153434, 0.153832, 0.15423, 0.154628, 0.155026,
        0.155424, 0.155822, 0.15622, 0.156618, 0.157016, 0.157414, 0.157812,
        0.15821, 0.158608, 0.159006, 0.159404, 0.159802, 0.1602, 0.160598,
        0.160996, 0.161394, 0.161792, 0.16219, 0.162588, 0.162986, 0.163384,
        0.163782, 0.16418, 0.164578, 0.164976, 0.165374, 0.165772, 0.16617,
        0.166568, 0.166966, 0.167364, 0.167762, 0.16816, 0.168558, 0.168956,
        0.169354, 0.169752, 0.17015, 0.170548, 0.170946, 0.171344, 0.171742,
        0.17214, 0.172538, 0.172936, 0.173334, 0.173732, 0.17413, 0.174528,
        0.174926, 0.175324, 0.175722, 0.17612, 0.176518, 0.176916, 0.177314,
        0.177712, 0.17811, 0.178508, 0.178906, 0.179304, 0.179702, 0.1801,
        0.180498, 0.180896, 0.181294, 0.181692, 0.18209, 0.182488, 0.182886,
        0.183284, 0.183682, 0.18408, 0.184478, 0.184876, 0.185274, 0.185672,
        0.18607, 0.186468, 0.186866, 0.187264, 0.187662, 0.18806, 0.188458,
        0.188856, 0.189254, 0.189652, 0.19005, 0.190448, 0.190846, 0.191244,
        0.191642, 0.19204, 0.192438, 0.192836, 0.193234, 0.193632, 0.19403,
        0.194428, 0.194826, 0.195224, 0.195622, 0.19602, 0.196418, 0.196816,
        0.197214, 0.197612, 0.19801, 0.198408, 0.198806, 0.199204, 0.199602,
        0.2
    ]

    # Run the simulation
    runBroomstickSimulation(
        options.sim_name, options.db_path, options.num_particles,
        MonteCarlo.DECOUPLED_HALF_PROFILE_DB_HYBRID_INCOHERENT_MODEL, 0.2,
        energy_bins, options.threads, options.log_file)
コード例 #5
0
ファイル: broomstick.py プロジェクト: psbritt/FRENSIE-tests
    parser.add_option("--db_path",
                      type="string",
                      dest="db_path",
                      help="the database name (with extension)")
    parser.add_option("--sim_name",
                      type="string",
                      dest="sim_name",
                      default="sphere",
                      help="the simulation name")
    parser.add_option("--log_file",
                      type="string",
                      dest="log_file",
                      help="the file that will be used for logging")
    parser.add_option("--num_particles",
                      type="float",
                      dest="num_particles",
                      default=1e3,
                      help="the number of particles to run")
    options, args = parser.parse_args()

    if options.db_path is None:
        print "The database path must be specified!"
        sys.exit(1)

    # Run the simulation
    runBroomstickSimulation(
        options.sim_name, options.db_path, options.num_particles,
        MonteCarlo.WH_INCOHERENT_MODEL, 0.1,
        Utility.doubleArrayFromString("{1e-3, 988i, 0.0999, 9i, 0.1}"),
        options.threads, options.log_file)