Ticket #5463 (closed: fixed)
Create helper struct for energy transfer mode
Reported by: | Martyn Gigg | Owned by: | Martyn Gigg |
---|---|---|---|
Priority: | major | Milestone: | Release 2.2 |
Component: | Mantid | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | Tester: | Jean Bilheux |
Description
We currently have conversions between energy transfer mode strings/ints in lots of places. It should be done in one place.
The aim is to create a struct that defines an enum for the 3 transfer modes and static to/from string methods for consistency in checking modes.
Change History
comment:2 Changed 8 years ago by Martyn Gigg
Create DeltaEMode struct. Refs #5463
It will help to consolidate code surrounding energy transfer modes.
Changeset: 437a9b6c98ee814341d149a55d0d2fe6702c559d
comment:3 Changed 8 years ago by Martyn Gigg
Create DeltaEMode struct. Refs #5463
It will help to consolidate code surrounding energy transfer modes.
Changeset: 437a9b6c98ee814341d149a55d0d2fe6702c559d
comment:5 Changed 8 years ago by Martyn Gigg
- Status changed from accepted to verify
- Resolution set to fixed
Note: See
TracTickets for help on using
tickets.
Create DeltaEMode struct. Refs #5463
It will help to consolidate code surrounding energy transfer modes.