Github user lewismc commented on the issue: https://github.com/apache/climate/pull/411 Thanks Omkar. Can you please send a Pr to podaacpy to add these status codes to the function documentation? Thanks On Friday, September 30, 2016, Omkar <notificati...@github.com> wrote: > *@Omkar20895* commented on this pull request. > ------------------------------ > > In ocw/data_source/podaac_datasource.py > <https://github.com/apache/climate/pull/411#pullrequestreview-2402455>: > > > + '''Subset Granule service allows users to Submit subset jobs. \ > + Use of this service should be preceded by a Granule Search in \ > + order to identify and generate a list of granules to be subsetted. > + > + :param input_file_path: path to a json file which contains the \ > + the request that you want to send to PO.DAAC > + :type input_file_path: :mod:`string` > + > + :returns: a token on successful request reception. This can be \ > + further used to check the status of the request. > + > + ''' > + podaac = Podaac() > + status = podaac.subset_status(podaac.granule_subset(input_file_path)) > + print("Granule subsetting initiated with request tracking token '%s'." % status) > + while status is not "200": > > Instead of 200 it should be the string "done" here, because as much as I > have noticed subset_token returns the following status > > - "submitted" : returned on successful submission > - "error" : returned when there is error in the JSON POST request. > - "unknown" : I am uncertain about this. > - "done" : returned when subsetting is done. > > â > You are receiving this because you were mentioned. > Reply to this email directly, view it on GitHub > <https://github.com/apache/climate/pull/411#pullrequestreview-2402455>, > or mute the thread > <https://github.com/notifications/unsubscribe-auth/ABHJlzeAVFbzikngcPfoPhk_kRKUjV-mks5qvXnlgaJpZM4KHN4K> > . > -- *Lewis* Dr. Lewis J. McGibbney Ph.D, B.Sc Director Phone: +1(626)498-3090 Skype: lewis.john.mcgibbney Email: lewis.mcgibb...@gmail.com
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---