remote_dataset.url is not returning a url
jurra opened this issue · comments
Jose Urra commented
Expected behavior
# when user uploads a local dataset like so
import fairly
client = fairly.client("zenodo")
dataset = fairly.dataset(<path/to/dataset>)
remote_dataset = dataset.upload(client.client_id)
remote_dataset.url
Ouput: a url
When I check for a published remote dataset, I see the url. I would expect the same to happen when running the above code.
remote = fairly.dataset("https://zenodo.org/record/3929547#.Yw_SodJBxhF")
remote.url
output:
https://zenodo.org/record/3929547#.Yw_SodJBxhF
How to reproduce
- create a local dataset
import fairly
client = fairly.client("zenodo")
dataset = fairly.dataset(<path/to/dataset>)
- create a remote dataset by uploading the local dataset
remote_dataset = dataset.upload(client.client_id)
- get the url of the remote dataset
remote_dataset.url
output: None