Skip to content

Commit

Permalink
Merge pull request #238 from snek5000/use-read_header
Browse files Browse the repository at this point in the history
Use read_header(self.path).time instead of readnek(self.path).time
  • Loading branch information
paugier committed Dec 6, 2022
2 parents 1fcd982 + b6df15f commit 2784cc2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/snek5000/util/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from pathlib import Path
from shutil import copy2

from pymech import readnek
from pymech.neksuite.field import read_header

from fluiddyn.io import FLUIDSIM_PATH

Expand Down Expand Up @@ -138,7 +138,7 @@ def __init__(self, path):

@property
def time(self):
return readnek(self.path).time
return read_header(self.path).time

def __gt__(self, other):
time = other.time if isinstance(other, type(self)) else other
Expand All @@ -163,7 +163,7 @@ def bisect_nek_files_by_time(files, time):
time: float
Approximate simulation time. Finds ``file`` such that
:func:`readnek(file).time <pymech:pymech.neksuite.readnek>` < ``time``.
:func:`read_header(file).time <pymech:pymech.neksuite.field.read_header>` < ``time``.
Returns
-------
Expand Down

0 comments on commit 2784cc2

Please sign in to comment.