Skip to content

Commit

Permalink
TYP: fix ruff issues after ruff update
Browse files Browse the repository at this point in the history
  • Loading branch information
ErichSuter committed Aug 20, 2024
1 parent 5b6808b commit f31e9c5
Show file tree
Hide file tree
Showing 15 changed files with 26 additions and 11 deletions.
1 change: 1 addition & 0 deletions tests/test_scripts/test_grid3d_aggregate_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import pytest
import xtgeo

from grid3d_maps.aggregate import grid3d_aggregate_map


Expand Down
3 changes: 2 additions & 1 deletion tests/test_scripts/test_grid3d_average_map1.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
import shutil
from pathlib import Path

import grid3d_maps.avghc.grid3d_average_map as grid3d_hc_thickness
import pytest
import xtgeo

import grid3d_maps.avghc.grid3d_average_map as grid3d_hc_thickness

SOURCEPATH = Path(__file__).absolute().parent.parent.parent


Expand Down
3 changes: 2 additions & 1 deletion tests/test_scripts/test_grid3d_average_map2.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
"""Testing suite avg2."""

import grid3d_maps.avghc.grid3d_average_map as grid3d_average_map
import numpy.testing as nptest
import pytest
import xtgeo

import grid3d_maps.avghc.grid3d_average_map as grid3d_average_map

# =============================================================================
# Do tests
# =============================================================================
Expand Down
3 changes: 2 additions & 1 deletion tests/test_scripts/test_grid3d_average_map4.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
"""Testing suite avg4."""

import grid3d_maps.avghc.grid3d_average_map as grid3d_average_map
import pytest
import xtgeo

import grid3d_maps.avghc.grid3d_average_map as grid3d_average_map

# =============================================================================
# Do tests
# =============================================================================
Expand Down
1 change: 1 addition & 0 deletions tests/test_scripts/test_grid3d_average_map_dataio1a.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import pytest
import xtgeo
import yaml

from grid3d_maps.avghc import grid3d_average_map

YAMLCONTENT = """
Expand Down
3 changes: 2 additions & 1 deletion tests/test_scripts/test_grid3d_contacts1.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
"""Testing contacts, not finished!"""

import grid3d_maps.contact.grid3d_contact_map as grid3d_contacts
import pytest

import grid3d_maps.contact.grid3d_contact_map as grid3d_contacts

# =============================================================================
# Do tests
# =============================================================================
Expand Down
3 changes: 2 additions & 1 deletion tests/test_scripts/test_grid3d_hc_thickness1.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
import shutil
from pathlib import Path

import grid3d_maps.avghc.grid3d_hc_thickness as grid3d_hc_thickness
import numpy as np
import pytest
import xtgeo

import grid3d_maps.avghc.grid3d_hc_thickness as grid3d_hc_thickness

SOURCEPATH = Path(__file__).absolute().parent.parent.parent


Expand Down
3 changes: 2 additions & 1 deletion tests/test_scripts/test_grid3d_hc_thickness2.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import grid3d_maps.avghc.grid3d_hc_thickness as grid3d_hc_thickness
import numpy as np
import pytest
import xtgeo

import grid3d_maps.avghc.grid3d_hc_thickness as grid3d_hc_thickness


def test_hc_thickness2a(datatree):
"""HC thickness with YAML config example 2a; use STOOIP prop from RMS"""
Expand Down
3 changes: 2 additions & 1 deletion tests/test_scripts/test_grid3d_hc_thickness3.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import grid3d_maps.avghc.grid3d_hc_thickness as grid3d_hc_thickness
import pytest
import xtgeo

import grid3d_maps.avghc.grid3d_hc_thickness as grid3d_hc_thickness


def test_hc_thickness3a(datatree):
"""HC thickness with external configfiles, HC 3a"""
Expand Down
3 changes: 2 additions & 1 deletion tests/test_scripts/test_grid3d_hc_thickness4.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
"""Test suite hc 4."""

import grid3d_maps.avghc.grid3d_hc_thickness as grid3d_hc_thickness
import pytest
import xtgeo

import grid3d_maps.avghc.grid3d_hc_thickness as grid3d_hc_thickness


def test_hc_thickness4a(datatree):
"""HC thickness with external configfiles, HC 4a"""
Expand Down
3 changes: 2 additions & 1 deletion tests/test_scripts/test_grid3d_hc_thickness_dataio1a.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@
import sys
from pathlib import Path

import grid3d_maps.avghc.grid3d_hc_thickness as grid3d_hc_thickness
import pytest
import xtgeo
import yaml

import grid3d_maps.avghc.grid3d_hc_thickness as grid3d_hc_thickness

YAMLCONTENT = """
title: Reek
#
Expand Down
3 changes: 2 additions & 1 deletion tests/test_scripts/test_grid3d_hc_thickness_dataio1b.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@
import sys
from pathlib import Path

import grid3d_maps.avghc.grid3d_hc_thickness as grid3d_hc_thickness
import pytest
import xtgeo
import yaml

import grid3d_maps.avghc.grid3d_hc_thickness as grid3d_hc_thickness

YAMLCONTENT = """
title: Reek
Expand Down
3 changes: 2 additions & 1 deletion tests/test_scripts/test_grid3d_hc_thickness_dataio1c.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@
import sys
from pathlib import Path

import grid3d_maps.avghc.grid3d_hc_thickness as grid3d_hc_thickness
import pytest
import xtgeo
import yaml
from fmu.config import utilities as ut

import grid3d_maps.avghc.grid3d_hc_thickness as grid3d_hc_thickness

YAMLCONTENT = """
title: Reek
# Use a STOIIP or HCPV property from RMS
Expand Down
1 change: 1 addition & 0 deletions tests/test_scripts/test_grid3d_migration_time.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import pytest
import xtgeo

from grid3d_maps.aggregate import grid3d_migration_time


Expand Down
1 change: 1 addition & 0 deletions tests/test_submodules/test_grid_aggregate.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import numpy.testing as npt
import pytest
import xtgeo

from grid3d_maps.aggregate import AggregationMethod, aggregate_maps


Expand Down

0 comments on commit f31e9c5

Please sign in to comment.