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

Change data_path from an attribute to a method #23

Open
hafen opened this issue May 8, 2019 · 2 comments
Open

Change data_path from an attribute to a method #23

hafen opened this issue May 8, 2019 · 2 comments

Comments

@hafen
Copy link
Member

hafen commented May 8, 2019

I think a nice practical function for getting local paths for data resources would be to change data_path from an attribute to a method.

The method would work as follows:

  • If you call p.data_path(), it returns /full/path/to/project/data
  • If you call it with an argument of a name or URI, it will return the path to that file. For example, p.data_path("syn:syn18670920") would return full/path/to/project/data/file_associated_with_syn18670920.ext
@pcstout
Copy link
Member

pcstout commented May 9, 2019

@hafen How about a new method called data_path_for(remote_uri)?

@hafen
Copy link
Member Author

hafen commented May 10, 2019

I'm not sure what I think about data_path_for(). Maybe get_data_path().

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

No branches or pull requests

2 participants