Skip to content

Commit

Permalink
Use NumPy max instead of amax
Browse files Browse the repository at this point in the history
These are aliases of the same function but max is more commonly used and understood.
  • Loading branch information
aethr committed Jul 1, 2024
1 parent afc70e6 commit 2c7edba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/omGeoJSON.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def processGeoJSON():
# extract the meaningful dimensions from the NetCDF variables
ds_slice[layer_name] = ds[layer_name][:][0][0]
# find the max emission value in a single cell for each layer
max_values[layer_name] = np.amax(ds_slice[layer_name])
max_values[layer_name] = np.max(ds_slice[layer_name])

# Add GeoJSON Polygon feature for each grid location
features = []
Expand Down

0 comments on commit 2c7edba

Please sign in to comment.