Functions | Variables
update_metadata Namespace Reference

Functions

def update_info (flist, md)
 

Variables

 parser
 
 type
 
 str
 
 help
 
 loads
 
 string
 
 args = parser.parse_args()
 
 sam = swc.SAMWebClient("dune")
 
 flist = sam.listFiles(args.dimensions)
 

Function Documentation

def update_metadata.update_info (   flist,
  md 
)

Definition at line 7 of file update_metadata.py.

7 def update_info(flist, md):
8  nfiles = len(flist)
9  ith = 0
10  for f in flist:
11  sys.stdout.write("{}/{} Updating Metadata for: {}\n".format(ith, nfiles, f))
12  sys.stdout.flush()
13  sam.modifyFileMetadata(f,md)
14  ith += 1
15  print("-- Done")
16  return
17 
18 
static bool format(QChar::Decomposition tag, QString &str, int index, int len)
Definition: qstring.cpp:11496
def update_info(flist, md)

Variable Documentation

update_metadata.args = parser.parse_args()

Definition at line 28 of file update_metadata.py.

update_metadata.flist = sam.listFiles(args.dimensions)

Definition at line 32 of file update_metadata.py.

update_metadata.help

Definition at line 25 of file update_metadata.py.

update_metadata.loads

Definition at line 26 of file update_metadata.py.

update_metadata.parser
Initial value:
1 = argparse.ArgumentParser(
2  prog='update_metadata.py',
3  description="Update one metadata field for multiple files matching SAM dimensions.",
4  epilog="")

Definition at line 21 of file update_metadata.py.

update_metadata.sam = swc.SAMWebClient("dune")

Definition at line 30 of file update_metadata.py.

update_metadata.str

Definition at line 25 of file update_metadata.py.

update_metadata.string

Definition at line 27 of file update_metadata.py.

update_metadata.type

Definition at line 25 of file update_metadata.py.