Skip to content

Commit 464a0d0

Browse files
committed
BLD: add support for python 3.13
1 parent 098bedd commit 464a0d0

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ jobs:
1919
- ['3.10', cp310]
2020
- ['3.11', cp311]
2121
- ['3.12', cp312]
22+
- ['3.13', cp313]
2223
os_arch:
2324
- [ubuntu-latest, manylinux_x86_64]
2425
- [windows-latest, win_amd64]

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,17 @@ jobs:
1818
timeout-minutes: 15
1919
strategy:
2020
matrix:
21-
python-version: ["3.9", "3.10", "3.11", "3.12"]
21+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
2222
os: [ubuntu-latest]
2323
include:
2424
- os: macos-latest
2525
python-version: "3.10"
2626
- os: macos-latest
27-
python-version: 3.12
27+
python-version: 3.13
2828
- os: windows-latest
2929
python-version: 3.9
3030
- os: windows-latest
31-
python-version: 3.12
31+
python-version: 3.13
3232

3333
steps:
3434
- uses: actions/checkout@v4

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ classifiers = [
3737
"Programming Language :: Python :: 3.10",
3838
"Programming Language :: Python :: 3.11",
3939
"Programming Language :: Python :: 3.12",
40+
"Programming Language :: Python :: 3.13",
4041
"Topic :: Scientific/Engineering",
4142
"Topic :: Scientific/Engineering :: Physics",
4243
"Topic :: Software Development :: Libraries",

src/xtgeo/well/_well_io.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,6 @@ def _check_special_logs(dfr, mdlogname, zonelogname, strict, wname):
196196

197197
def export_rms_ascii(self, wfile, precision=4):
198198
"""Export to RMS well format."""
199-
200199
with open(wfile, "w", encoding="utf-8") as fwell:
201200
print("1.0", file=fwell)
202201
print("Unknown", file=fwell)
@@ -225,7 +224,7 @@ def export_rms_ascii(self, wfile, precision=4):
225224
# make the disc as is np.int
226225
for lname in self.wlogtypes:
227226
if self.wlogtypes[lname] == _AttrType.DISC.value:
228-
tmpdf[[lname]] = tmpdf[[lname]].astype(int)
227+
tmpdf[[lname]] = tmpdf[[lname]].fillna(-999).astype(int)
229228

230229
cformat = "%-." + str(precision) + "f"
231230
tmpdf.to_csv(
@@ -234,7 +233,7 @@ def export_rms_ascii(self, wfile, precision=4):
234233
header=False,
235234
index=False,
236235
float_format=cformat,
237-
escapechar=" ",
236+
escapechar="\\",
238237
mode="a",
239238
)
240239

0 commit comments

Comments
 (0)