Hi Tom,
thanks for the reply. Allow me a further question. Running
network.consistency_check(), I m getting the following error:
WARNING:pypsa.components:The following lines have zero x, which could break the linear load flow:
Index(['34', '2', '4', '5', '6', '7', '8', '9', '11', '12', '13', '14', '15',
'17', '18', '19', '20', '21', '22', '24', '25', '26', '27', '28', '29',
'31', '32', '33', '35', '36', '37', '39', '1', '3', '10', '16', '23',
'30', '38', '40', '41', '42', '43'],
dtype='object')
WARNING:pypsa.components:The following lines have zero r, which could break the linear load flow:
Index(['34', '2', '4', '5', '6', '7', '8', '9', '11', '12', '13', '14', '15',
'17', '18', '19', '20', '21', '22', '24', '25', '26', '27', '28', '29',
'31', '32', '33', '35', '36', '37', '39', '1', '3', '10', '16', '23',
'30', '38', '40', '41', '42', '43'],
dtype='object')
WARNING:pypsa.components:The following lines have zero series impedance, which will break the load flow:
Index(['34', '2', '4', '5', '6', '7', '8', '9', '11', '12', '13', '14', '15',
'17', '18', '19', '20', '21', '22', '24', '25', '26', '27', '28', '29',
'31', '32', '33', '35', '36', '37', '39', '1', '3', '10', '16', '23',
'30', '38', '40', '41', '42', '43'],
dtype='object')
WARNING:pypsa.components:The following attributes of the dataframe transformer_types have the wrong dtype:
Index(['tap_side', 'tap_neutral', 'tap_min', 'tap_max'], dtype='object', name='attribute')
They are:
attribute
tap_side int32
tap_neutral int32
tap_min int32
tap_max int32
dtype: object
but should be:
attribute
tap_side int64
tap_neutral int64
tap_min int64
tap_max int64
Name: typ, dtype: object
Appart from one link (l_id =34), all the rest have non zero r,x,c. Could this drive the error?
Even though I set r,x,c of l_id=34 equal to some value, still I got the same error.
What am I missing? Thanks in advance!