Ticket #4723 (closed: fixed)
Add a very simple function to return the Python API number
Reported by: | Martyn Gigg | Owned by: | Martyn Gigg |
---|---|---|---|
Priority: | major | Milestone: | Release 2.0 |
Component: | Mantid | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | Tester: | Stuart Campbell |
Description
It will simply be this
def apiVersion(): """Indicates that this is version 2 of the API """ return 2
The old one will return 1
Users can then more easily tell which api is currently active in their environment
Change History
comment:2 Changed 9 years ago by Martyn Gigg
Refs #4723. Add apiVersion function.
Users can then more easily tell which is currently active.
Changeset: cbffd8e4ae2de4360a6c7ff15a2965be0fb11ce7
comment:3 Changed 9 years ago by Martyn Gigg
- Status changed from accepted to verify
- Resolution set to fixed
comment:4 Changed 9 years ago by Stuart Campbell
- Status changed from verify to verifying
- Tester set to Stuart Campbell
Note: See
TracTickets for help on using
tickets.