-
Notifications
You must be signed in to change notification settings - Fork 23
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
issue: 4176956: move the text handling to the analyzers classes #284
Merged
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
532cf34
encapsulation
Miryam-Schwartz 982563e
encapsulation
Miryam-Schwartz e49115c
encapsulation
Miryam-Schwartz 7576526
encapsulation
Miryam-Schwartz 3abbad1
encapsulation
Miryam-Schwartz caf3629
encapsulation
Miryam-Schwartz 1df655b
encapsulation
Miryam-Schwartz 7853db1
encapsulation
Miryam-Schwartz 1199d51
encapsulation
Miryam-Schwartz fd8e5aa
encapsulation
Miryam-Schwartz 539a6ca
encapsulation
Miryam-Schwartz b31417e
encapsulation
Miryam-Schwartz c8a5b1d
encapsulation
Miryam-Schwartz 9b328d6
encapsulation
Miryam-Schwartz 8436b60
encapsulation
Miryam-Schwartz 6afd106
fix comments
Miryam-Schwartz a043c54
fix comments
Miryam-Schwartz 8a76cb3
fix comments
Miryam-Schwartz a9f3afb
fix comments
Miryam-Schwartz ad10afd
fix comments
Miryam-Schwartz a6f8d60
fix comments
Miryam-Schwartz 44d6e99
fix comments
Miryam-Schwartz 49d07d2
fix comments
Miryam-Schwartz a1dc874
Fixing ruff version
boazhaim 7c6e56c
ruff
boazhaim ba0a836
fix comments
Miryam-Schwartz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,7 @@ | |
class IBDIAGNETLogAnalyzer(BaseAnalyzer): | ||
def __init__(self, logs_csvs: List[str], hours: int, dest_image_path): | ||
super().__init__(logs_csvs, hours, dest_image_path, sort_timestamp=False) | ||
self._funcs_for_analysis = {self.save_fabric_size} | ||
|
||
def print_fabric_size(self): | ||
fabric_info = self.get_fabric_size() | ||
|
@@ -28,9 +29,10 @@ def print_fabric_size(self): | |
def get_fabric_size(self): | ||
return self._log_data_sorted | ||
|
||
def save_fabric_size(self): | ||
fabric_info = self.get_fabric_size() | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same thing. Use the infrastructure in the base class to run this. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. fixed |
||
self._dataframes_for_pdf.append(("Fabric info", fabric_info)) | ||
|
||
def full_analysis(self): | ||
""" | ||
Returns a list of all the graphs created and their title | ||
""" | ||
super().full_analysis() | ||
self.print_fabric_size() | ||
return [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Please revert this display
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.
ruff requires this display