Ticket #1877 (closed: invalid)
Boolean properties should be represented as booleans in python
Reported by: | Peter Peterson | Owned by: | Martyn Gigg |
---|---|---|---|
Priority: | minor | Milestone: | Release 2.1 |
Component: | Python | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | Tester: | Nick Draper |
Description
Rather than getting back 0/1 when asking for the value of Boolean property, return True/False.
Change History
comment:1 Changed 10 years ago by Nick Draper
- Status changed from new to assigned
- Owner set to Martyn Gigg
comment:2 Changed 10 years ago by Nick Draper
- Milestone changed from Iteration 26 to Iteration 27
Bulk move of tickets to iteration 27, if your ticket is essential for Iteration 26 then move it back.
comment:3 Changed 10 years ago by Nick Draper
- Milestone changed from Iteration 27 to Iteration 28
Bulk move of tickets at the end of iteration 27
comment:4 Changed 9 years ago by Nick Draper
- Milestone changed from Iteration 28 to Iteration 29
Bulk move of tickets at the end of iteration 28
comment:5 Changed 9 years ago by Nick Draper
- Milestone changed from Iteration 29 to Iteration 30
Accepted and assigned tickets moved at iteration 29 code freeze
comment:6 Changed 9 years ago by Nick Draper
- Milestone changed from Iteration 30 to Iteration 31
Bulk move of tickets to iteration 31 at the iteration 30 code freeze
comment:7 Changed 9 years ago by Nick Draper
- Milestone changed from Iteration 32 to Iteration 33
Moved to iteration 33 at iteration 32 code freeze
comment:9 Changed 9 years ago by Martyn Gigg
- Status changed from accepted to verify
- Resolution set to invalid
This is is now an inherent property of the new API
from mantid.simpleapi import Load, ConvertUnits, mtd ws = Load("MAR11015.raw") ws = ConvertUnits(ws, Target='Energy') alg = ws.getHistory().lastAlgorithm() align_bins = alg.getProperty("AlignBins").value print 'Varibale type',type(align_bins)
comment:10 Changed 8 years ago by Nick Draper
- Status changed from verify to verifying
- Tester set to Nick Draper
comment:11 Changed 8 years ago by Nick Draper
- Status changed from verifying to closed
invalid approved
comment:12 Changed 5 years ago by Stuart Campbell
This ticket has been transferred to github issue 2724
Note: See
TracTickets for help on using
tickets.