From 2645e7f413ac35bab8d8f0f5019c7f97be083af8 Mon Sep 17 00:00:00 2001 From: tomsail Date: Sat, 14 Sep 2024 15:25:45 +0200 Subject: [PATCH] fix ci: move import telemac in TELEMACResult data class --- pyposeidon/utils/data.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyposeidon/utils/data.py b/pyposeidon/utils/data.py index ff8e3b2..d7bbce5 100644 --- a/pyposeidon/utils/data.py +++ b/pyposeidon/utils/data.py @@ -15,8 +15,7 @@ from pyposeidon.mesh import r2d import pyposeidon.model as pm from pyposeidon.tools import flat_list -from pyposeidon.telemac import extract_t_elev_2D -import xarray as xr + xarray as xr import glob import logging import json @@ -215,6 +214,7 @@ def __init__(self, **kwargs): 1. there are 1D AND 2D results, they need to be addressed separately 2. selafin are readable directly in xarray, so we can skip the conversion step """ + from pyposeidon.telemac import extract_t_elev_2D rpath = kwargs.get("rpath", "./telemac/") res_type = kwargs.get("result_type", "2D") convert = kwargs.get("convert_results", True)