Closed BijalBPatel closed 1 year ago
@EliotGann I was curious so i wrote a loader that converts from the spreadsheet to the wiki. Example output is here: https://wiki-nsls2.bnl.gov/beamline7ID1/index.php?title=User:Bijal
Theres a jupyter notebook with the code in the commit (made an 'examples/utility' folder to hold it)
@EliotGann Updated for what we discussed today and tested on your newest excel sheet.
New usage:
To get code for a single wiki page which has separate tables for each sheet of parameters ('Bar', 'Acquisitions'...) Use either:
print(convertSampleSheetExcelMediaWiki(excelSheetInputPath, verbose=False))
print(convertSampleSheetExcelMediaWiki(excelSheetInputPath, verbose=False, paramsSheetToOutput='all'))
To get code for a single wiki page which only has a table for a particular sheet of parameters:
print(convertSampleSheetExcelMediaWiki(excelSheetInputPath, verbose=False, paramsSheetToOutput='Acquisitions'))
Example of case 1: https://wiki-nsls2.bnl.gov/beamline7ID1/index.php?title=User:Bijal
Objective: Write a function that converts the sample sheet metadata/rules into a format that can be copy-pasted into the wiki.