Ticket #5488 (closed: fixed)

Opened 8 years ago

Last modified 5 years ago

TimeSeriesProperty is only exposed for double/bool in Python

Reported by: Martyn Gigg Owned by: Martyn Gigg
Priority: major Milestone: Release 2.2
Component: Mantid Keywords:
Cc: Blocked By:
Blocking: Tester: Owen Arnold

Description

Some logs are TimeSeriesProperty<int> so Python cannot access these at the moment.

Tester: The LET00006278.nxs file in the system test Data directory contains a 'good_frames' log, which is a TimeSeriesProperty<int> type. The following should work after this ticket is fixed:

ws = Load('LET00006278.nxs')
run = ws.getRun()
good_frames_log = run['good_frames']
print good_frames_log.value

It currently raises an exception

AttributeError: 'Property' object has no attribute 'value'
  at line 4 in ''

Change History

comment:1 Changed 8 years ago by Martyn Gigg

  • Status changed from new to accepted

comment:2 Changed 8 years ago by Martyn Gigg

Add python type for TimeSeriesProperty<int>. Refs #5488

Changeset: 21d133fdeadd3717525344b5fd0a609a8c1ed1d2

comment:3 Changed 8 years ago by Martyn Gigg

  • Status changed from accepted to verify
  • Resolution set to fixed

comment:4 Changed 8 years ago by Martyn Gigg

Add python type for TimeSeriesProperty<int>. Refs #5488

Changeset: 21d133fdeadd3717525344b5fd0a609a8c1ed1d2

comment:5 Changed 8 years ago by Owen Arnold

  • Status changed from verify to verifying
  • Tester set to Owen Arnold

comment:6 Changed 8 years ago by Owen Arnold

  • Status changed from verifying to closed

comment:7 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 6334

Note: See TracTickets for help on using tickets.