ESS_GUIESS_GUI_DocsESS_GUI_batch_fittingESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_iss879ESS_GUI_iss959ESS_GUI_openclESS_GUI_orderingESS_GUI_sync_sascalccostrafo411magnetic_scattrelease-4.1.1release-4.1.2release-4.2.2release_4.0.1ticket-1009ticket-1094-headlessticket-1242-2d-resolutionticket-1243ticket-1249ticket885unittest-saveload
Last change
on this file since d970df9 was
33add9e,
checked in by Mathieu Doucet <doucetm@…>, 13 years ago
|
Add reader for Mantid output
|
-
Property mode set to
100644
|
File size:
288 bytes
|
Line | |
---|
1 | import nxs |
---|
2 | filename = "/home/m2d/data/output/5729_frame1_Iqxy.nxs" |
---|
3 | |
---|
4 | fd = nxs.open(filename, 'rw') |
---|
5 | |
---|
6 | fd.opengroup('mantid_workspace_1') |
---|
7 | fd.opengroup('workspace') |
---|
8 | fd.opendata('values') |
---|
9 | y = fd.getdata().copy() |
---|
10 | |
---|
11 | fd.closedata() |
---|
12 | |
---|
13 | fd.opendata("errors") |
---|
14 | e = fd.getdata().copy() |
---|
15 | |
---|
16 | |
---|
17 | print y |
---|
18 | print e |
---|
19 | |
---|
Note: See
TracBrowser
for help on using the repository browser.