Skip to content

Commit

Permalink
Add csv import option (#34)
Browse files Browse the repository at this point in the history
* add utility function to generate yaml metadata files from csv

* renaming some components

* add button in metadata to generate yaml files from spreadsheet

* remove sample_project_2

* Revert "remove sample_project_2"

This reverts commit 39968c2.

* remove only sample_project_2 (and keep original video metadata files from sample_project_1)

* update gitignore

* remove unused aux function

* rename csv to spreadsheet where relevant

* add openpyxl to dependencies to correctly read all Excel files. add defusedxml as recommended for security by openpyxl.

* fill in missing bits from docstrings

* revert to v2.0 of github actions to avoid "Unexpected value 'flags'" error

* need to specify full version
  • Loading branch information
sfmig authored Apr 17, 2023
1 parent 61cb8a5 commit 0ddc85f
Show file tree
Hide file tree
Showing 7 changed files with 248 additions and 57 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/test_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ jobs:
linting:
runs-on: ubuntu-latest
steps:
- uses: neuroinformatics-unit/actions/lint@v2
- uses: neuroinformatics-unit/actions/lint@v2.0.0

manifest:
name: Check Manifest
runs-on: ubuntu-latest
steps:
- uses: neuroinformatics-unit/actions/check_manifest@v2
- uses: neuroinformatics-unit/actions/check_manifest@v2.0.0

test:
needs: [linting, manifest]
Expand All @@ -44,7 +44,7 @@ jobs:
echo "C:\Program Files\Google\Chrome\Application" >> $GITHUB_PATH
# Run tests
- uses: neuroinformatics-unit/actions/test@v2
- uses: neuroinformatics-unit/actions/test@v2.0.0
with:
python-version: ${{ matrix.python-version }}

Expand All @@ -54,7 +54,7 @@ jobs:
if: github.event_name == 'push' && github.ref_type == 'tag'
runs-on: ubuntu-latest
steps:
- uses: neuroinformatics-unit/actions/build_sdist_wheels@v2
- uses: neuroinformatics-unit/actions/build_sdist_wheels@v2.0.0


upload_all:
Expand Down
4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,3 @@ venv/

# written by setuptools_scm
**/_version.py

sample_project_2/pose_estimation_results/*.csv
sample_project_2/pose_estimation_results/*.pickle
*.pickle
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ dependencies = [
"opencv-python",
"PyYAML",
"shapely",
"openpyxl",
"defusedxml"
]

classifiers = [
Expand Down
4 changes: 2 additions & 2 deletions wazp/callbacks/home.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ def get_callbacks(app: dash.Dash) -> None:
Output("upload-message", "is_open"),
Output("upload-message", "children"),
Output("upload-message", "color"),
Input("upload-data", "contents"),
State("upload-data", "filename"),
Input("upload-project-config", "contents"),
State("upload-project-config", "filename"),
State("upload-message", "is_open"),
)
def save_input_config_to_storage(
Expand Down
Loading

0 comments on commit 0ddc85f

Please sign in to comment.