Skip to content

Commit bcd4047

Browse files
1 parent 9775fb6 commit bcd4047

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
@@ -244,9 +244,7 @@ def compile_st_regionstats(
244244
this="_",
245245
expressions=[
246246
sge.Identifier(this="OPTIONS"),
247-
sge.Anonymous(
248-
this="JSON", expressions=[sge.convert(op.options)]
249-
),
247+
sge.Anonymous(this="JSON", expressions=[sge.convert(op.options)]),
250248
],
251249
)
252250
)

‎tests/system/small/test_wildfire_risk.py‎

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

7474
# Step 4: Compute a simple composite index of relative wildfire risk.
7575
relative_risk = (
76-
wildfire_risk["wildfire_likelihood"].rank(pct=True)
77-
+ wildfire_risk["wildfire_consequence"].rank(pct=True)
78-
+ wildfire_risk["average_wind_speed"].rank(pct=True)
79-
) / 3 * 100
76+
(
77+
wildfire_risk["wildfire_likelihood"].rank(pct=True)
78+
+ wildfire_risk["wildfire_consequence"].rank(pct=True)
79+
+ wildfire_risk["average_wind_speed"].rank(pct=True)
80+
)
81+
/ 3
82+
* 100
83+
)
8084
wildfire_risk = wildfire_risk.assign(relative_risk=relative_risk)
8185
assert wildfire_risk is not None

0 commit comments

Comments
 (0)