Skip to content

Commit

Permalink
no suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
je-cook committed Jun 10, 2024
1 parent c97ee65 commit 7da9740
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions eqdsk/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ class EQDSKInterface:
"""

DEFAULT_COCOS_INDEX = 11
suggestion = False

bcentre: float
"""Vacuum toroidal Magnetic field at the reference radius [T]."""
Expand Down Expand Up @@ -298,11 +297,10 @@ def write(
json_kwargs = {} if json_kwargs is None else json_kwargs
json_writer(self.to_dict(), file_path, **json_kwargs)
elif file_format in {"eqdsk", "geqdsk"}:
if self.suggestion:
eqdsk_warn(
"You are in the 21st century. "
"Are you sure you want to be making an EDQSK in this day and age?"
)
eqdsk_warn(
"You are in the 21st century. "
"Are you sure you want to be making an EDQSK in this day and age?"
)
_write_eqdsk(file_path, self.to_dict())

def update(self, eqdsk_data: dict[str, Any]):
Expand Down

0 comments on commit 7da9740

Please sign in to comment.