-
-
Notifications
You must be signed in to change notification settings - Fork 123
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
Resolve duplication between RunLogger in ersilia/core/session.py and RunTracker in ersilia/core/tracking.py #1132
Conversation
Hey @Malikbadmus, good work so far and thank you for your efforts and the detailed explanations here! I have a few questions. You mention:
|
@DhanshreeA , Many thanks for the review.
|
Thanks @Malikbadmus, you're right this is absolutely not required, your suggestion is helpful. |
@DhanshreeA , I have implemented the suggested changes and for the global variable, the reason I made use of it is here, though I have included an alternative in the new PR, I'll welcome your suggestion on ways of improving this solution. |
with @Inyrkz assistance , a better alternative to the Global variable has been implemented. |
@DhanshreeA , I have successfully rebased the pull request to work with the latest changes made to the master branch and resolve the conflict that emerged. |
LGTM @Malikbadmus, just few more very small changes and we can merge this |
@DhanshreeA , I have modified the PR to reflect these changes. |
@DhanshreeA , i can understand what you mean, we just want the I've modified the tracking.py to reflect these changes, I've added an error handling in both functions to raise a Filenotfound error if |
… ensure error handling
The new error handling I added to the function I have added an if statement to address this in |
cleaning up import statement and comment Added get_persistent_file_path function to centralize file path creation.
LGTM @Malikbadmus merging this! |
Description
Resolve duplication between RunLogger in ersilia/core/session.py and RunTracker in ersilia/core/tracking.py. For example, both RunTracker and RunLogger subsample result output when the output dimensions are too many to reduce storage overhead and to not clutter the monitoring dashboard.
Changes Made
sample_df
method, and modified modified most of the functions in the RunTracker class.track_run
function with clearer method names and simplified parameters, excluding input and result data frames, meta, and metadata from the JSON output.model.py
to reflect the changes.Status
Related to #1090