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

Timeline duration control #176

Merged
merged 7 commits into from
Jun 30, 2021
Merged

Conversation

ianhelle
Copy link
Contributor

Added new timeline control - displaying start-end durations of grouped events.
Tidying up some of the code in timeline.py
Moving the pd accessors to timeline_pd_accessor.py
Updating notebook EventTimeline.ipynb and documentation EventTimeline.rst

Tidying up some of the code in timeline.py
Moving the pd accessors to timeline_pd_accessor.py
Updating notebook EventTimeline.ipynb and documentation EventTimeline.rst
@ianhelle ianhelle requested a review from petebryan June 23, 2021 05:18
@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

ref_events: Optional[pd.DataFrame] = None
ref_col: Optional[str] = None
ref_times: Optional[List[Tuple[datetime, str]]] = None

Copy link
Contributor

Choose a reason for hiding this comment

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

range_tool and source_columns are missing :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thx. source_columns is missing by design. Since the way I create the durations is by grouping on the group_by column(s) and then finding the max and min of the timestamps, all of the other field values for individual events disappear.
They kind of have to be ignored really since I'm trying to assign Tooltip values to the entire duration - so only values that are common to the grouped duration can be shown.

range_tool is an omission. I think I've fixed in an update with tests that I'm about to push.

Copy link
Contributor

@petebryan petebryan left a comment

Choose a reason for hiding this comment

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

This is great. Love the restructure makes it much cleaner.

@ianhelle ianhelle merged commit 54c6d74 into master Jun 30, 2021
@ianhelle ianhelle deleted the ianhelle/timeline_duration-2021-06-21 branch June 30, 2021 00:16
@ianhelle ianhelle linked an issue Jul 14, 2021 that may be closed by this pull request
juju4 pushed a commit to juju4/msticpy that referenced this pull request Jun 5, 2022
* Timeline duration control

Tidying up some of the code in timeline.py
Moving the pd accessors to timeline_pd_accessor.py
Updating notebook EventTimeline.ipynb and documentation EventTimeline.rst

* Correcting docstrings and adding tests for legend = "none"

Updating EventTimeline.ipynb with latest docstrings

* Fix to remove casefold of OptionButtons value

* Adding some safety checks to nb_check.py

* McCabe suppression and version update
Suppressing McCabe complexity error in _check_nb_check_ver
in azure_ml_tools.py
Updating version to 1.3.0
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.

Timeline with an event duration
3 participants