Git Product home page Git Product logo

efinsight's People

Contributors

pluflou avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

efinsight's Issues

Add better handling of exceptions when API calls fail

When querying from data from the NREL API (particularly for ComStock) using the app UI, sometimes the notebook crashes from an HTTPError (404: Not Found), e.g. when querying marine climate ComStock data (building america data) which does not exist. Ideally the notebook should not crash and the exception should be handled gracefully.

This can be fixed in a couple of ways:

  • Adjust what options are shown in the drop-down menu to only show where data is available (probably not the best way to handle this, as data availability might change).
  • Add better handling of the exception thrown, and instead of the marimo app breaking, redirect to an available data option with a clear error statement of what wasn't available.

This should also be added at the sg2t level https://github.com/slacgismo/sg2t/blob/main/sg2t/io/loadshapes/nrel/api.py where these calls are being made.

Deprecation warning: move to df.resampling('h')

<cell-14>:14: FutureWarning: 'H' is deprecated and will be removed in a future version, please use 'h' instead. /Users/dchassin/github/slacgismo/efinsight/lib/python3.11/site-packages/sg2t/utils/timeseries.py:111: FutureWarning: 'H' is deprecated and will be removed in a future version, please use 'h' instead. df_resampled = df_aggregated.resample('H').mean()

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.