We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6e7b21c commit 1d2359bCopy full SHA for 1d2359b
src/xtgeo/io/tsurf/_tsurf_reader.py
@@ -1,5 +1,3 @@
1
-from io import BytesIO, StringIO
2
-import pathlib
3
import warnings
4
from dataclasses import dataclass
5
from typing import Any, Generator, TextIO
@@ -795,16 +793,6 @@ def to_file(
795
793
wrapped_file = FileWrapper(file)
796
794
wrapped_file.check_folder(raiseerror=OSError)
797
798
- encoding = "utf-8"
799
-
800
- # TODO: remove commented code below
801
- # Looked in polygons.py, only need to open the file and write to it
802
- # But this is when wrapped_file is a str
803
- # with open(wrapped_file, "w") as fout:
804
- # for col in use_attributes:
805
- # if col in df.columns:
806
- # fout.write(transl[xyz._attrs[col]] + " " + col + "\n")
807
808
lines = []
809
810
# TSurf signature line
0 commit comments