-
Notifications
You must be signed in to change notification settings - Fork 104
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
Add some more logging #5321
Add some more logging #5321
Conversation
Codecov Report
@@ Coverage Diff @@
## main #5321 +/- ##
==========================================
+ Coverage 73.72% 73.77% +0.04%
==========================================
Files 392 392
Lines 26787 26809 +22
Branches 2088 2086 -2
==========================================
+ Hits 19750 19778 +28
+ Misses 6362 6356 -6
Partials 675 675
... and 7 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
@@ -66,12 +71,15 @@ def load(self, run_path: Path, real_nr: int, ensemble: EnsembleAccessor): | |||
trans = self.input_transformation | |||
data_transformed = field_transform(data, trans) if trans else data | |||
ensemble.save_field(key, real_nr, data_transformed) | |||
_logger.debug(f"load() time_used {time.perf_counter() - t}s") |
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.
Should we reduce the resolution a bit here?
Perhaps something like:
_logger.debug(f"load() time_used {(time.perf_counter() - t):.4f}s")
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.
Yeas - any more digits does not make any sense
Issue
Resolves #5276
Approach
Short description of the approach
Pre review checklist
Adding labels helps the maintainers when writing release notes. This is the list of release note labels.