Ticket #6205 (assigned)

Opened 8 years ago

Last modified 5 years ago

Separate non-algorithm objects that log in algorithms don't observe the setLogging flag

Reported by: Martyn Gigg Owned by: Anyone
Priority: minor Milestone: Backlog
Component: Framework Keywords:
Cc: Blocked By:
Blocking: Tester:

Description

The script below still outputs some logging information from a helper class that does not respect the value of the setLogger property on the algorithm.

from mantid.api import *

def run_algorithm(name, logging, **kwargs):
    alg = AlgorithmManager.createUnmanaged(name)
    alg.initialize()
    alg.setLogging(logging)
    for key, value in kwargs.iteritems():
        alg.setProperty(key, value)
    alg.execute()
    return alg

#===================================================================

run_algorithm('LoadRaw',logging=False,
              OutputWorkspace='ws',Filename='CSP79590.raw')

Change History

comment:1 Changed 8 years ago by Nick Draper

  • Owner set to Anyone
  • Status changed from new to assigned

Perhaps we do want a shared base class for algorithm helper classes, to sort out things like this.

comment:2 Changed 8 years ago by Nick Draper

  • Milestone changed from Release 2.4 to Release 2.5

Moved at the code freeze for release 2.4

comment:3 Changed 7 years ago by Nick Draper

  • Milestone changed from Release 2.5 to Release 2.6

Moved to r2.6 at the end of r2.5

comment:4 Changed 7 years ago by Nick Draper

  • Status changed from assigned to new

comment:5 Changed 7 years ago by Nick Draper

  • Component changed from Mantid to Framework

comment:6 Changed 7 years ago by Nick Draper

  • Milestone changed from Release 2.6 to Backlog

Moved to the Backlog after the code freeze for R2.6

comment:7 Changed 7 years ago by Nick Draper

  • Status changed from new to assigned

bulk move to assigned at the into of the triage step

comment:8 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 7051

Note: See TracTickets for help on using tickets.