Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doctest failure for AbsorptionCorrection #10499

Closed
NickDraper opened this issue Jun 13, 2014 · 1 comment
Closed

Doctest failure for AbsorptionCorrection #10499

NickDraper opened this issue Jun 13, 2014 · 1 comment
Assignees
Labels
Documentation Issues and pull requests related to documentation High Priority An issue or pull request that if not addressed is severe enough to postponse a release.
Milestone

Comments

@NickDraper
Copy link
Contributor

ticket http://trac.mantidproject.org/mantid/ticket/9638 was tested and merged with a doctest tailure for AbsorptionCorrection.

This is to correct it.

The error was


Document: algorithms/AbsorptionCorrection-v1
----------------------------------------- - - - 
CreateSampleWorkspace-[Notice] CreateSampleWorkspace started
CreateSampleWorkspace-[Notice] CreateSampleWorkspace successful, Duration 0.00 seconds
ConvertUnits-[Notice] ConvertUnits started
ConvertUnits-[Notice] ConvertUnits successful, Duration 0.00 seconds
**********************************************************************
File "algorithms/AbsorptionCorrection-v1.rst", line 155, in ExSimpleSpere
Failed example:
    #setup the sample shape
    sphere = '''`<sphere id="sample-sphere">`
          `<centre x="0" y="0" z="0"/>`
          `<radius val="0.1" />`
      `</sphere>`'''

    ws = CreateSampleWorkspace("Histogram",NumBanks=1,BankPixelWidth=1)
    ws = ConvertUnits(ws,"Wavelength")
    ws = Rebin(ws,Param=[1])
    CreateSampleShape(ws,sphere)
    SetSampleMaterial(ws,ChemicalFormula="V")

    #restrict the number of wavelength points to speed up the example
    wsOut = AbsorptionCorrection(ws,NumberOfWavelengthPoints=5)

    print "The created workspace has one entry for each spectra: %i" % wsOut.getNumberHistograms()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib64/python2.6/doctest.py", line 1253, in __run
        compileflags, 1) in test.globs
      File "`<doctest ExSimpleSpere[0]>`", line 9, in `<module>`
        ws = Rebin(ws,Param=[1])
      File "/home/builder/Jenkins/workspace/develop_incremental/label/rhel6-build/build/bin/mantid/simpleapi.py", line 566, in algorithm_wrapper
        _set_properties(algm, *args, **final_keywords)
      File "/home/builder/Jenkins/workspace/develop_incremental/label/rhel6-build/build/bin/mantid/simpleapi.py", line 530, in _set_properties
        alg_object.setProperty(key, value)
    RuntimeError: Unknown property search object Param
**********************************************************************
1 items had failures:
   1 of   1 in ExSimpleSpere
1 tests in 1 items.
0 passed and 1 failed.
***Test Failed*** 1 failures.
@NickDraper
Copy link
Contributor Author

This issue was originally trac ticket 9656

@NickDraper NickDraper added High Priority An issue or pull request that if not addressed is severe enough to postponse a release. Documentation Issues and pull requests related to documentation labels Jun 3, 2015
@NickDraper NickDraper self-assigned this Jun 3, 2015
@NickDraper NickDraper added this to the Release 3.2 milestone Jun 3, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation Issues and pull requests related to documentation High Priority An issue or pull request that if not addressed is severe enough to postponse a release.
Projects
None yet
Development

No branches or pull requests

1 participant