-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Legend.js * Window.js * Window.js * Updating Window.js comments * Updating CanvasLayer.js comments * Added CommunicationLayer.js header comment. * Overhauling developer comments * Updating ContMulti.js comments * Dev comments * Dev comments * Dev comments * LayerControl.js Comments * CanvasLayer comments * ContMulti.js comments * NDArray comments * Fixed header comment formatting * Fixed header comment formatting * PlaybackControl.js Comments * Updating PlaybackControl.js comments * PlayMulti.js comments * PlayMulti.js comments * SearcLayer.js Comments * TimeBox.js Comments * TimeBox.js Comments * TopMulti.js comments * TopMulti.js comments * Finishing touches * Finishing touches * Added windows support for the agvis run command * Updated usage documentation for Windows * Setting up tests folder * Runs server start command from the app.py directory * basic test setup * updated requirements * updating requirements * Initial restructure of AGVis backend * AGVis backend restructure * Finished backend restructure. Added dev mode. * fixed typo * fixed typo in go.sh * Updated agvis repository Docker uses * Fixed agvis pip install in Docker container * Added shell=False to subprocess * Changed subprocess command for testing * Disabled running from directory. Currently breaks Docker. * reenabled popen for subprocess * reenabled popen for subprocess * Fixed Docker issue. Added ability to build different branches using ./go.sh build <BRANCH_NAME> * removed ! from go.sh * Removed all syntax errors relating to an extra ! at the end * Cleaned up object oriented implementation of flask app * Testing Web App * Writing tests * tests * conftest * dime testing * Added header comments. Finished initial dime_client test for agvis * Updated test name * disabled docker test, looking into js testing * adding tests for web * client tests * removed redundant test * Added header comment and removed unused imports * Created docker test file * debug ./go.sh file not being found * debug ./go.sh file not being found * debug ./go.sh file not being found * Added checking out of code * updated go.sh script to include docker testing * removed interactive tag * Disabling basic dime testing. Will keep the file in case it is needed in the future, but testing it here is has both project design and bug problems. * added PR unit test protection for master * Custom Flask Configurations for AGVis * Include pip upgrade in Dockerfile * Update citation * Update copyright * Updated max zoom * Rename test.yml to pythonapp.yml Conform with rest of LTB. * Update pythonapp.yml * Update dependency versions on pythonapp.yml * Added linting with flake8 * Remove flake 8 until its recommended fixes are corrected. * Publish Python to PyPI in pythonapp.yml * Fixed broken tests. Added agvis selftest functionality * Fixing last unittest * Removing problematic test working locally but not on github * Cleaning up code for codacy --------- Co-authored-by: Jinning Wang <[email protected]>
- Loading branch information
1 parent
e2ae071
commit 84d6700
Showing
36 changed files
with
2,305 additions
and
730 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
name: Python application | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
name: Build distribution | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.8" | ||
- name: Install pypa/build | ||
run: >- | ||
python3 -m | ||
pip install | ||
build | ||
--user | ||
- name: Build a binary wheel and a source tarball | ||
run: python3 -m build | ||
- name: Store the distribution packages | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: python-package-distributions | ||
path: dist/ | ||
|
||
test: | ||
name: Run test suite | ||
needs: | ||
- build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
- name: Build the Docker image | ||
run: ./go.sh build | ||
- name: Run tests | ||
run: ./go.sh run_tests | ||
# Developer note: Fix flake8 errors before uncommenting here. | ||
# - name: Lint with flake8 for pull requests | ||
# if: github.event_name == 'pull_request' | ||
# run: | | ||
# pip install flake8 # specify flake8 to avoid unknown error | ||
# # stop the build if there are Python syntax errors or undefined names | ||
# flake8 . | ||
|
||
publish-to-pypi: | ||
name: Publish Python distribution to PyPI | ||
if: github.ref == 'refs/heads/master' && github.event_name == 'push' | ||
needs: | ||
- build | ||
- test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Publish Python dist to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.PYPI_PASSWORD }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
@INPROCEEDINGS{10318583, | ||
author={Parsly, Nicholas and Wang, Jinning and West, Nick and Zhang, Qiwei and Cui, Hantao and Li, Fangxing}, | ||
booktitle={2023 North American Power Symposium (NAPS)}, | ||
title={DiME and AGVis: A Distributed Messaging Environment and Geographical Visualizer for Large-Scale Power System Simulation}, | ||
year={2023}, | ||
volume={}, | ||
number={}, | ||
pages={1-5}, | ||
keywords={Power system simulation;Data visualization;Distributed databases;Nonhomogeneous media;Real-time systems;Power systems;North America;Power grid;Open-source software;Large-scale system;High-concurrency Data;Geovisualization;Digital twin}, | ||
doi={10.1109/NAPS58826.2023.10318583}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# ================================================================================ | ||
# File Name: flask_configurations.py | ||
# Author: Zack Malkmus | ||
# Date: 1/18/2024 (created) | ||
# Description: Configuration file for FLASK APP | ||
# ================================================================================ | ||
|
||
class DefaultConfig(object): | ||
DEBUG = False | ||
TESTING = False | ||
CSRF_ENABLED = True | ||
|
||
class ProductionConfig(DefaultConfig): | ||
DEBUG = False | ||
|
||
class DevelopmentConfig(DefaultConfig): | ||
DEVELOPMENT = True | ||
DEBUG = True | ||
|
||
class TestingConfig(DefaultConfig): | ||
TESTING = True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.