-
Notifications
You must be signed in to change notification settings - Fork 43
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
[WIP] Update Bias Monitor to use Django DB Models #1503
base: develop
Are you sure you want to change the base?
[WIP] Update Bias Monitor to use Django DB Models #1503
Conversation
Hello @bsunnquist, Thank you for updating ! Cheers ! There are no PEP8 issues in this Pull Request. 🍻 Comment last updated at 2024-11-19 14:48:36 UTC |
from bokeh.models.layouts import Tabs, TabPanel | ||
from bokeh.plotting import figure, output_file, save | ||
from bokeh.resources import CDN | ||
from datetime import datetime, timedelta | ||
from datetime import datetime |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Repeated import of datetime
self.trending_data['uncal_filename'] = uncal_basename | ||
|
||
# Add a column of expstart values that are datetime objects | ||
format_data = "%Y-%m-%dT%H:%M:%S.%f" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If there are complaints in the log about missing timezone info, you could update the strings and use the %z option in strptime. For this to work, the strings would have to change to be e.g. '2021-09-01 15:27:05.004573 +0000'
self.latest_data = pd.DataFrame.from_dict(tmp_data, orient='index').transpose() | ||
|
||
# Add a column of expstart values that are datetime objects | ||
format_data = "%Y-%m-%dT%H:%M:%S.%f" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here, if the log complains about a lack of timezone info
@bsunnquist I went ahead and fixed the conflict and merged in |
This PR updates the Bias Monitor and bias plots to work with the new django databases.