Commit 673290a7 authored by Mohit's avatar Mohit
Browse files

RDPM tool code.

parent 9887e2fd
Loading
Loading
Loading
Loading

.DS_Store

0 → 100644
+8 KiB

File added.

No diff preview for this file type.

README.md

deleted100644 → 0
+0 −2
Original line number Diff line number Diff line
# RDPM

parser/.DS_Store

0 → 100644
+8 KiB

File added.

No diff preview for this file type.

parser/.Rapp.history

0 → 100644
+0 −0

Empty file added.

parser/Extract.py

0 → 100644
+15 −0
Original line number Diff line number Diff line
import xml.etree.ElementTree as ET

class Extract():

	#Pattern parameters
	parameters={}

	def __init__(self,root,rdp):
		self.extractParam(root,rdp)

	#Extract parameters
	def extractParam(self,root,rdp):

		for tag in root.findall(".//pattern[@name="+rdp+"]/"):
			self.parameters[tag.tag] = tag.text
Loading