Skip to content
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

Run gps from any directory (except MuJoCo experiments) #13

Merged
merged 8 commits into from
Apr 30, 2016

Conversation

xinyutan17
Copy link
Collaborator

Run gps from any directory (except MuJoCo experiments)

  • Updated usage.md to reflect this
  • Refactored BASE_DIR / EXP_DIR in hyperparams files
  • Made comments better for load_pose_from_npz and save_pose_to_npz

@@ -60,18 +66,25 @@ def save_to_npz(filename, key, value):
np.savez(filename, **tmp)


def load_pose_from_npz(filename, actuator_name, target_number, data_time):
def load_pose_from_npz(filename, actuator_name, target_number, data_time,
default_ja=np.zeros(7), default_ee_pos=np.zeros(3),
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you set these as a constant at the top of the file instead of arguments to the function?

@xinyutan17
Copy link
Collaborator Author

Okay fixed, can I merge now?

@cbfinn
Copy link
Owner

cbfinn commented Apr 16, 2016

Yes, though people should be aware that this breaks any of their non-checked in hyperparams files (and they need to change those two lines of code with the directory)

@xinyutan17
Copy link
Collaborator Author

xinyutan17 commented Apr 16, 2016

Should we just keep the old version then? I mean the extra "../" is kind of stupid but trivial.

@cbfinn
Copy link
Owner

cbfinn commented Apr 17, 2016

Is there a clean way to make this change without affecting the hyperparams file?

@xinyutan17
Copy link
Collaborator Author

Yes, those changes don't really do anything except make the code look a little better, so I can just remove them.

@cbfinn
Copy link
Owner

cbfinn commented Apr 18, 2016

Ok, please do then.

On Sun, Apr 17, 2016 at 4:20 PM, Xin Yu Tan notifications@github.com
wrote:

Yes, those changes don't really do anything except make the code look a
little better, so I can just remove them.


You are receiving this because you commented.
Reply to this email directly or view it on GitHub
#13 (comment)

@xinyutan17 xinyutan17 force-pushed the dennis_gui branch 4 times, most recently from b9a44bd to fa12b4a Compare April 30, 2016 23:28
@xinyutan17 xinyutan17 merged commit 07524fa into master Apr 30, 2016
josh-tobin pushed a commit to josh-tobin/gps that referenced this pull request Jul 8, 2016
@cbfinn cbfinn deleted the dennis_gui branch October 15, 2016 00:14
tianheyu927 pushed a commit that referenced this pull request Jan 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants