completor 1.0.1__tar.gz → 1.1.0__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.0.1 → completor-1.1.0}/PKG-INFO +2 -2
  2. {completor-1.0.1 → completor-1.1.0}/completor/create_output.py +3 -6
  3. {completor-1.0.1 → completor-1.1.0}/completor/main.py +0 -3
  4. {completor-1.0.1 → completor-1.1.0}/pyproject.toml +2 -2
  5. {completor-1.0.1 → completor-1.1.0}/LICENSE +0 -0
  6. {completor-1.0.1 → completor-1.1.0}/README.md +0 -0
  7. {completor-1.0.1 → completor-1.1.0}/completor/__init__.py +0 -0
  8. {completor-1.0.1 → completor-1.1.0}/completor/completion.py +0 -0
  9. {completor-1.0.1 → completor-1.1.0}/completor/config_jobs/run_completor +0 -0
  10. {completor-1.0.1 → completor-1.1.0}/completor/constants.py +0 -0
  11. {completor-1.0.1 → completor-1.1.0}/completor/exceptions/__init__.py +0 -0
  12. {completor-1.0.1 → completor-1.1.0}/completor/exceptions/clean_exceptions.py +0 -0
  13. {completor-1.0.1 → completor-1.1.0}/completor/exceptions/exceptions.py +0 -0
  14. {completor-1.0.1 → completor-1.1.0}/completor/get_version.py +0 -0
  15. {completor-1.0.1 → completor-1.1.0}/completor/hook_implementations/jobs.py +0 -0
  16. {completor-1.0.1 → completor-1.1.0}/completor/input_validation.py +0 -0
  17. {completor-1.0.1 → completor-1.1.0}/completor/launch_args_parser.py +0 -0
  18. {completor-1.0.1 → completor-1.1.0}/completor/logger.py +0 -0
  19. {completor-1.0.1 → completor-1.1.0}/completor/parse.py +0 -0
  20. {completor-1.0.1 → completor-1.1.0}/completor/prepare_outputs.py +0 -0
  21. {completor-1.0.1 → completor-1.1.0}/completor/read_casefile.py +0 -0
  22. {completor-1.0.1 → completor-1.1.0}/completor/read_schedule.py +0 -0
  23. {completor-1.0.1 → completor-1.1.0}/completor/utils.py +0 -0
  24. {completor-1.0.1 → completor-1.1.0}/completor/visualization.py +0 -0
  25. {completor-1.0.1 → completor-1.1.0}/completor/visualize_well.py +0 -0
  26. {completor-1.0.1 → completor-1.1.0}/completor/wells.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: completor
3
- Version: 1.0.1
3
+ Version: 1.1.0
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
@@ -17,7 +17,7 @@ Requires-Dist: docutils (==0.20.1) ; extra == "ert"
17
17
  Requires-Dist: ert (>=11.1.0,<12.0.0) ; extra == "ert"
18
18
  Requires-Dist: matplotlib (>=3.9.2,<4.0.0)
19
19
  Requires-Dist: numpy (<2.0.0)
20
- Requires-Dist: pandas (>=2.2.3,<3.0.0)
20
+ Requires-Dist: pandas (>=2.1.4,<3.0.0)
21
21
  Requires-Dist: pyqt5-qt5 (==5.15.2) ; extra == "ert"
22
22
  Requires-Dist: pytest-env (>=1.1.4,<2.0.0)
23
23
  Requires-Dist: rstcheck-core (>=1.2.1,<2.0.0) ; extra == "ert"
@@ -76,7 +76,8 @@ def format_output(well: Well, case: ReadCasefile, figure_name: str | None = None
76
76
  if df_annulus.empty:
77
77
  logger.info("No annular flow in Well : %s Lateral : %d", well.well_name, lateral.lateral_number)
78
78
 
79
- start_segment, start_branch = _update_segmentbranch(lateral.df_device, df_annulus)
79
+ if not lateral.df_device.empty:
80
+ start_segment, start_branch = _update_segmentbranch(lateral.df_device, df_annulus)
80
81
 
81
82
  lateral.df_tubing = _connect_lateral(well.well_name, lateral, top, well, case)
82
83
 
@@ -234,15 +235,11 @@ def _update_segmentbranch(df_device: pd.DataFrame, df_annulus: pd.DataFrame) ->
234
235
  Returns:
235
236
  The numbers for starting segment and branch.
236
237
 
237
- Raises:
238
- ValueError: If there is neither device nor annulus data.
239
238
  """
240
- if df_annulus.empty and df_device.empty:
241
- raise ValueError("Cannot determine starting segment and branch without device and annulus data.")
242
239
  if df_annulus.empty and not df_device.empty:
243
240
  start_segment = max(df_device[Headers.START_SEGMENT_NUMBER].to_numpy()) + 1
244
241
  start_branch = max(df_device[Headers.BRANCH].to_numpy()) + 1
245
- else:
242
+ elif not df_annulus.empty:
246
243
  start_segment = max(df_annulus[Headers.START_SEGMENT_NUMBER].to_numpy()) + 1
247
244
  start_branch = max(df_annulus[Headers.BRANCH].to_numpy()) + 1
248
245
  return start_segment, start_branch
@@ -7,7 +7,6 @@ import os
7
7
  import re
8
8
  import time
9
9
 
10
- import pandas as pd
11
10
  from tqdm import tqdm
12
11
 
13
12
  from completor import create_output, parse, read_schedule, utils
@@ -27,8 +26,6 @@ from completor.utils import (
27
26
  )
28
27
  from completor.wells import Well
29
28
 
30
- pd.set_option("future.no_silent_downcasting", True)
31
-
32
29
 
33
30
  def get_content_and_path(case_content: str, file_path: str | None, keyword: str) -> tuple[str | None, str | None]:
34
31
  """Get the contents of a file from a path defined by user or case file.
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "completor"
3
- version = "1.0.1"
3
+ version = "1.1.0"
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"
@@ -22,7 +22,7 @@ classifiers = [
22
22
  python = ">=3.11, <3.12"
23
23
  matplotlib = "^3.9.2"
24
24
  numpy = "<2.0.0"
25
- pandas = "^2.2.3"
25
+ pandas = "^2.1.4"
26
26
  scipy = "^1.14.1"
27
27
  tqdm = "^4.66.5"
28
28
  pytest-env = "^1.1.4"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes