scc_access/scc_access.py

changeset 36
b51ba2647b41
parent 34
609a3f4b3c27
child 38
1b6786e9865d
--- a/scc_access/scc_access.py	Fri Jan 11 19:28:49 2019 +0200
+++ b/scc_access/scc_access.py	Thu Dec 05 18:27:15 2019 +0200
@@ -23,7 +23,7 @@
 
 # The regex to find the measurement id from the measurement page
 # This should be read from the uploaded file, but would require an extra NetCDF module.
-regex = "<h3>Measurement (?P<measurement_id>.{12}) <small>"
+regex = "<h3>Measurement (?P<measurement_id>.{12,15}) <small>"  # {12, 15} to handle both old- and new-style measurement ids.
 
 
 class SCC:
@@ -714,8 +714,8 @@
     delete_parser = subparsers.add_parser("delete", help="Deletes a measurement.")
     rerun_all_parser = subparsers.add_parser("rerun-all", help="Reprocess a measurement on the SCC.")
     rerun_processing_parser = subparsers.add_parser("rerun-processing",
-                                                    help="Rerun processing routings for a measurement.")
-    process_file_parser = subparsers.add_parser("process-file", help="Upload a file and download procesing results.")
+                                                    help="Rerun processing routines for a measurement.")
+    process_file_parser = subparsers.add_parser("process-file", help="Upload a file and download processing results.")
     upload_file_parser = subparsers.add_parser("upload-file", help="Upload a file.")
     list_parser = subparsers.add_parser("list", help="List measurements registered on the SCC.")
     download_parser = subparsers.add_parser("download", help="Download selected measurements.")

mercurial