Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug in well traj forward module #44

Merged
merged 1 commit into from
Jul 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions src/everest_models/jobs/fm_well_trajectory/resinsight.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ def make_perforations(
)
well = next(item for item in wells if item.name == well_name_base)

export_filename: Optional[Path] = None
export_filename = (path / well_name.replace(" ", "_")).with_suffix(".SCH")

if well_depth is not None:
well_path = project.well_path_by_name(well_name)
Expand All @@ -324,7 +324,6 @@ def make_perforations(
skin_factor=well.skin,
)

export_filename = (path / well_name.replace(" ", "_")).with_suffix(".SCH")
logger.info(
f"Exporting well completion data to: {export_filename}"
f"\ncwd = {Path.cwd()}"
Expand All @@ -338,10 +337,9 @@ def make_perforations(
custom_file_name=str(export_filename),
)

if export_filename is not None:
_generate_welspecs(
well.name, well.phase, well.group, export_filename, perf_depths, path
)
_generate_welspecs(
well.name, well.phase, well.group, export_filename, perf_depths, path
)

project.update()
return None if well_depth is None else well
Expand Down
Loading