Giter Club home page Giter Club logo

planck's Introduction

Planck's law

A project to study the Planck's law. Planck's law describes the spectral density of electromagnetic radiation emitted by a black body in thermal equilibrium at a given temperature, when there is no net flow of matter or energy between the body and its environment.

Animation gif

Interactive web app:

streamlit app badge

Installation and usage

  1. clone the repo
  2. create a virtual environment
  3. activate the virtual environment
  4. install dependencies with requirements.txt
  5. use the code and/or run a local Streamlit app
git clone [email protected]:chicolucio/planck.git
cd planck
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
streamlit run Home.py

These are the Python packages under the hood:

Matplotlib NumPy SciPy Streamlit

You can run a sample via command line from the project folder after cloning this repo:

python planck.py

A figure like the one below will be generated.

Command line sample

To see how to customize the plot and how to animate it like the gif at the top of this readme, see the tutorial file.

Interactive web app hosted on Streamlit Cloud:

streamlit app badge

Contributing

All contributions are welcome.

Issues

Feel free to submit issues regarding:

  • recommendations
  • more examples for the tutorial
  • enhancement requests and new useful features
  • code bugs

Pull requests

  • before starting to work on your pull request, please submit an issue first
  • fork the repo
  • clone the project to your own machine
  • commit changes to your own branch
  • push your work back up to your fork
  • submit a pull request so that your changes can be reviewed

License

MIT, see LICENSE

Citing

If you use this project in a scientific publication or in classes, please consider citing as

F. L. S. Bustamante, Planck's law - Plotting the black body radiation, 2020 - Available at: https://github.com/chicolucio/planck

More

planck's People

Contributors

chicolucio avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

rur1sama cemsanga

planck's Issues

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.