Skip to content

Commit

Permalink
Switch to external FreeQDSK for *qdsk reading/writing
Browse files Browse the repository at this point in the history
  • Loading branch information
ZedThree committed Feb 6, 2023
1 parent 511550c commit 88895de
Show file tree
Hide file tree
Showing 11 changed files with 9 additions and 984 deletions.
4 changes: 2 additions & 2 deletions docs/input_and_output.rst
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,11 @@ To convert a G-EQDSK file directly to DivGeo without any solves, and
without needing to know the coil locations, use the low-level
routines::

from freegs import _geqdsk
from freegdsk import geqdsk
from freegs import _divgeo

with open("input.geqdsk") as f:
data = _geqdsk.read(f)
data = geqdsk.read(f)
with open("output.equ", "w") as f:
_divgeo.write(data, f)
Expand Down
329 changes: 0 additions & 329 deletions freegs/_aeqdsk.py

This file was deleted.

2 changes: 1 addition & 1 deletion freegs/_divgeo.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"""
import numpy as np

from ._fileutils import ChunkOutput, write_1d, write_2d
from freeqdsk._fileutils import ChunkOutput, write_1d, write_2d


def write(data, fh, label=None):
Expand Down
Loading

1 comment on commit 88895de

@aagnello
Copy link

@aagnello aagnello commented on 88895de Mar 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This broke the geqdsk imports, depending on how freegs is installed, unless freeqdsk is added also to the requirements.txt

Please sign in to comment.