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

ticket/PSB-24: Modify Age data_object to calculate mouse age at the date of aquisition of session. #2644

Merged
merged 2 commits into from
Jan 24, 2023

Conversation

morriscb
Copy link
Contributor

No description provided.

@morriscb morriscb changed the base branch from master to rc/2.15.0 January 13, 2023 22:10
@morriscb morriscb marked this pull request as ready for review January 14, 2023 01:45
@morriscb morriscb force-pushed the ticket/PSB-24/dev branch 2 times, most recently from c929ce3 to 93f3402 Compare January 21, 2023 00:02
Copy link
Contributor

@mikejhuang mikejhuang left a comment

Choose a reason for hiding this comment

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

Just one clarifying question

def _check_timezone(cls, input_date: datetime) -> datetime:
if input_date.tzinfo is None:
# Add UTC tzinfo if not already set
input_date = pytz.utc.localize(input_date)
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this done because it's assumed that date_of_acquisition is localized (PST?) ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, matching the logic in the DateOfAcquiisition object here.

Copy link
Contributor

Choose a reason for hiding this comment

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

I see, it localizes it to UTC which makes more sense to me.

@morriscb morriscb merged commit 40a05fa into rc/2.15.0 Jan 24, 2023
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