Skip to content

Latest commit

 

History

History
59 lines (41 loc) · 1.89 KB

LoadFullprofResolution-v1.rst

File metadata and controls

59 lines (41 loc) · 1.89 KB

Description

Load Fullprof resolution (.irf) file to TableWorkspace(s) and optionally into the instruments of matrix workspaces with one workspace per bank of the .irf file. Either or both of the Tableworkspace(s) and matrix workspace must be set.

Where a Workspace is specified the support for translating Fullprof resolution parameters into the workspace for subsequent fitting is limitted to Fullprof:

  • NPROF=13, Ikeda-Carpender pseudo-Voigt translated into IkedaCarpenterPV <func-IkedaCarpenterPV> according to CreateIkedaCarpenterParameters
  • NPROF=9, back-to-back-exponential pseudo-Voigt translated into BackToBackExponential <func-BackToBackExponential> according to CreateBackToBackParameters

Note for NPROF=9 the translation is currently ignoring the Lorentzian part of the pseudo-Voigt.

Usage

Example - Run LoadprofResolution for both TableWorkspace and workspace with MUSR Instrument

ExLoadFullprofResolutionSimple

# We run LoadFullprof Resolution with both the OutputTable workspace # and an appropriate output workspace (group of 2) # selecting 2 banks from the IRF file ws = Load("MUSR00015189")

tws = LoadFullprofResolution("MUSR_01.irf",Banks="3,5", Workspace="ws")

#Print first four rows for i in [0,1,2,3]: row = tws.row(i) print "{'Name': '%s', 'Value_3': %.2f, 'Value_5': %.2f}" % ( row["Name"], row["Value_3"], row["Value_5"] )

Output:

ExLoadFullprofResolutionSimple

{'Name': 'BANK', 'Value_3': 3.00, 'Value_5': 5.00} {'Name': 'Alph0', 'Value_3': 1.60, 'Value_5': 1.61} {'Name': 'Alph1', 'Value_3': 1.50, 'Value_5': 1.30} {'Name': 'Beta0', 'Value_3': 33.57, 'Value_5': 37.57}