completor 1.1.0__py3-none-any.whl → 1.1.2__py3-none-any.whl

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.
completor/main.py CHANGED
@@ -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:
completor/utils.py CHANGED
@@ -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
  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
@@ -11,17 +11,17 @@ completor/hook_implementations/jobs.py,sha256=8Ao8UadfJzEY7jWzj6C_OXm18fHmfXrbCB
11
11
  completor/input_validation.py,sha256=OGY5oCdctlqzeg5Z2l4cmRb3ITtSjLp1Ufp0Joj7aKA,13495
12
12
  completor/launch_args_parser.py,sha256=gb3FcyufZlRnKS3BZkFmgVH1VoSxMD0MbCLsHZKmz4c,1413
13
13
  completor/logger.py,sha256=gYDbPL8ca5qT_MqYlDKEMKcSfIXW_59QklX8Gss5b2U,4784
14
- completor/main.py,sha256=EwZYUEeYzKLy_L47VEcTuUATbjZCw3J-WQVe6iAHIGc,8964
14
+ completor/main.py,sha256=ipARMDXXqPYRtBxYQnlj5MohepwkgrQkX3s2IJEaEcI,9151
15
15
  completor/parse.py,sha256=EGlt9CgkrXPqa7woyWQ5t_nh6OWsFrc2SJr8aFr_KsQ,20133
16
16
  completor/prepare_outputs.py,sha256=fenEo3UfDzXF4jaxi9vDI-g-BkYSti0LxILJf7lO84A,72081
17
17
  completor/read_casefile.py,sha256=ZJj-xrpcTeagJmqqi72UIOIcq9uQJaEZClbCA1lW4yw,34081
18
18
  completor/read_schedule.py,sha256=IYyCubOggFGg664h1flTl7MUJhJWyibr6JsptnURjUA,18101
19
- completor/utils.py,sha256=6dvclzQ6yAvnqal6bzlE7C1iKWiT-sGjFCCu2tuMdG4,13542
19
+ completor/utils.py,sha256=JFzTvt4wLZm-VUoamneQgUBVfdoPJmNAlgdQ80qOL5Y,13576
20
20
  completor/visualization.py,sha256=ObxThqIyW3fsvVIupxVsgySFI_54n_Di-HTzFtDMSgo,4580
21
21
  completor/visualize_well.py,sha256=I2kp2rnM2eFV4RUWnTTysPTqQKNEBicF2S9Z3rrAsNA,8672
22
22
  completor/wells.py,sha256=oj3e65tSIDFJEpfOKkr_j4H3RyFKpdjZBAcef7sUoaY,12124
23
- completor-1.1.0.dist-info/LICENSE,sha256=46mU2C5kSwOnkqkw9XQAJlhBL2JAf1_uCD8lVcXyMRg,7652
24
- completor-1.1.0.dist-info/METADATA,sha256=9OL0dXgeM0r6N7iqQgwxQ5xqyjz4S6w6M9mBXvt3ay8,7913
25
- completor-1.1.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
26
- completor-1.1.0.dist-info/entry_points.txt,sha256=co5L2_CC2QQWVdEALeMp-NIC4mx4nRpcLcvpVXMYdeI,106
27
- completor-1.1.0.dist-info/RECORD,,
23
+ completor-1.1.2.dist-info/LICENSE,sha256=46mU2C5kSwOnkqkw9XQAJlhBL2JAf1_uCD8lVcXyMRg,7652
24
+ completor-1.1.2.dist-info/METADATA,sha256=_H5N1rPJULkjGFYMAghbNG-mqYWwcvJfhOUz2pOREZ0,7880
25
+ completor-1.1.2.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
26
+ completor-1.1.2.dist-info/entry_points.txt,sha256=co5L2_CC2QQWVdEALeMp-NIC4mx4nRpcLcvpVXMYdeI,106
27
+ completor-1.1.2.dist-info/RECORD,,