Skip to content
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

Ability to have subdaily data #132

Closed
wants to merge 7 commits into from

Conversation

lindsayplatt
Copy link

This PR removes the code that forces dates to be class Date, and allows POSIXct. This is desired by loadflex, see DOI-USGS/loadflex#135

@coveralls
Copy link

Coverage Status

Coverage increased (+2.0%) to 67.552% when pulling fbcb730 on lindsaycarr:subdaily into e939352 on USGS-R:master.

@@ -49,8 +49,6 @@ populateDaily <- function(rawData,qConvert,verbose = TRUE,interactive=NULL){ #
dateFrame <- populateDateColumns(rawData$dateTime)
localDaily <- cbind(localDaily, dateFrame[,-1])

localDaily$Date <- as.Date(localDaily$Date)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was under the impression you were only going to change the plotting functions, and if people used EGRET "as is" they wouldn't notice a change. Are you certain that deleting this line assures 99% of EGRET users will still get Date objects?

@@ -146,6 +146,60 @@ test_that("modelEstimation window params work", {

})

test_that("modelEstimation works for POSIXct and Date classes", {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we can say modelEstimation will work with sub-daily timesteps. There are a bunch of steps in the modelEstimation code that assume daily time steps. We'd have to very very carefully go through all of that and re-do some logic for sure (we assume 1 row equals 1 day, we can't do that anymore). I would honestly just take these tests out because I think it would only confuse future us.

@lindsayplatt
Copy link
Author

Closing and resubmitting just plot label changes per Slack conversation about how I probably got carried away with dates :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants