-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JOSS: Code Review @craddm & @anibalsolon #3
Merged
Merged
Conversation
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
First attempt at trying to get automated testing via Travis.
If I could do it again, I'd end with a close paren.
Add @Keywords internal to parse_sleep_time support functions
Vignette now has extensive example about use of bitvector (or sleepwake sequence) support.
Roxygen example in parse_sleepwake_sequence
humanfactors
added
Documentation
Improvements or additions to documentation
Enhancement
New feature or request
labels
Jul 8, 2020
38 tasks
humanfactors
changed the title
JOSS: Code Review @craddm
JOSS: Code Review @craddm & @anibalsolon
Jul 9, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request addresses reviewer comments from @craddm on openjournals/joss-reviews#2340
Thanks for noticing this. I've now gone through and added the
@keywords internal
flag to all functions that are intended purely for developers (and have no useful purpose being in front-facing documentation)This is a good point, so to firstly address question directly. The "sleep times" format used by
parse_sleeptimes
is predominately custom. A variety of sleep tracking applications return data in formats similar to this (though usually dramatically more complex). We intended the use case for this to be individuals who are transcribing a pen and paper sleep diary to digital via a spreadsheet. It turned out to also be a nice human readable format for generating simulation scenarios.To make this point clearer, we now mention this fact explicitly in the
vignettes/FIPS-simulation-walkthrough.Rmd
to match the manuscript.Now, to focus on your question regarding
parse_sleepwake_sequence()
, this format typically is returned by actigraphy device algorithms (though sometimes labeled withS
andW
for sleep/wake). For instance, the dipetkov/actigraph.sleepr package will convert raw actigraphy data to a bitvector. There are many different ways of presenting this, but all our devices have returned it in a newline separated.txt
file with a comment header line and then just a series ofS
andW
.We've made a number of changes to the repository to make clearer what FIPS expects the bitvector to look like, and how to handle such data. Specifically:
vignettes/FIPS-simulation-walkthrough.Rmd
entitled Bitvector Sequence Format, which shows a full example of using theparse_sleepwake_sequence
function.@examples
section to the function documentation ofparse_sleepwake_sequence
Thank you for this encouragement. I had no prior experience with Travis CI, but am glad to now have a successful automated integration build. I believe I've configured this appropriately in
f450fad
. Screenshot of test passed below.