completor 1.1.0__tar.gz → 1.1.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (26) hide show
  1. {completor-1.1.0 → completor-1.1.2}/PKG-INFO +7 -7
  2. {completor-1.1.0 → completor-1.1.2}/completor/main.py +5 -4
  3. {completor-1.1.0 → completor-1.1.2}/completor/utils.py +1 -1
  4. {completor-1.1.0 → completor-1.1.2}/pyproject.toml +7 -7
  5. {completor-1.1.0 → completor-1.1.2}/LICENSE +0 -0
  6. {completor-1.1.0 → completor-1.1.2}/README.md +0 -0
  7. {completor-1.1.0 → completor-1.1.2}/completor/__init__.py +0 -0
  8. {completor-1.1.0 → completor-1.1.2}/completor/completion.py +0 -0
  9. {completor-1.1.0 → completor-1.1.2}/completor/config_jobs/run_completor +0 -0
  10. {completor-1.1.0 → completor-1.1.2}/completor/constants.py +0 -0
  11. {completor-1.1.0 → completor-1.1.2}/completor/create_output.py +0 -0
  12. {completor-1.1.0 → completor-1.1.2}/completor/exceptions/__init__.py +0 -0
  13. {completor-1.1.0 → completor-1.1.2}/completor/exceptions/clean_exceptions.py +0 -0
  14. {completor-1.1.0 → completor-1.1.2}/completor/exceptions/exceptions.py +0 -0
  15. {completor-1.1.0 → completor-1.1.2}/completor/get_version.py +0 -0
  16. {completor-1.1.0 → completor-1.1.2}/completor/hook_implementations/jobs.py +0 -0
  17. {completor-1.1.0 → completor-1.1.2}/completor/input_validation.py +0 -0
  18. {completor-1.1.0 → completor-1.1.2}/completor/launch_args_parser.py +0 -0
  19. {completor-1.1.0 → completor-1.1.2}/completor/logger.py +0 -0
  20. {completor-1.1.0 → completor-1.1.2}/completor/parse.py +0 -0
  21. {completor-1.1.0 → completor-1.1.2}/completor/prepare_outputs.py +0 -0
  22. {completor-1.1.0 → completor-1.1.2}/completor/read_casefile.py +0 -0
  23. {completor-1.1.0 → completor-1.1.2}/completor/read_schedule.py +0 -0
  24. {completor-1.1.0 → completor-1.1.2}/completor/visualization.py +0 -0
  25. {completor-1.1.0 → completor-1.1.2}/completor/visualize_well.py +0 -0
  26. {completor-1.1.0 → completor-1.1.2}/completor/wells.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: completor
3
- Version: 1.1.0
3
+ Version: 1.1.2
4
4
  Summary: Advanced mulit-segmented well completion tool.
5
5
  Home-page: https://github.com/equinor/completor
6
6
  License: LGPL-3.0-only
@@ -14,15 +14,15 @@ Classifier: Programming Language :: Python :: 3
14
14
  Classifier: Programming Language :: Python :: 3.11
15
15
  Provides-Extra: ert
16
16
  Requires-Dist: docutils (==0.20.1) ; extra == "ert"
17
- Requires-Dist: ert (>=11.1.0,<12.0.0) ; extra == "ert"
18
- Requires-Dist: matplotlib (>=3.9.2,<4.0.0)
19
- Requires-Dist: numpy (<2.0.0)
17
+ Requires-Dist: ert (>11.1.0) ; extra == "ert"
18
+ Requires-Dist: matplotlib (>=3.6,<4.0)
19
+ Requires-Dist: numpy (<2)
20
20
  Requires-Dist: pandas (>=2.1.4,<3.0.0)
21
21
  Requires-Dist: pyqt5-qt5 (==5.15.2) ; extra == "ert"
22
- Requires-Dist: pytest-env (>=1.1.4,<2.0.0)
22
+ Requires-Dist: pytest-env (>=1,<2)
23
23
  Requires-Dist: rstcheck-core (>=1.2.1,<2.0.0) ; extra == "ert"
24
- Requires-Dist: scipy (>=1.14.1,<2.0.0)
25
- Requires-Dist: tqdm (>=4.66.5,<5.0.0)
24
+ Requires-Dist: scipy (>=1.10,<2.0)
25
+ Requires-Dist: tqdm (>=4.50,<5.0)
26
26
  Project-URL: Bug Tracker, https://github.com/equinor/completor/issues
27
27
  Project-URL: Documentation, https://equinor.github.io/completor
28
28
  Project-URL: Repository, https://github.com/equinor/completor
@@ -89,7 +89,6 @@ def create(
89
89
  """
90
90
  case = ReadCasefile(case_file=case_file, schedule_file=schedule, output_file=new_file)
91
91
  active_wells = utils.get_active_wells(case.completion_table, case.gp_perf_devicelayer)
92
-
93
92
  figure_name = None
94
93
  if show_fig:
95
94
  figure_no = 1
@@ -123,11 +122,13 @@ def create(
123
122
  for chunk in find_keyword_data(Keywords.COMPLETION_SEGMENTS, schedule):
124
123
  clean_data = clean_raw_data(chunk, Keywords.COMPLETION_SEGMENTS)
125
124
  meaningful_data = read_schedule.set_compsegs(meaningful_data, clean_data)
126
-
127
125
  for i, well_name in tqdm(enumerate(active_wells.tolist()), total=len(active_wells)):
128
- well = Well(well_name, i, case, meaningful_data[well_name])
126
+ try:
127
+ well = Well(well_name, i, case, meaningful_data[well_name])
128
+ except KeyError:
129
+ logger.warning(f"Well '{well_name}' is written in case file but does not exist in schedule file.")
130
+ continue
129
131
  compdat, welsegs, compsegs, bonus = create_output.format_output(well, case, figure_name)
130
-
131
132
  for keyword in [Keywords.COMPLETION_SEGMENTS, Keywords.WELL_SEGMENTS, Keywords.COMPLETION_DATA]:
132
133
  old_data = find_well_keyword_data(well_name, keyword, schedule)
133
134
  if not old_data:
@@ -338,7 +338,7 @@ def find_well_keyword_data(well: str, keyword: str, text: str) -> str:
338
338
  if once:
339
339
  lines.append(line)
340
340
  continue
341
- if well in line.split()[0]:
341
+ if well == line.split()[0].replace("'", "").replace('"', ""):
342
342
  if keyword in [Keywords.WELL_SEGMENTS, Keywords.COMPLETION_SEGMENTS]:
343
343
  # These keywords should just be the entire match as they never contain more than one well.
344
344
  return match
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "completor"
3
- version = "1.1.0"
3
+ version = "1.1.2"
4
4
  description = "Advanced mulit-segmented well completion tool."
5
5
  authors = ["Equinor ASA <opensource@equinor.com>"]
6
6
  repository = "https://github.com/equinor/completor"
@@ -20,16 +20,16 @@ classifiers = [
20
20
 
21
21
  [tool.poetry.dependencies]
22
22
  python = ">=3.11, <3.12"
23
- matplotlib = "^3.9.2"
24
- numpy = "<2.0.0"
23
+ matplotlib = "^3.6"
24
+ numpy = "<2"
25
25
  pandas = "^2.1.4"
26
- scipy = "^1.14.1"
27
- tqdm = "^4.66.5"
28
- pytest-env = "^1.1.4"
26
+ scipy = "^1.10"
27
+ tqdm = "^4.50"
28
+ pytest-env = "^1"
29
29
 
30
30
  docutils = {version="0.20.1", optional=true} # Pinned due to problems with OS spesific builds
31
31
  rstcheck-core = {version="^1.2.1", optional=true}
32
- ert = {version="^11.1.0", optional=true}
32
+ ert = {version=">11.1.0", optional=true}
33
33
  pyqt5-qt5 = {version="5.15.2", optional=true} # Pinned due to problems with OS spesific builds
34
34
 
35
35
  [tool.poetry.group.dev.dependencies]
File without changes
File without changes
File without changes
File without changes
File without changes