OpenPsiMu / ThePhysicsHub

The Physics Hub is an open source physics simulations project that is being developed by physics students worldwide and aims to deliver clear and easy to understand physics simulations free for everyone!
https://physicsub-198fbf007acd.herokuapp.com/
GNU General Public License v3.0
121 stars 21 forks source link

Edit .py files for readability. #40

Closed xPolar closed 3 years ago

xPolar commented 3 years ago

Changed .format to f strings. Added docstrings and comments to editAppjs and createRouter in addSimulation.py. Change double quote strings having to escape other double quotes to single quote strings to allow for the removal of . Removed several lines in both files when opening app.js (Instead of having an appjs variable to only be used once just use the value of appjs where it appjs would be used).

Description

Edit the .py files to allow new users to easily understand them.

Type of change

Choosing one or more options from the following as per the nature of your Pull request.

Checklist:

Please tick all the boxes that are fulfilled by your Pull request.

justusmattern commented 3 years ago

Thank you! @xPolar