6170d2fc49e318f352f284c37e3953d7a8dfcb7c,scripts/dev/image_analysis.py,,options,#,16

Before Change


  parser.add_argument("-D", "--dates", help="Date range. Format: YYYY-MM-DD-hh-mm-ss_YYYY-MM-DD-hh-mm-ss. If the second date is excluded then the current date is assumed.", required=False)
  parser.add_argument("-t", "--type", help="Image format type (extension).", default="png")
  parser.add_argument("-r", "--random", help="Select a random set of images from the input directory.", default=False, action="store_true")
  parser.add_argument("-n", "--number", help="Number of random images to test. Only used with -r/--random.", default=10)
  parser.add_argument("-l", "--deliminator", help="Image file name metadata deliminator character.", default="_")
  parser.add_argument("-f", "--meta", help="Image file name metadata format. List valid metadata fields separated by the deliminator (-l/--deliminator). Valid metadata fields are: " + ", ".join(map(str, list(valid_meta.keys()))), default="imgtype_camera_frame_zoom_id")
  parser.add_argument("-M", "--match", help="Restrict analysis to images with metadata matching input criteria. Input a metadata:value comma-separated list. This is an exact match search. E.g. imgtype:VIS,camera:SV,zoom:z500", required=False)
  args = parser.parse_args()

After Change


  else:
    args.imgtype = None
  
  if (args.coprocess is not None) and ("imgtype" not in args.imgtype):
    raise ValueError("When the coprocess imgtype is defined, imgtype must be included in match.")
    
  return args
//////////////////////////////////////////////////////////////////////////////////////

// Main
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: danforthcenter/plantcv
Commit Name: 6170d2fc49e318f352f284c37e3953d7a8dfcb7c
Time: 2015-08-18
Author: noahfahlgren@gmail.com
File Name: scripts/dev/image_analysis.py
Class Name:
Method Name: options


Project Name: automl/auto-sklearn
Commit Name: 9d0ed839dc9df4c9afc5966c1e3276c478a58d53
Time: 2020-09-16
Author: feurerm@informatik.uni-freiburg.de
File Name: scripts/run_auto-sklearn_for_metadata_generation.py
Class Name:
Method Name:


Project Name: LCAV/pyroomacoustics
Commit Name: 5b82d130747a10559da252ab814aa411ceaca77e
Time: 2017-10-08
Author: fakufaku@gmail.com
File Name: pyroomacoustics/experimental/measure_ir.py
Class Name:
Method Name: