Ticket #4723 (closed: fixed)

Opened 9 years ago

Last modified 5 years ago

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:1 Changed 9 years ago by Martyn Gigg

  • Status changed from new to accepted

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

comment:5 Changed 9 years ago by Stuart Campbell

  • Status changed from verifying to closed

Does indeed return a 2 by default, then if I run:

from mantidsimple import *

then it returns a 1.

comment:6 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 5570

Note: See TracTickets for help on using tickets.