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

allow posparam fitting less than one day of data #78

Merged
merged 2 commits into from
May 19, 2020
Merged

Conversation

sbailey
Copy link
Collaborator

@sbailey sbailey commented May 18, 2020

Allow fit_posparams to work on a single day of data. Previously this fithandler.py code wouldn't process any data if len(datum_dates)==1:

    for j in range(1, len(datum_dates)):
        start_date = datum_dates[j - 1]
        ...

The solution here is to catch that as a special case ahead of time, leaving the existing _define_cases behavior unchanged for the original use case of grouping many moves over many nights.

@sbailey sbailey requested a review from joesilber May 18, 2020 23:27
@sbailey sbailey merged commit d7fbbab into master May 19, 2020
@sbailey sbailey deleted the posparams_oneday branch May 19, 2020 23:02
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.

None yet

2 participants