Commit 6d160e90 authored by marc's avatar marc
Browse files

Initial commit

parent 23d954ce
'''
Metadata Class
'''
import configparser
from __future__ import print_function
import logging
import os.path
from configparser import ConfigParser
import time
config = ConfigParser()
config.readfp(open(os.path.join(os.path.dirname(__file__), 'metadata.ini')))
logging.basicConfig(level=logging.DEBUG)
'''
Metadata Class
'''
class MetaData():
def __init__(self):
......@@ -35,8 +38,8 @@ class MetaData():
'''
DT Settings
'''
self._refractionEnabled
self._DTModelEnabled
self._refractionEnabled = 'False'
self._DTModelEnabled = 'False'
'''
Backend Settings
......@@ -45,10 +48,10 @@ class MetaData():
self._LSREnabled = 'False'
def setOperators(self, operator1, operator2, operator3):
for operator in operators:
self._operator1 = operator1
self._operator1 = operator2
self._operator1 = operator3
self._operator1 = operator1
self._operator2 = operator2
self._operator3 = operator3
logging.info('set Operator 1 is {}'.format(operator1))
def setOutputDirectory(self,outputDirectory):
self._outputDirectory = outputDirectory
......@@ -57,8 +60,12 @@ class MetaData():
self._tool = tool
def getMetaData(self):
return MetaData
logging.info('Return Meta data from MetaData class')
return MetaData
if __name__ == '__main__':
myMetaData = MetaData()
myData = MetaData()
myData.setOperators('Tammo-Jan', 'Paul', 'Ard')
logging.info(myData.getMetaData())
logging.info(myData._operator2)
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment