Merge branch 'master' into tra-service

This commit is contained in:
Arthur Lu 2020-08-10 16:11:38 -05:00 committed by GitHub
commit 3e335756e1
7 changed files with 58 additions and 16 deletions

36
.github/workflows/publish-analysis.yml vendored Normal file
View File

@ -0,0 +1,36 @@
# This workflows will upload a Python Package using Twine when a release is created
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
name: Upload Analysis Package
on:
release:
types: [published, edited]
jobs:
deploy:
runs-on: ubuntu-latest
env:
working-directory: ./analysis-master/
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
working-directory: ${{env.working-directory}}
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build package
working-directory: ${{env.working-directory}}
run: |
python setup.py sdist bdist_wheel
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}
packages_dir: analysis-master/dist/

6
.gitignore vendored
View File

@ -32,3 +32,9 @@ analysis-master/__pycache__/
analysis-master/.pytest_cache/ analysis-master/.pytest_cache/
data-analysis/.pytest_cache/ data-analysis/.pytest_cache/
data-analysis/test.py data-analysis/test.py
analysis-master/tra_analysis.egg-info
analysis-master/tra_analysis/__pycache__
analysis-master/tra_analysis/.ipynb_checkpoints
.pytest_cache
analysis-master/tra_analysis/metrics/__pycache__
analysis-master/dist

View File

@ -1,3 +1,3 @@
Arthur Lu <learthurgo@gmail.com> Arthur Lu <learthurgo@gmail.com>
Jacob Levine <jacoblevine18@gmail.com> Jacob Levine <jacoblevine18@gmail.com>
Dev Singh <dev@singhk.dev> Dev Singh <dev@devksingh.com>

View File

@ -7,11 +7,11 @@ with open("requirements.txt", 'r') as file:
requirements.append(line) requirements.append(line)
setuptools.setup( setuptools.setup(
name="analysis", name="tra_analysis",
version="1.12", version="2.0.3",
author="The Titan Scouting Team", author="The Titan Scouting Team",
author_email="titanscout2022@gmail.com", author_email="titanscout2022@gmail.com",
description="analysis package developed by Titan Scouting for The Red Alliance", description="Analysis package developed by Titan Scouting for The Red Alliance",
long_description="", long_description="",
long_description_content_type="text/markdown", long_description_content_type="text/markdown",
url="https://github.com/titanscout2022/tr2022-strategy", url="https://github.com/titanscout2022/tr2022-strategy",

View File

@ -1,5 +1,5 @@
from analysis import analysis as an from tra_analysis import analysis as an
from analysis import metrics from tra_analysis import metrics
def test_(): def test_():
test_data_linear = [1, 3, 6, 7, 9] test_data_linear = [1, 3, 6, 7, 9]

View File

@ -1,7 +1,7 @@
# Titan Robotics Team 2022: Data Analysis Module # Titan Robotics Team 2022: Data Analysis Module
# Written by Arthur Lu & Jacob Levine # Written by Arthur Lu, Jacob Levine, and Dev Singh
# Notes: # Notes:
# this should be imported as a python module using 'from analysis import analysis' # this should be imported as a python module using 'from tra_analysis import analysis'
# this should be included in the local directory or environment variable # this should be included in the local directory or environment variable
# this module has been optimized for multhreaded computing # this module has been optimized for multhreaded computing
# current benchmark of optimization: 1.33 times faster # current benchmark of optimization: 1.33 times faster
@ -74,17 +74,17 @@ __changelog__ = """changelog:
- added StatisticalTests class - added StatisticalTests class
- added several correlation tests to CorrelationTests - added several correlation tests to CorrelationTests
- added several statistical tests to StatisticalTests - added several statistical tests to StatisticalTests
13.9: 1.13.9:
- moved elo, glicko2, trueskill functions under class Metrics - moved elo, glicko2, trueskill functions under class Metrics
13.8: 1.13.8:
- moved Glicko2 to a seperate package - moved Glicko2 to a seperate package
13.7: 1.13.7:
- fixed bug with trueskill - fixed bug with trueskill
13.6: 1.13.6:
- cleaned up imports - cleaned up imports
13.5: 1.13.5:
- cleaned up package - cleaned up package
13.4: 1.13.4:
- small fixes to regression to improve performance - small fixes to regression to improve performance
1.13.3: 1.13.3:
- filtered nans from regression - filtered nans from regression

View File

@ -1,5 +1,5 @@
# Titan Robotics Team 2022: Superscript Script # Titan Robotics Team 2022: Superscript Script
# Written by Arthur Lu & Jacob Levine # Written by Arthur Lu, Jacob Levine, and Dev Singh
# Notes: # Notes:
# setup: # setup:
@ -110,7 +110,7 @@ __all__ = [
# imports: # imports:
from analysis import analysis as an from tra_analysis import analysis as an
import data as d import data as d
import json import json
import numpy as np import numpy as np