Ticket #3532 (closed: fixed)
SaveMDEW: save the box data for a file-backed MDEventWorkspace
Reported by: | Janik Zikovsky | Owned by: | Janik Zikovsky |
---|---|---|---|
Priority: | major | Milestone: | Iteration 30 |
Component: | Mantid | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | Tester: | Owen Arnold |
Description
The file-based back end only updates the event data, not the box data.
Calling the SaveMDEW with a particular option should update the box data.
Perhaps another option to save anything that was not saved yet due to caching?
Change History
comment:11 Changed 9 years ago by Janik Zikovsky
In [13856]:
comment:12 Changed 9 years ago by Janik Zikovsky
In [13857]:
comment:13 Changed 9 years ago by Janik Zikovsky
In [13858]:
comment:14 Changed 9 years ago by Janik Zikovsky
Also, this needs to save the list of free space blocks for later re-use.
comment:15 Changed 9 years ago by Janik Zikovsky
In [13897]:
comment:16 Changed 9 years ago by Janik Zikovsky
In [13902]:
comment:17 Changed 9 years ago by Janik Zikovsky
- Status changed from accepted to verify
- Resolution set to fixed
In [13904]:
comment:18 Changed 9 years ago by Owen Arnold
- Status changed from verify to verifying
- Tester set to Owen Arnold
comment:19 Changed 9 years ago by Owen Arnold
- Status changed from verifying to reopened
- Resolution fixed deleted
I may have this wrong, but was expecting that both UpdateFileBackEnd and MakeFileBacked would result in a *.nxs file being created on save.
Only MakeFileBackend generated the file with the specified name in the specified location.
using UpdateFileBackEnd required filename/location, but did not result in a file being saved to that location.
comment:21 Changed 9 years ago by Janik Zikovsky
In [14786]:
comment:22 Changed 9 years ago by Janik Zikovsky
- Status changed from accepted to verify
- Resolution set to fixed
- UpdateFileBackEnd is used if you originally loaded a file with the FileBackEnd=True option (meaning that WS is file-backed). It then updates all the event and box data in the (already existing) .NXS file; the Filename parameter is then ignore.
- MakeFileBackend: this both saves the workspace, and switches from it being fully in memory to being file-backed and caching to disk at the given filename.
I've updated the properties so that unused ones are disabled when appropriate.
comment:24 Changed 9 years ago by Owen Arnold
- Status changed from verifying to closed
I've given this a thorough test now using LoadMD -> SaveMD in a recursive way, under lots of different schenarios. Modified properties are controlling the algorithm in exactly the way I would expect.
comment:25 Changed 5 years ago by Stuart Campbell
This ticket has been transferred to github issue 4379