-
Notifications
You must be signed in to change notification settings - Fork 11
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
dataset migration #57
Conversation
WalkthroughThe updates across various files introduce a new Changes
TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
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.
Actionable comments posted: 0
Out of diff range and nitpick comments (10)
athina/datasets/dataset.py (2)
Line range hint
43-58
: Improve exception handling by logging the exception message.- except Exception as e: - raise + except Exception as e: + print(f"Failed to create dataset: {e}") + raise
Line range hint
66-78
: Improve exception handling by logging the exception message.- except Exception as e: - raise + except Exception as e: + print(f"Failed to add rows: {e}") + raiseathina/services/athina_api_service.py (8)
Line range hint
41-85
: Remove the unused variablee
in the exception handling.- except Exception as e: - print("Exception fetching inferences", e) + except Exception: + print("Exception fetching inferences")
Line range hint
87-101
: Remove the unused variablee
in the exception handling.- except Exception as e: - pass + except Exception: + pass
Line range hint
103-150
: Remove the unused variablee
in the exception handling.- except Exception as e: - print( - f"An error occurred while posting eval results", - str(e), - ) + except Exception: + print( + "An error occurred while posting eval results" + )
Line range hint
132-147
: Remove the unused variablee
in the exception handling.- except Exception as e: - raise + except Exception: + raise
Line range hint
169-184
: Remove the unused variablee
in the exception handling.- except Exception as e: - raise + except Exception: + raise
Line range hint
186-217
: Remove the unused variablee
in the exception handling.- except Exception as e: - print( - f"An error occurred while creating eval request", - str(e), - ) + except Exception: + print( + "An error occurred while creating eval request" + )
Line range hint
219-261
: Remove the unused variablee
in the exception handling.- except Exception as e: - print( - f"An error occurred while posting experiment metadata", - str(e), - ) + except Exception: + print( + "An error occurred while posting experiment metadata" + )
Line range hint
263-330
: Remove the unused variablee
in the exception handling.- except Exception as e: - raise + except Exception: + raise
Review Details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (3)
- athina/datasets/dataset.py (3 hunks)
- athina/services/athina_api_service.py (2 hunks)
- examples/dataset_creation.ipynb (3 hunks)
Additional Context Used
Ruff (15)
athina/datasets/dataset.py (5)
1-1:
json
imported but unused
3-3:
requests
imported but unused
4-4:
dataclasses.asdict
imported but unused
56-56: Local variable
e
is assigned to but never used
78-78: Local variable
e
is assigned to but never usedathina/services/athina_api_service.py (10)
3-3:
dataclasses.asdict
imported but unused
6-6:
athina.errors.exceptions.NoAthinaApiKeyException
imported but unused
85-85: Local variable
e
is assigned to but never used
119-119: f-string without any placeholders
150-150: Local variable
e
is assigned to but never used
186-186: Local variable
e
is assigned to but never used
217-217: f-string without any placeholders
261-261: f-string without any placeholders
304-304: f-string without any placeholders
330-330: Local variable
e
is assigned to but never used
Additional comments not posted (7)
examples/dataset_creation.ipynb (4)
5-16
: No issues found in this cell.
Line range hint
31-52
: No issues found in this cell.
53-60
: No issues found in this cell.
Line range hint
61-78
: No issues found in this cell.athina/datasets/dataset.py (2)
Line range hint
1-12
: No issues found in theDatasetRow
class.
Line range hint
79-81
: No issues found in thedataset_link
method.athina/services/athina_api_service.py (1)
Line range hint
17-20
: No issues found in the_headers
method.
Summary by CodeRabbit
New Features
data_source
attribute to datasets, enhancing dataset metadata.Improvements
/api/v1/dataset_v2
for better versioning.Documentation
dataset.id
.