Changeset 38755 for gs3-installations/twso
- Timestamp:
- 2024-02-20T12:26:01+13:00 (4 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gs3-installations/twso/trunk/sites/twso/PreProcessing/metadatacreator3.py
r35269 r38755 52 52 53 53 #This method is used to get the name from a "conductor Buchanan-Smart, Andrew" line 54 #ie it removes the conductor part 54 #ie it removes the conductor part - which is at pos 0 of the temp array 55 55 def printName(temp): 56 56 … … 74 74 for line in lines: 75 75 temp = line.split() 76 if temp[0] == "soloist":76 if temp[0].lower() == "soloist": 77 77 fn.write("<Metadata mode='accumulate' name='pd.Soloist'>" + printName(temp) + "</Metadata>\n") 78 elif temp[0] == "conductor":78 elif temp[0].lower() == "conductor": 79 79 fn.write("<Metadata mode='accumulate' name='pd.Conductor'>" + printName(temp) + "</Metadata>\n") 80 80 else:
Note:
See TracChangeset
for help on using the changeset viewer.