
import CIM2Matpower

# from scipy.io import savemat

cim_to_matpower_filename = 'CIM_to_Matpower_import'

###########################################
# for testing purposes
#if __name__ == "__main__":
# boundary_profiles = ['G:/RTEDataNDAOnly/ENTSO_boundaries/ENTSO-E_Boundary_Set_EU_EQ.xml',
#                      'G:/RTEDataNDAOnly/ENTSO_boundaries/ENTSO-E_Boundary_Set_EU_TP.xml']
#
# cimfiles = ['G:/RTEDataNDAOnly/RTE_CIM_FILES_PILOTTEST_02052016/New_Version_of_CIMs_FOR_KUL_3/20130116_0030_FO_FR0/20130116_0030_FO3_FR0_EQ.xml',
#             'G:/RTEDataNDAOnly/RTE_CIM_FILES_PILOTTEST_02052016/New_Version_of_CIMs_FOR_KUL_3/20130116_0030_FO_FR0/20130116_0030_FO3_FR0_TP.xml',
#             'G:/RTEDataNDAOnly/RTE_CIM_FILES_PILOTTEST_02052016/New_Version_of_CIMs_FOR_KUL_3/20130116_0030_FO_FR0/20130116_0030_FO3_FR0_SV.xml']

# cimfiles = [
#     'D:/GQP_NEW/python_libs/cim2busbranch/test/data/20130116-1930-60Nodes-without-isolated-substations_MODIFIED/20130116-1930-60Nodes-without-isolated-substations_EQ.xml',
#     'D:/GQP_NEW/python_libs/cim2busbranch/test/data/20130116-1930-60Nodes-without-isolated-substations_MODIFIED/20130116-1930-60Nodes-without-isolated-substations_TP.xml',
#     'D:/GQP_NEW/python_libs/cim2busbranch/test/data/20130116-1930-60Nodes-without-isolated-substations_MODIFIED/20130116-1930-60Nodes-without-isolated-substations_SV.xml',
#     ]

# boundary_profiles = []
# cimfiles = ['D:\\GoogleDrive\\KU_Leuven\\CIM\\Examples\\VITO\\nyforsnetwork\\71c7400a-abc2-460b-868c-9c164f0eed7c.xml']


# cimfiles = 'G:/Konstantin/trunk/GQP/python_libs/CIM2Matpower/test/ENTSO-E_Boundary_Set_EU_EQ.xml'
cimfiles = ['./UCTE10_20090319_EQ.xml',
            './UCTE10_20090319_TP.xml',
            './UCTE10_20090319_SV.xml']

boundary_profiles = []

mpc = CIM2Matpower.cim_to_mpc(cimfiles, boundary_profiles)  #, 'imported_CIM.log')

# savemat(cim_to_matpower_filename+'.mat', mpc)

# pass
@@ -111,1285 +111,58 @@
 %0D%0A%0D%0A
-###########################################%0D%0A# for testing purposes%0D%0A#if __name__ == %22__main__%22:%0D%0A# boundary_profiles = %5B'G:/RTEDataNDAOnly/ENTSO_boundaries/ENTSO-E_Boundary_Set_EU_EQ.xml',%0D%0A#                      'G:/RTEDataNDAOnly/ENTSO_boundaries/ENTSO-E_Boundary_Set_EU_TP.xml'%5D%0D%0A#%0D%0A# cimfiles = %5B'G:/RTEDataNDAOnly/RTE_CIM_FILES_PILOTTEST_02052016/New_Version_of_CIMs_FOR_KUL_3/20130116_0030_FO_FR0/20130116_0030_FO3_FR0_EQ.xml',%0D%0A#             'G:/RTEDataNDAOnly/RTE_CIM_FILES_PILOTTEST_02052016/New_Version_of_CIMs_FOR_KUL_3/20130116_0030_FO_FR0/20130116_0030_FO3_FR0_TP.xml',%0D%0A#             'G:/RTEDataNDAOnly/RTE_CIM_FILES_PILOTTEST_02052016/New_Version_of_CIMs_FOR_KUL_3/20130116_0030_FO_FR0/20130116_0030_FO3_FR0_SV.xml'%5D%0D%0A%0D%0A# cimfiles = %5B%0D%0A#     'D:/GQP_NEW/python_libs/cim2busbranch/test/data/20130116-1930-60Nodes-without-isolated-substations_MODIFIED/20130116-1930-60Nodes-without-isolated-substations_EQ.xml',%0D%0A#     'D:/GQP_NEW/python_libs/cim2busbranch/test/data/20130116-1930-60Nodes-without-isolated-substations_MODIFIED/20130116-1930-60Nodes-without-isolated-substations_TP.xml',%0D%0A#     'D:/GQP_NEW/python_libs/cim2busbranch/test/data/20130116-1930-60Nodes-without-isolated-substations_MODIFIED/20130116-1930-60Nodes-without-isolated-substations_SV
+cimfiles = %5B'./UCTE10_20090319_modified_EQ
 .xml',%0D%0A
 #   
@@ -161,319 +161,13 @@
 ',%0D%0A
-#
      
-%5D%0D%0A%0D%0A# boundary_profiles = %5B%5D%0D%0A# cimfiles = %5B'D:%5C%5CGoogleDrive%5C%5CKU_Leuven%5C%5CCIM%5C%5CExamples%5C%5CVITO%5C%5Cnyforsnetwork%5C%5C71c7400a-abc2-460b-868c-9c164f0eed7c.xml'%5D%0D%0A%0D%0A%0D%0A# cimfiles = 'G:/Konstantin/trunk/GQP/python_libs/CIM2Matpower/test/ENTSO-E_Boundary_Set_EU_EQ.xml'%0D%0Acimfiles = %5B'./UCTE10_20090319_EQ.xml',%0D%0A     
     
@@ -187,16 +187,25 @@
 20090319
+_modified
 _TP.xml'
@@ -238,16 +238,25 @@
 0090319_
+modified_
 SV.xml'%5D
@@ -424,12 +424,4 @@
 c)%0D%0A
-%0D%0A# pass

Update test.py