Skip to content
Snippets Groups Projects
Commit f6ddc245 authored by Joe Ramsay's avatar Joe Ramsay
Browse files

Re #21805 Use more robust check that workspace has current

parent ee226ff6
No related merge requests found
...@@ -610,4 +610,5 @@ def workspace_has_current(ws): ...@@ -610,4 +610,5 @@ def workspace_has_current(ws):
""" """
Gat whether the total charge for this run was greater than 0 Gat whether the total charge for this run was greater than 0
""" """
return ws.run().getLogData("tot_prtn_chrg").value > 0 charge = ws.run().getProtonCharge().value
return charge is not None and charge > 0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment