Skip to content

Commit

Permalink
Removed warning
Browse files Browse the repository at this point in the history
  • Loading branch information
oddvarlia committed Jan 2, 2025
1 parent ab5c4c9 commit 368ca56
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/fmu/tools/rms/generate_petro_jobs_for_field_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,15 @@
import copy
import json
import pprint
import warnings

import yaml

try:
import _roxar # type: ignore
except ModuleNotFoundError:
try:
import _rmsapi as _roxar # type: ignore
import roxar.jobs # type: ignore
import roxar.jobs.Job # type: ignore
except ModuleNotFoundError:
warnings.warn("This script only supports interactive RMS usage", UserWarning)
import _rmsapi as _roxar # type: ignore
import roxar.jobs # type: ignore

from typing import Dict, List, Tuple, no_type_check

# Fixed global variables
Expand Down

0 comments on commit 368ca56

Please sign in to comment.