Skip to content

Commit d918009

Browse files
committed
Correct freegs4e module imports to allow editable install
1 parent ca47ed9 commit d918009

2 files changed

Lines changed: 8 additions & 10 deletions

File tree

freegsnke/equilibrium_update.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Defines the FreeGSNKE equilibrium Object, which inherits from the FreeGS4E equilibrium object.
2+
Defines the FreeGSNKE equilibrium Object, which inherits from the FreeGS4E equilibrium object.
33
44
Copyright 2025 UKAEA, UKRI-STFC, and The Authors, as per the COPYRIGHT and README files.
55
@@ -14,15 +14,15 @@
1414
it under the terms of the GNU Lesser General Public License as published by
1515
the Free Software Foundation, either version 3 of the License, or
1616
(at your option) any later version.
17-
17+
1818
You should have received a copy of the GNU Lesser General Public License
19-
along with FreeGSNKE. If not, see <http://www.gnu.org/licenses/>.
19+
along with FreeGSNKE. If not, see <http://www.gnu.org/licenses/>.
2020
"""
2121

2222
import os
2323
import pickle
2424

25-
import freegs4e
25+
import freegs4e.equilibrium
2626
import numpy as np
2727
from freegs4e import critical
2828
from scipy import interpolate

freegsnke/jtor_update.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Defines the FreeGSNKE profile Object, which inherits from the FreeGS4E profile object.
2+
Defines the FreeGSNKE profile Object, which inherits from the FreeGS4E profile object.
33
44
Copyright 2025 UKAEA, UKRI-STFC, and The Authors, as per the COPYRIGHT and README files.
55
@@ -14,12 +14,12 @@
1414
it under the terms of the GNU Lesser General Public License as published by
1515
the Free Software Foundation, either version 3 of the License, or
1616
(at your option) any later version.
17-
17+
1818
You should have received a copy of the GNU Lesser General Public License
19-
along with FreeGSNKE. If not, see <http://www.gnu.org/licenses/>.
19+
along with FreeGSNKE. If not, see <http://www.gnu.org/licenses/>.
2020
"""
2121

22-
import freegs4e
22+
import freegs4e.jtor
2323
import numpy as np
2424
from freegs4e.gradshafranov import mu0
2525
from matplotlib.path import Path
@@ -31,7 +31,6 @@
3131

3232

3333
class Jtor_universal:
34-
3534
def __init__(self, refine_jtor=False):
3635
"""Sets default unrefined Jtor."""
3736
if refine_jtor:
@@ -278,7 +277,6 @@ def diverted_critical_complete(
278277
rel_tolerance_xpt=1e-4,
279278
starting_dx=0.05,
280279
):
281-
282280
try:
283281
opt, xpt, diverted_core_mask, psi_bndry = self.Jtor_part1(
284282
R, Z, psi, psi_bndry, mask_outside_limiter

0 commit comments

Comments
 (0)