Ticket #8702: muon_load_full_bins_only_test.py

File muon_load_full_bins_only_test.py, 398 bytes (added by Arturs Bekasovs, 7 years ago)
Line 
1rebin_fixed_params = 2.0 # bin size of 0.016 * 2
2finish = 10.0   
3
4emu_loaded_tuple = LoadMuonNexus("emu00006473.nxs", DetectorGroupingTable="emu_grouping")
5emu_loaded = emu_loaded_tuple[0]
6
7rebin_params = (emu_loaded.readX(0)[1] - emu_loaded.readX(0)[0]) * rebin_fixed_params
8
9result = MuonLoad("emu0006473.nxs", "emu_grouping", RebinParams=str(rebin_params), OutputType="GroupCounts", GroupIndex=0)