diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 5064f33bc..f1454c24f 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -30,12 +30,7 @@
-
-
-
-
-
-
+
@@ -148,6 +143,7 @@
"Python tests.pytest for src.tests.test_generator_q_control.test_q_control_true.executor": "Run",
"Python tests.pytest for src.tests.test_load_all_grids.test_line_templates_finding.executor": "Run",
"Python tests.pytest for src.tests.test_ptdf.executor": "Run",
+ "Python tests.pytest for src.tests.test_raw_roundtrip.test_rawx_roundtrip.executor": "Run",
"Python tests.pytest for src.tests.test_topology_processor.test_topology_NL_microgrid.executor": "Run",
"Python tests.pytest for test_ntc.test_ntc_ieee_14.executor": "Run",
"Python tests.pytest in test_load_all_grids.py.executor": "Run",
@@ -204,7 +200,7 @@
-
+
@@ -612,7 +608,7 @@
-
+
@@ -626,11 +622,11 @@
-
+
-
+
@@ -644,7 +640,7 @@
-
+
@@ -669,17 +665,17 @@
+
-
+
+
-
-
@@ -2545,6 +2541,7 @@
+
@@ -2666,7 +2663,7 @@
-
+
diff --git a/src/GridCalEngine/IO/raw/raw_to_gridcal.py b/src/GridCalEngine/IO/raw/raw_to_gridcal.py
index 191f0c662..3311342b6 100644
--- a/src/GridCalEngine/IO/raw/raw_to_gridcal.py
+++ b/src/GridCalEngine/IO/raw/raw_to_gridcal.py
@@ -19,25 +19,16 @@
from GridCalEngine.basic_structures import Logger
import GridCalEngine.Devices as dev
from GridCalEngine.Devices.multi_circuit import MultiCircuit
-from GridCalEngine.IO.raw.devices.area import RawArea
from GridCalEngine.IO.raw.devices.branch import RawBranch
from GridCalEngine.IO.raw.devices.bus import RawBus
from GridCalEngine.IO.raw.devices.facts import RawFACTS
from GridCalEngine.IO.raw.devices.generator import RawGenerator
-from GridCalEngine.IO.raw.devices.induction_machine import RawInductionMachine
-from GridCalEngine.IO.raw.devices.inter_area import RawInterArea
from GridCalEngine.IO.raw.devices.load import RawLoad
from GridCalEngine.IO.raw.devices.fixed_shunt import RawFixedShunt
from GridCalEngine.IO.raw.devices.switched_shunt import RawSwitchedShunt
from GridCalEngine.IO.raw.devices.transformer import RawTransformer
from GridCalEngine.IO.raw.devices.two_terminal_dc_line import RawTwoTerminalDCLine
from GridCalEngine.IO.raw.devices.vsc_dc_line import RawVscDCLine
-from GridCalEngine.IO.raw.devices.zone import RawZone
-from GridCalEngine.IO.raw.devices.owner import RawOwner
-from GridCalEngine.IO.raw.devices.substation import RawSubstation
-from GridCalEngine.IO.raw.devices.gne_device import RawGneDevice
-from GridCalEngine.IO.raw.devices.system_switching_device import RawSystemSwitchingDevice
-from GridCalEngine.IO.base.base_circuit import BaseCircuit
from GridCalEngine.IO.raw.devices.psse_circuit import PsseCircuit
from GridCalEngine.enumerations import TapChangerTypes
@@ -263,7 +254,7 @@ def get_gridcal_generator(psse_elm: RawGenerator, psse_bus_dict: Dict[int, dev.B
Pmax=psse_elm.PT,
Pmin=psse_elm.PB,
active=bool(psse_elm.STAT),
- power_factor=psse_elm.WPF)
+ power_factor=psse_elm.WPF if psse_elm.WPF is not None else 0.8)
if psse_elm.IREG > 0:
if psse_elm.IREG != psse_elm.I: