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

Rounding dates instead of cutting off #95

Merged
merged 2 commits into from
Sep 22, 2024

Conversation

TimoDiepers
Copy link
Member

Instead of always rounding off the dates in the timeline (using the resolution specified in temporal_grouping), this rounds them to the nearest year/month/day/hour (depending on temporal_grouping).

Accordingly, if I run a TimexLCA with a demand for today, the timeline says the date is 2025-01-01 which I find somewhat weird, but is probably more correct than 2024-01-01 in a sense.

@TimoDiepers
Copy link
Member Author

note: this also "fixes" the currently failing tests

@TimoDiepers TimoDiepers merged commit 68abb51 into main Sep 22, 2024
3 checks passed
@TimoDiepers TimoDiepers deleted the rounding_dates_instead_of_cutting_off branch September 22, 2024 15:40
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.

1 participant