|
|
@ -2,18 +2,11 @@ import numpy as np
|
|
|
|
import configparser
|
|
|
|
import configparser
|
|
|
|
|
|
|
|
|
|
|
|
import json
|
|
|
|
import json
|
|
|
|
import os
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dir_path = os.path.dirname(os.path.realpath(__file__))
|
|
|
|
|
|
|
|
print(dir_path)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def get_config(conffile):
|
|
|
|
def get_config(conffile):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
parser = configparser.ConfigParser()
|
|
|
|
parser = configparser.ConfigParser()
|
|
|
|
print(parser.read(conffile))
|
|
|
|
parser.read(conffile)
|
|
|
|
|
|
|
|
|
|
|
|
print(parser)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cons=json.loads(parser.get('Iterables',"connectivity"))
|
|
|
|
cons=json.loads(parser.get('Iterables',"connectivity"))
|
|
|
|
ps=json.loads(parser.get('Iterables',"p"))
|
|
|
|
ps=json.loads(parser.get('Iterables',"p"))
|
|
|
|