Skip to content

Commit

Permalink
#154 deprecation message
Browse files Browse the repository at this point in the history
  • Loading branch information
azamifard committed Mar 10, 2021
1 parent 04899cf commit d324b87
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
3 changes: 3 additions & 0 deletions geospaas/nansat_ingestor/management/commands/ingest.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ def _get_args(self, *args, **options):
def handle(self, *args, **options):
""" Ingest one Dataset per file that has not previously been ingested
"""
print("WARNING!!! nansat_ingestor app will be deprecated soon and no longer "
"accessible. Please use `LOCALHarvester` of geospaas harvesting package instead.")
input("Press Enter to continue...")
non_ingested_uris, n_points, nansat_options = self._get_args(*args, **options)

for non_ingested_uri in non_ingested_uris:
Expand Down
5 changes: 3 additions & 2 deletions geospaas/nansat_ingestor/management/commands/ingest_hyrax.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ class Command(IngestCommand):
help = 'Add file to catalog from HYRAX server'

def handle(self, *args, **options):
print("WARNING!!! nansat_ingestor app will be deprecated soon and no longer "
"accessible. Please use `LOCALHarvester` of geospaas harvesting package instead.")
input("Press Enter to continue...")
print('Searching netcdf files. May take some time...\n\n\n')
nc_uris = find_netcdf_uris(args[0])
num_nc_uris = len(nc_uris)
Expand Down Expand Up @@ -42,5 +45,3 @@ def find_netcdf_uris(uri0, sleep=1.0):
print('Server error %s'%e.message)
# return all links to netCDF
return nc_uris


Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ def add_arguments(self, parser):
help='''Filename of a specific dataset''')

def handle(self, *args, **options):
print("WARNING!!! nansat_ingestor app will be deprecated soon and no longer "
"accessible. Please use `LOCALHarvester` of geospaas harvesting package instead.")
input("Press Enter to continue...")
if not len(options['url']) == 1:
raise IOError('Please provide a url to the data')
url = options.pop('url')[0]
Expand Down

0 comments on commit d324b87

Please sign in to comment.