Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
oddvarlia committed Oct 25, 2023
1 parent 05b8bf9 commit 7f05d6a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
17 changes: 10 additions & 7 deletions tests/jobs/localisation/example_case/scripts/common_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,11 @@

import gstools as gs
import numpy as np

import xtgeo # isort: skip

import xtgeo

# pylint: disable=missing-function-docstring, too-many-locals, invalid-name
# pylint: disable=bare-except, raise-missing-from
# pylint: disable= redefined-outer-name, too-many-nested-blocks
# pylint: disable=raise-missing-from
# pylint: disable=too-many-nested-blocks


# Settings for the test case in the following dataclasses
Expand Down Expand Up @@ -160,8 +158,12 @@ def get_seed(seed_file_name, r_number):
lines = file.readlines()
try:
seed_value = int(lines[r_number - 1])
except: # noqa: E722
raise IOError("Seed value not found for realization {r_number} ")
except IndexError as exc:
raise IOError("Seed value not found for realization {r_number} ") from exc
except ValueError as exc:
raise IOError(
"Invalid seed value in file for realization{r_number}"
) from exc
return seed_value


Expand Down Expand Up @@ -332,6 +334,7 @@ def trend():

def simulate_field(start_seed):
# pylint: disable=no-member,import-outside-toplevel

import gaussianfft as sim # isort: skip

variogram_name = settings.field.variogram
Expand Down
1 change: 0 additions & 1 deletion tests/jobs/localisation/example_case/scripts/sim_fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ def get_iteration_and_real_number(argv):


def main(iteration, real_number):
# pylint: disable=too-many-arguments
"""
For iteration = 0:
- simulate field, export to file as initial ensemble realization
Expand Down

0 comments on commit 7f05d6a

Please sign in to comment.