Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 8, 2024
1 parent a298e9c commit cf59d9d
Show file tree
Hide file tree
Showing 4 changed files with 548 additions and 549 deletions.
10 changes: 5 additions & 5 deletions components/project.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,26 +62,26 @@ const Project = ({
[20, 20],
[380, height - 20],
],
data.features[0].geometry
data.features[0].geometry,
)
setStartDate(data.features[0].properties.start_date)
setStartYear(parseInt(data.features[0].properties.start_date.slice(0, 4)))
setProjectPath(
geoPath().projection(projection)(data.features[0].geometry)
geoPath().projection(projection)(data.features[0].geometry),
)
if (showStates) setStatesPath(geoPath().projection(projection)(states))
const fireUrl = prefix + `${id}/fires-topo-quantized.json`
json(fireUrl).then((fireTopology) => {
const fireData = feature(
fireTopology,
fireTopology.objects[`fires_${version}`]
fireTopology.objects[`fires_${version}`],
)
const firePathsTmp = {}
Array(38)
.fill(0)
.map((d, i) => {
firePathsTmp[i] = geoPath().projection(projection)(
fireData.features[i].geometry
fireData.features[i].geometry,
)
})
setFirePaths(firePathsTmp)
Expand Down Expand Up @@ -229,7 +229,7 @@ const Project = ({
((100 * metadata?.burned_acreage) / metadata?.acreage < 1
? '<1%'
: format('.0%')(
metadata?.burned_acreage / metadata?.acreage
metadata?.burned_acreage / metadata?.acreage,
))}
</Box>
</Box>
Expand Down
1,082 changes: 541 additions & 541 deletions notebooks/future-risk.ipynb

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions pages/embed/offset-fires/future-risk.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ const Index = () => {
(err, res) => {
setData(res)
},
['ssp245', 'ssp370', 'ssp585', 'lat', 'lon']
['ssp245', 'ssp370', 'ssp585', 'lat', 'lon'],
)
}, [])

Expand Down Expand Up @@ -118,7 +118,7 @@ const Index = () => {
out[s][k].push(val)
if (s === scenarios[0] && k === 0) {
coords.push(
projection([data['lon'].get(i, j), data['lat'].get(i, j)])
projection([data['lon'].get(i, j), data['lat'].get(i, j)]),
)
}
}
Expand Down
1 change: 0 additions & 1 deletion scripts/projects.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,6 @@ def get_project_fire_stats(fires, opr_id, start_dt, termination_dt):
@click.option("--upload-to", type=str, default=None, help="Where to put the workflow contents")
@click.option("--version", type=int, default=0, help="Version to append")
def main(upload_to, version):

print("loading fire data")
fires = load_fires()

Expand Down

0 comments on commit cf59d9d

Please sign in to comment.