Skip to content

Commit

Permalink
Fixed indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
PriyankaKetkarBNL authored Feb 23, 2025
1 parent 74ab887 commit 5538ed0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/PyHyperScattering/SST1RSoXSDB.py
Original file line number Diff line number Diff line change
Expand Up @@ -1073,12 +1073,12 @@ def loadMd(self, run):
baselineValue = baselineValue.read() ## For tiled_client.array data types, need to use .read() to get the values
md[keyName_PHS] = baselineValue.mean()
if baselineValue.var() > 0:
warnings.warn(
(
f"While loading {keyNames_Beamline} to infill metadata entry for {keyName_PHS}, found beginning and end values unequal: {baseline[keyName_Beamline]}. It is possible something is messed up."
),
stacklevel=2,
)
warnings.warn(
(
f"While loading {keyNames_Beamline} to infill metadata entry for {keyName_PHS}, found beginning and end values unequal: {baseline[keyName_Beamline]}. It is possible something is messed up."
),
stacklevel=2,
)
except (KeyError, HTTPStatusError): md[keyName_PHS] = None
if md[keyName_PHS] is None:
warnings.warn(
Expand Down

0 comments on commit 5538ed0

Please sign in to comment.