Skip to content

Commit 21243e4

Browse files
1 parent 92c69aa commit 21243e4

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

‎bigframes/core/compile/sqlglot/scalar_compiler.py‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,9 +205,7 @@ def compile_st_regionstats(
205205
this="_",
206206
expressions=[
207207
sge.Identifier(this="OPTIONS"),
208-
sge.Anonymous(
209-
this="JSON", expressions=[sge.convert(op.options)]
210-
),
208+
sge.Anonymous(this="JSON", expressions=[sge.convert(op.options)]),
211209
],
212210
)
213211
)

‎tests/system/small/test_wildfire_risk.py‎

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,13 @@ def test_wildfire_risk(session):
6868

6969
# Step 4: Compute a simple composite index of relative wildfire risk.
7070
relative_risk = (
71-
wildfire_risk["wildfire_likelihood"].rank(pct=True)
72-
+ wildfire_risk["wildfire_consequence"].rank(pct=True)
73-
+ wildfire_risk["average_wind_speed"].rank(pct=True)
74-
) / 3 * 100
71+
(
72+
wildfire_risk["wildfire_likelihood"].rank(pct=True)
73+
+ wildfire_risk["wildfire_consequence"].rank(pct=True)
74+
+ wildfire_risk["average_wind_speed"].rank(pct=True)
75+
)
76+
/ 3
77+
* 100
78+
)
7579
wildfire_risk = wildfire_risk.assign(relative_risk=relative_risk)
7680
assert wildfire_risk is not None

0 commit comments

Comments
 (0)