You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The quickest fix would be to 'cast' a very high result to high.
The longer term fix would probably be to include this functionality in CO2.js, because only querying the UK grid intensity API has plent of shortcomings if you are not in the UK.
The text was updated successfully, but these errors were encountered:
LOL, now later in the year on a day where it's been particularly windy and sunny in the uk, we've had 'very low' which we need to cast to 'low' for the purposes of any branch-y designs using this libary.
This library when querying the UK grid intensity API assumes the value can be low, medium or high.
This looks like an assumption we need to update, based on the figure here:
Why did we not see this before? It might be that it hasn't been this cold in a while, or that we just didn't see it before on branch.
The code in question is at the link below.
https://github.com/thegreenwebfoundation/grid-intensity/blob/main/src/index.test.js#L108-L145
The quickest fix would be to 'cast' a
very high
result tohigh
.The longer term fix would probably be to include this functionality in CO2.js, because only querying the UK grid intensity API has plent of shortcomings if you are not in the UK.
The text was updated successfully, but these errors were encountered: