Code Monkey home page Code Monkey logo

pypsa-earth-lit's Introduction

pypsa-earth-lit

Testing streamlit module that works along a stable pypsa-earth package version

Test setup

For building up to interface on a PyPSA-Earth test version, I precompiled a couple of pypsa-earth results and shared them on zenodo. We will download the whole pypsa-earth folder with the results for testing purpose.

Follow the following commands line by line to setup everything. In particular, the commands will retrieve data, setup the environment and run the app:

mkdir tauritron-project
cd tauritron-project
git clone https://github.com/pypsa-meets-earth/pypsa-earth-lit.git

# depending on what you need. Recommended order.
make -f ./pypsa-earth-lit/Makefile get_data
conda env create -f ./pypsa-earth-lit/env.yaml
conda activate pypsa-earth-lit
cd pypsa-earth-lit
pip install -e .
make -f ./Makefile run_app

This project is organized with distinct sections, 'pre_run' and 'tools,' both located in the 'utils' folder.The 'tools' section serves a crucial role by importing the 'pypsa' networks and the configuration file, both of which are required across various sections. Moving on to the 'prerun' files, their primary purpose is to prepare dataframes using the imported data. Specifically, they process and manipulate the data obtained from the 'pypsa' networks and extract meaningful information to create the necessary dataframes Subsequently, this processed data is utilized to create informative plots stored in files of pages folder.

Additionally, to enhance user-friendliness, we utilize a config file to define meaningful 'nicenames' and units for the parameters present in our dataframes. These nicenames make it easier for users to understand and interact with the data effectively.

contributions can be made in 'get_edges_df' and 'get_spatial_values_df' functions in the 'spatial_pre_run' file.

'get_edges_df': This function is responsible for fetching data and constructing a dataframe related to edges.

'get_spatial_values_df' function: This function is involved in retrieving spatial data and generating a corresponding dataframe.

To contribute, you can enrich this function by integrating additional spatial data or enhancing the existing data processing logic. The comments within the function will serve as helpful pointers.

pypsa-earth-lit's People

Contributors

ekatef avatar drifter089 avatar pz-max avatar

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.