ITC-CRIB / fairly

A package to create, publish, and clone research datasets

Home Page:https://fairly.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

remote_dataset.url is not returning a url

jurra opened this issue · comments

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

  1. create a local dataset
import fairly
client = fairly.client("zenodo")
dataset = fairly.dataset(<path/to/dataset>)
  1. create a remote dataset by uploading the local dataset
remote_dataset = dataset.upload(client.client_id)
  1. get the url of the remote dataset
remote_dataset.url
output: None