Skip to content

Commit

Permalink
add in support for mts for sofq import
Browse files Browse the repository at this point in the history
  • Loading branch information
y8z committed Jun 28, 2024
1 parent fe2bdc6 commit c19f681
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion addie/addiedriver.py
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ def load_sq(self, file_name):
simpleapi.ConvertToPointData(
InputWorkspace=sq_ws_name,
OutputWorkspace=sq_ws_name) # TODO REMOVE THIS LINE
elif ext == 'DAT' or ext == 'txt':
elif ext == 'DAT' or ext == 'TXT':
try:
simpleapi.LoadAscii(
Filename=file_name,
Expand All @@ -468,6 +468,16 @@ def load_sq(self, file_name):
# the workspace
out_ws = AnalysisDataService.retrieve(sq_ws_name)
out_ws += 1
elif ext == 'SQ':
try:
simpleapi.LoadAscii(
Filename=file_name,
OutputWorkspace=sq_ws_name,
Unit='MomentumTransfer',
SkipNumLines=2)
except RuntimeError:
sq_ws_name, q_min, q_max = "InvalidInput", 0, 0
return sq_ws_name, q_min, q_max

assert AnalysisDataService.doesExist(
sq_ws_name), 'Unable to load S(Q) file %s.' % file_name
Expand Down

3 comments on commit c19f681

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GitLab pipeline for addie-dev has been submitted for this commit: "https://code.ornl.gov/sns-hfir-scse/deployments/addie-deploy/-/pipelines/586967"

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GitLab pipeline for addie-qa has been submitted for this commit: "https://code.ornl.gov/sns-hfir-scse/deployments/addie-deploy/-/pipelines/586986"

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GitLab pipeline for addie has been submitted for this commit: "https://code.ornl.gov/sns-hfir-scse/deployments/addie-deploy/-/pipelines/586987"

Please sign in to comment.