-
Notifications
You must be signed in to change notification settings - Fork 310
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
Move garage.misc.instrument to garage.experiment #386
Conversation
Codecov Report
@@ Coverage Diff @@
## master #386 +/- ##
==========================================
+ Coverage 64.91% 64.96% +0.04%
==========================================
Files 213 214 +1
Lines 13834 13839 +5
==========================================
+ Hits 8981 8991 +10
+ Misses 4853 4848 -5
Continue to review full report at Codecov.
|
I think it is arguable that nb_utils belongs here (either here or in Please update #358 once you're done. |
2f661e7
to
a56f949
Compare
If nb_utils is not used anywhere in garage, should I just delete the file or move it to garage.experiment.nb_utils |
garage/experiment/__init__.py
Outdated
from garage.experiment.experiment import VariantGenerator | ||
|
||
__all__ = [ | ||
"concretize", |
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.
Is concretize
called from anywhere except inside this package? If not, it's not part of the API and doesn't need to be in __all__
. Ditto for the other modules.
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.
Note that tests don't count since they can access private APIs.
garage/experiment/experiment.py
Outdated
exp_prefix.replace("_", "-") + \ | ||
"/" + \ | ||
task["exp_name"] | ||
exp_prefix.replace("_", "-") + "/" + task["exp_name"] # noqa: E122 |
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.
Uh is there a reason we can't just fix all these?
scripts/run_experiment.py
Outdated
@@ -226,14 +226,15 @@ def child_proc_shutdown(children): | |||
for child in alive: | |||
error_msg += (str( | |||
child.as_dict( | |||
attrs=["ppid", "pid", "name", "status", "cmdline"])) + | |||
"\n") | |||
attrs=["ppid", "pid", "name", "status", "cmdline"])) + "\n" |
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.
Why not just fix?
LMK when this is ready for review again. Please just fix the PEP8 bugs. |
ab0e50e
to
253a521
Compare
What is the blocker here? Still the PEP8 conflicts? Did you have any luck with modifying the YAPF config? |
253a521
to
f772639
Compare
f772639
to
b23b3f9
Compare
Removed PEP8 conflicts. Ready for another check. |
Fixes: #383.