-
Notifications
You must be signed in to change notification settings - Fork 3
Closed
Labels
enhancementNew feature or requestNew feature or requestnext-coding-sessionLook into during the next CS.Look into during the next CS.next-releaseIssues blocking the next releaseIssues blocking the next release
Milestone
Description
Convert code made by @CellKai in a method
dbf = DocumentBuilderFactory.newInstance()
db = dbf.newDocumentBuilder()
dom = db.parse(xml_file)
experimentEL = dom.getDocumentElement()
nodeList = dom.getElementsByTagName("Attributes")
for i in range(nodeList.getLength()):
node = nodeList.item(i).getAttributes().getNamedItem("name").getNodeValue()
if node == "channel":
nbr_chnl = int(nodeList.item(i).getElementsByTagName("Channel").getLength())
if node == "illumination":
nbr_ill = int(nodeList.item(i).getElementsByTagName("Illumination").getLength())
timepoints_node = dom.getElementsByTagName("Timepoints")
nbr_tp = (
int(timepoints_node.item(0).getElementsByTagName("last").item(0).getTextContent())
+ 1
)
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestnext-coding-sessionLook into during the next CS.Look into during the next CS.next-releaseIssues blocking the next releaseIssues blocking the next release
Type
Projects
Status
Done