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

Auto-convert dates passed as strings #67

Merged
merged 1 commit into from
Nov 12, 2024
Merged

Auto-convert dates passed as strings #67

merged 1 commit into from
Nov 12, 2024

Conversation

zsusswein
Copy link
Collaborator

And print a helpful message when casting the dates. This is a small
change, but a nice quality-of-life improvement when specifying the
model.

This change breaks the pattern of checking & validating with empty
returns. I don't love breaking the pattern, but I thought the best
alternative would be to fully pull out the validators and have each
validator return their input. That might be worth it at some point,
but while we're only doing that for the dates I didn't think it was
worth it just yet.

Copy link

codecov bot commented Nov 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Additional details and impacted files

📢 Thoughts on this report? Let us know!

And print a helpful message when casting the dates. This is a small
change, but a nice quality-of-life improvement when specifying the
model.

This change breaks the pattern of checking & validating with empty
returns. I don't love breaking the pattern, but I thought the best
alternative would be to fully pull out the validators and have each
validator return their input. That might be worth it at some point,
but while we're only doing that for the dates I didn't think it was
worth it just yet.
zsusswein added a commit that referenced this pull request Nov 11, 2024
Introduced in #67 instead
@seabbs
Copy link
Contributor

seabbs commented Nov 12, 2024

That might be worth it at some point,
but while we're only doing that for the dates I didn't think it was
worth it just yet.

Agree

@seabbs seabbs enabled auto-merge (squash) November 12, 2024 13:41
@seabbs seabbs merged commit 4635042 into main Nov 12, 2024
10 checks passed
@seabbs seabbs deleted the zs-autofix-dates branch November 12, 2024 13:45
zsusswein added a commit that referenced this pull request Nov 16, 2024
Introduced in #67 instead
zsusswein added a commit that referenced this pull request Nov 16, 2024
Introduced in #67 instead
seabbs pushed a commit that referenced this pull request Nov 16, 2024
* WIP: summary

* Broken

* Save current status before deleting a bunch of stuff

* Pausing here for feedback

* Fix missing rlang call

* Checkpointing work

* All tests passing for date handling

* Semi-working r estimation

Broke some other stuff along the way that now needs cleanup.

Need to handroll the derivative and something is getting weird with
the order of magnitude. Not sure what.

* That works

Had to divide the centered discrete derivative by the magnitude of
the change in units of y

* Some additional cleanup

* Working predict method with docs

* Bring all current tests up to passing

* Typos

* Drop extraneous util

Introduced in #67 instead

* Add testing for validator

* Drop impossible case

* Add new integration tests for methods

* Once more with the typos

* Bump NEWS

* Drop obselete function

* Typos!!!!!
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.

2 participants