-
Notifications
You must be signed in to change notification settings - Fork 122
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
Fix for import error in ISIS SX reduction classes #38014
Fix for import error in ISIS SX reduction classes #38014
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, I just spotted a couple of typos.
if dataPath[-4:] == ".raw": | ||
# assume log is kept separately in a .log file with same path | ||
LoadLog(Workspace=tmpWS, Filename="".join(dataPath[:-4] + ".log")) | ||
self.exec_child_alg("CreateSampleWorkspace", Workspace=tmpWS, Filename="".join(dataPath[:-4] + ".log")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
self.exec_child_alg("CreateSampleWorkspace", Workspace=tmpWS, Filename="".join(dataPath[:-4] + ".log")) | |
self.exec_child_alg("LoadLog", Workspace=tmpWS, Filename="".join(dataPath[:-4] + ".log")) |
|
||
def createGoniometerTable(self): | ||
""" | ||
:return: Empty table workspace with columns Run, Chi, Phi and GonioAxis (unit vector) | ||
""" | ||
gonioTable = CreateEmptyTableWorkspace(StoreInADS=False) | ||
gonioTable = self.exec_child_alg(" CreateEmptyTableWorkspace") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
gonioTable = self.exec_child_alg(" CreateEmptyTableWorkspace") | |
gonioTable = self.exec_child_alg("CreateEmptyTableWorkspace") |
Thanks sorry done in a rush - will fix! |
Description of work
Replace simpleapi imports with child algorithm calls in
FindGoniometerFromUB
and use newfrom plugins.algorithms
prefix when importing function from algorithm filePurpose of work
This import fails on nightly on IDAaaS
but not on my local build or in mantid 6.10 IDAaaS
@jclarkeSTFC said maybe related to #37802?
There is no associated issue.
To test:
(1) CI passes
(2) Test import (on linux if possible)
Reviewer
Please comment on the points listed below (full description).
Your comments will be used as part of the gatekeeper process, so please comment clearly on what you have checked during your review. If changes are made to the PR during the review process then your final comment will be the most important for gatekeepers. In this comment you should make it clear why any earlier review is still valid, or confirm that all requested changes have been addressed.
Code Review
Functional Tests
Does everything look good? Mark the review as Approve. A member of
@mantidproject/gatekeepers
will take care of it.Gatekeeper
If you need to request changes to a PR then please add a comment and set the review status to "Request changes". This will stop the PR from showing up in the list for other gatekeepers.