Skip to content

Commit

Permalink
Merge branch 'develop' into hackdna/citation
Browse files Browse the repository at this point in the history
  • Loading branch information
hackdna authored Dec 16, 2024
2 parents 4a2a2a1 + 6a07c48 commit f6296e2
Show file tree
Hide file tree
Showing 136 changed files with 24 additions and 54 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,5 @@ jobs:
run: flake8
- name: Run static type checking
run: mypy -p forest
- name: Run legacy tests
run: python -m unittest tests/imports.py
- name: Run pytest suite
- name: Run the test suite
run: pytest
7 changes: 4 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
__pycache__/
dist/
/forest_analysis.egg-info
forest_analysis.egg-info/

.vagrant/
.venv/
venv/
.DS_Store

# IntelliJ, VsCode project files
.idea
.vscode
.idea/
.vscode/

#We don't want to add data to github
/tutorials/data/
Expand Down
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,5 +156,9 @@ log_stats_main(path_to_synthetic_log_data, path_to_log_summary, tz_str, option,
* [Onnela lab](https://www.hsph.harvard.edu/onnela-lab/)

## Publications
* Straczkiewicz, M., Huang, E.J., and Onnela, JP. A “one-size-fits-most” walking recognition method for smartphones, smartwatches, and wearable accelerometers. _npj Digit. Med._ **6**, 29 (2023). https://doi.org/10.1038/s41746-022-00745-z Open Access: https://rdcu.be/c6dGV
* Onnela JP, Dixon C, Griffin K, Jaenicke T, Minowada L, Esterkin S, Siu A, Zagorsky J, and Jones E. Beiwe: A data collection platform for high-throughput digital phenotyping. Journal of Open Source Software, 6(68), 3417 (2021). [![DOI](https://joss.theoj.org/papers/10.21105/joss.03417/status.svg)](https://doi.org/10.21105/joss.03417)
* Straczkiewicz, M., Huang, E.J., and Onnela, JP. A “one-size-fits-most” walking recognition method for smartphones, smartwatches, and wearable accelerometers. _npj Digit. Med._ **6**, 29 (2023) [![DOI](https://img.shields.io/badge/DOI-10.1038%2Fs41746--022--00745--z-blue)](https://doi.org/10.1038/s41746-022-00745-z) [Open Access](https://rdcu.be/c6dGV)
* Huang E, Yan K, and Onnela JP. Smartphone-Based Activity Recognition Using Multistream Movelets Combining Accelerometer and Gyroscope Data. Sensors 22 (7), 2618 (2022) [![DOI](https://img.shields.io/badge/DOI-10.3390%2Fs22072618-blue)](https://doi.org/10.3390/s22072618)
* Onnela JP, Dixon C, Griffin K, Jaenicke T, Minowada L, Esterkin S, Siu A, Zagorsky J, and Jones E. Beiwe: A data collection platform for high-throughput digital phenotyping. Journal of Open Source Software, 6(68), 3417 (2021) [![DOI](https://joss.theoj.org/papers/10.21105/joss.03417/status.svg)](https://doi.org/10.21105/joss.03417)
* Liu G and Onnela JP. Bidirectional imputation of spatial GPS trajectories with missingness using sparse online Gaussian Process. Journal of the American Medical Informatics Association 28(8), 1777 (2021) [![DOI](https://img.shields.io/badge/DOI-10.1093%2Fjamia%2Focab069-blue)](https://doi.org/10.1093/jamia/ocab069)
* Barnett I and Onnela JP. Inferring mobility measures from GPS with missing data. Biostatistics 21:2, e98, 2020 [![DOI](https://img.shields.io/badge/DOI-10.1093%2Fbiostatistics%2Fkxy059-blue)](https://doi.org/10.1093/biostatistics/kxy059) [Open Access](https://academic.oup.com/biostatistics/article/21/2/e98/5145908?guestAccessKey=0e3baa8c-2a80-405e-a7b4-1444099f48a2)
* Huang E and Onnela JP. Augmented movelet method for activity classification using smartphone gyroscope and accelerometer data. Sensors 20(13), 3706, 2020 [![DOI](https://img.shields.io/badge/DOI-10.3390%2Fs20133706-blue)](https://doi.org/10.3390/s20133706) [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.3925679.svg)](https://doi.org/10.5281/zenodo.3925679)
5 changes: 4 additions & 1 deletion docs/source/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Information for contributors
* Change current directory to the top level of your local Forest repository
* Install Forest in editable mode along with development tools: `pip install -e ".[dev]"`
* Run code style checks: `flake8`
* Run type hint checks: `mypy -p forest`
* Run type hint checks: `mypy`
* Run test suite: `pytest`

### Documentation
Expand Down Expand Up @@ -52,6 +52,9 @@ Open `docs/_build/html/index.html` in a web browser to check the results
* [Register an account](https://test.pypi.org/account/register/)
* [Create an API token](https://test.pypi.org/manage/account/#api-tokens) (setting the "Scope" to "Entire account")
* [Add API token](https://packaging.python.org/en/latest/specifications/pypirc/#using-a-pypi-token) to your `$HOME/.pypirc` file
* Increment the project version in `pyproject.toml`
* Commit and push all local changes to GitHub
* Clear the build directory: `rm -r dist`
* Generate distribution archives: `python -m build`
* Check the results: `twine check dist/*`
* Upload distribution archives:
Expand Down
4 changes: 4 additions & 0 deletions docs/source/jasmine.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,3 +163,7 @@ A flight is defined to be a longest straight-line trip of a particle from one lo

- Definition of a place
A place is defined as a location where a person has paused for at least 15 minutes.

### Common Errors
- "GPS data are not collected or the data quality is too low"
This error gets triggered when the subject either has no data, or when less than a given proportion of their generated data files have at least 60 seconds of data. The default proportion of files required to avoid this error is 5%, but this can be toggled using the `parameters` argument in `jasmine.traj2stats.gps_stats_main`.
Empty file removed forest/poplar/raw/__init__.py
Empty file.
Empty file removed forest/willow/__init__.py
Empty file.
2 changes: 2 additions & 0 deletions mypy.ini
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
[mypy]
mypy_path = src
packages = forest
python_version = 3.11

[mypy-holidays]
Expand Down
5 changes: 1 addition & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "forest-analysis"
version = "1.0.dev2"
version = "1.0.dev4"
description = "Forest is a library for analyzing smartphone-based high-throughput digital phenotyping data"
authors = [
{ name = "Onnela Lab", email = "[email protected]" }
Expand Down Expand Up @@ -67,8 +67,5 @@ dev = [
"types-setuptools",
]

[tool.setuptools.packages.find]
include = ["forest*"]

[tool.setuptools.package-data]
"forest.poplar.raw" = ["noncode/*.csv", "noncode/*.json"]
2 changes: 2 additions & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
[pytest]
addopts = --import-mode=importlib
testpaths = tests
filterwarnings =
error
# Ignore specific DeprecationWarnings from librosa.core.intervals
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Empty file removed tests/__init__.py
Empty file.
File renamed without changes.
41 changes: 0 additions & 41 deletions tests/imports.py

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit f6296e2

Please sign in to comment.