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!
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.
[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[x] Documentation Update
Checklist:
Please tick all the boxes that are fulfilled by your Pull request.
[ ] I have named my files and folders accordingly.
[x] I have commented my code, particularly in hard-to-understand areas.
[ ] I have created a helpful and easy to understand README.md.
[x] My changes dont produce any warnings.
[ ] I have added a working sample/screenshot of the script.
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.
README.md
.