本文整理汇总了Python中BriPy.isos2track方法的典型用法代码示例。如果您正苦于以下问题:Python BriPy.isos2track方法的具体用法?Python BriPy.isos2track怎么用?Python BriPy.isos2track使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BriPy
的用法示例。
在下文中一共展示了BriPy.isos2track方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_doCalc_3
# 需要导入模块: import BriPy [as 别名]
# 或者: from BriPy import isos2track [as 别名]
def test_doCalc_3(self):
BriPy.isos2track([922350, 922380, 942390])
s = Storage()
s.IsosIn = MassStream({942390: 1.0})
s.doCalc(24110*365.25*24*3600)
assert(s.IsosOut.mass < 1.0)
assert_almost_equal(s.IsosOut.comp[942390], 0.5, 3)
示例2: test_setParams
# 需要导入模块: import BriPy [as 别名]
# 或者: from BriPy import isos2track [as 别名]
def test_setParams(self):
BriPy.isos2track([922350, 922380, 942390])
r = Reprocess({"U235": 0.9, "922380": 0.999, "94239": 0.99})
r.doCalc(MassStream({942390: 1.0}))
r.setParams()
assert_equal(r.ParamsIn["Mass"], 1.00)
assert_equal(r.ParamsOut["Mass"], 0.99)
示例3: test_setParams
# 需要导入模块: import BriPy [as 别名]
# 或者: from BriPy import isos2track [as 别名]
def test_setParams(self):
BriPy.isos2track([922350, 922380, 942390])
s = Storage()
s.doCalc(MassStream({942390: 1.0}), 24110*365.25*24*3600)
s.setParams()
assert_equal(s.ParamsIn["Mass"], 1.00)
assert(0.5 < s.ParamsOut["Mass"] < 1.0)
示例4: test_doCalc_2
# 需要导入模块: import BriPy [as 别名]
# 或者: from BriPy import isos2track [as 别名]
def test_doCalc_2(self):
BriPy.isos2track([922350, 922380, 942390])
s = Storage()
s.decay_time = 0.0
s.doCalc(MassStream({942390: 1.0}))
assert_equal(s.IsosOut.mass, 1.0)
assert_equal(s.IsosOut.comp[942390], 1.0)
示例5: test_initialize_3
# 需要导入模块: import BriPy [as 别名]
# 或者: from BriPy import isos2track [as 别名]
def test_initialize_3(self):
BriPy.isos2track([922350, 922380, 942390])
r = Reprocess({"U235": 0.9, "922380": 0.999, "PU2390": 0.99})
r.initialize({92: 0.99})
assert_almost_equal(r.sepeff[922350], 0.99)
assert_almost_equal(r.sepeff[922380], 0.99)
assert_almost_equal(r.sepeff[942390], 1.0)
示例6: test_doCalc_1
# 需要导入模块: import BriPy [as 别名]
# 或者: from BriPy import isos2track [as 别名]
def test_doCalc_1(self):
BriPy.isos2track([922350, 922380, 942390])
r = Reprocess({"U235": 0.9, "922380": 0.999, "94239": 0.99})
r.IsosIn = MassStream({942390: 1.0})
r.doCalc()
assert_equal(r.IsosOut.mass, 0.99)
assert_equal(r.IsosOut.comp[942390], 1.0) # Recall ms.comp is normalized
示例7: test_writeout_1
# 需要导入模块: import BriPy [as 别名]
# 或者: from BriPy import isos2track [as 别名]
def test_writeout_1(self):
"""Text only."""
BriPy.isos2track([922350])
fcc = FCComp(["Mass"])
fcc.IsosIn = MassStream({922350: 1.0})
fcc.IsosOut = MassStream({922350: 0.5})
fcc.writeout()
示例8: test_writeText
# 需要导入模块: import BriPy [as 别名]
# 或者: from BriPy import isos2track [as 别名]
def test_writeText(self):
BriPy.isos2track([922350])
fcc = FCComp(["Mass"])
fcc.IsosIn = MassStream({922350: 1.0})
fcc.IsosOut = MassStream({922350: 0.5})
fcc.setParams()
fcc.writeText()
示例9: test_initialize_1
# 需要导入模块: import BriPy [as 别名]
# 或者: from BriPy import isos2track [as 别名]
def test_initialize_1(self):
BriPy.isos2track([922350, 922380, 942390])
r = Reprocess()
assert_equal(r.sepeff, {})
r.initialize({92: 0.99, 942390: 0.9})
assert_almost_equal(r.sepeff[922350], 0.99)
assert_almost_equal(r.sepeff[922380], 0.99)
assert_almost_equal(r.sepeff[942390], 0.9)
示例10: test_Reprocess_2
# 需要导入模块: import BriPy [as 别名]
# 或者: from BriPy import isos2track [as 别名]
def test_Reprocess_2(self):
BriPy.isos2track([922350, 922380, 942390])
r = Reprocess({"U235": 0.9, "922380": 0.999, "94239": 0.99})
assert_equal(r.name, "")
assert_almost_equal(r.sepeff[922350], 0.9)
assert_almost_equal(r.sepeff[922380], 0.999)
assert_almost_equal(r.sepeff[942390], 0.99)
assert_equal(r.params2track, ["Mass"])
示例11: test_writeHDF5_1
# 需要导入模块: import BriPy [as 别名]
# 或者: from BriPy import isos2track [as 别名]
def test_writeHDF5_1(self):
BriPy.isos2track([922350])
BriPy.write_hdf5(True)
fcc = FCComp([], 'fcc')
fcc.IsosIn = MassStream({922350: 1.0})
fcc.IsosOut = MassStream({922350: 0.5})
fcc.PassNum = 1
fcc.writeHDF5()
os.remove('fcc.h5')
示例12: test_writeout_3
# 需要导入模块: import BriPy [as 别名]
# 或者: from BriPy import isos2track [as 别名]
def test_writeout_3(self):
"""HDF5 & Text output."""
BriPy.isos2track([922350])
BriPy.write_hdf5(True)
BriPy.write_text(True)
fcc = FCComp(["Mass"], 'fcc')
fcc.IsosIn = MassStream({922350: 1.0})
fcc.IsosOut = MassStream({922350: 0.5})
fcc.writeout()
os.remove('fcc.h5')
示例13: print
# 需要导入模块: import BriPy [as 别名]
# 或者: from BriPy import isos2track [as 别名]
print("ParamsOut: " + str(fc.ParamsOut))
print("Pass Number: " + str(fc.PassNum))
print("Do Calc Empty: " + str( fc.doCalc() ))
testCD = {922350: 10.0, 10010: 1.0}
print("Do Calc Dictonary: " + str( fc.doCalc(testCD) ))
testMS = BriPy.MassStream({942390: 10.0, 80160: 20.0})
print("Do Calc MassStream: " + str( fc.doCalc(testMS) ))
return
rp0 = BriPy.Reprocess()
print("Empty Reprocessing Cycle Component")
printFCComp(rp0)
print("")
SE1 = {92: 0.99, 94: 0.9}
BriPy.isos2track([922350, 942390, 10010])
rp1 = BriPy.Reprocess({})
rp1.initialize(SE1)
print("SE with no name...")
printFCComp(rp1)
print("")
SE2 = {922350: 0.99, 942390: 0.9}
rp2 = BriPy.Reprocess({}, "SE with name!")
rp2.initialize(SE2)
printFCComp(rp2)
print("")
SE3 = {"U": 0.99, "PU239": 0.9}
rp3 = BriPy.Reprocess(SE3)
示例14: test_load_isos2track_hdf5_4
# 需要导入模块: import BriPy [as 别名]
# 或者: from BriPy import isos2track [as 别名]
def test_load_isos2track_hdf5_4(self):
old_isos = BriPy.isos2track()
BriPy.isos2track([80160])
BriPy.load_isos2track_hdf5('isos.h5', '/NotIsos', True)
assert_equal(BriPy.isos2track(), [10010, 922350, 922380])
BriPy.isos2track(old_isos)
示例15: test_isos2track
# 需要导入模块: import BriPy [as 别名]
# 或者: from BriPy import isos2track [as 别名]
def test_isos2track(self):
old_isolist = BriPy.isos2track()
new_isolist = BriPy.mixed_2_zzaaam_List([92235, "H1"])
BriPy.isos2track(new_isolist)
assert_equal(BriPy.isos2track(), [10010, 922350])
BriPy.isos2track(old_isolist)