From 18b3b205bcb7550ce148c623bf78b65a31773ede Mon Sep 17 00:00:00 2001 From: Mark Piper Date: Wed, 2 Oct 2024 14:43:55 -0600 Subject: [PATCH] Make pretty --- pymt/component/component.py | 1 + pymt/events/manager.py | 1 + pymt/events/port.py | 1 + pymt/framework/bmi_bridge.py | 2 +- pymt/framework/services.py | 1 + pymt/grids/structured.py | 1 + pymt/timeline.py | 1 + tests/framework/test_bmi_ugrid.py | 1 + 8 files changed, 8 insertions(+), 1 deletion(-) diff --git a/pymt/component/component.py b/pymt/component/component.py index 7ced9fd1..69b313dc 100644 --- a/pymt/component/component.py +++ b/pymt/component/component.py @@ -55,6 +55,7 @@ 100.0 >>> comp.finalize() """ + import warnings import yaml diff --git a/pymt/events/manager.py b/pymt/events/manager.py index 08f8713e..0d091a8a 100644 --- a/pymt/events/manager.py +++ b/pymt/events/manager.py @@ -45,6 +45,7 @@ hello! hello from finalize """ + from configparser import ConfigParser from io import StringIO diff --git a/pymt/events/port.py b/pymt/events/port.py index 9e71a19e..6533fe02 100644 --- a/pymt/events/port.py +++ b/pymt/events/port.py @@ -1,5 +1,6 @@ """Wrap a port as a :class:`Timeline` event. """ + import os import sys diff --git a/pymt/framework/bmi_bridge.py b/pymt/framework/bmi_bridge.py index e1e0ef37..6120dd00 100644 --- a/pymt/framework/bmi_bridge.py +++ b/pymt/framework/bmi_bridge.py @@ -1,4 +1,5 @@ """Bridge between BMI and a PyMT component.""" + import ctypes import json import os @@ -91,7 +92,6 @@ def __str__(self): class _BmiCapV1: - """Add methods for backward compatibility.""" @staticmethod diff --git a/pymt/framework/services.py b/pymt/framework/services.py index 758bc8c7..80f2e914 100644 --- a/pymt/framework/services.py +++ b/pymt/framework/services.py @@ -1,5 +1,6 @@ """Access to framework services. """ + import warnings _COMPONENT_CLASSES = {} diff --git a/pymt/grids/structured.py b/pymt/grids/structured.py index d4f6989b..9f33853b 100644 --- a/pymt/grids/structured.py +++ b/pymt/grids/structured.py @@ -106,6 +106,7 @@ >>> g.get_connectivity() array([1, 0, 2, 3, 5, 4, 6, 7]) """ + import warnings import numpy as np diff --git a/pymt/timeline.py b/pymt/timeline.py index 2a85294f..be1425f5 100644 --- a/pymt/timeline.py +++ b/pymt/timeline.py @@ -66,6 +66,7 @@ ('event', 0) ('event', 2) """ + import bisect diff --git a/tests/framework/test_bmi_ugrid.py b/tests/framework/test_bmi_ugrid.py index e64ed8a4..7044266c 100644 --- a/tests/framework/test_bmi_ugrid.py +++ b/tests/framework/test_bmi_ugrid.py @@ -1,4 +1,5 @@ """Unit tests for the pymt.framwork.bmi_ugrid module.""" + import numpy as np import xarray as xr