Skip to content

Commit

Permalink
Remove unused entry points
Browse files Browse the repository at this point in the history
These jobs are already installed as project scripts, meaning that
the entry point is redundant.
  • Loading branch information
oyvindeide committed Oct 23, 2024
1 parent e3d66bb commit df2e206
Show file tree
Hide file tree
Showing 16 changed files with 0 additions and 83 deletions.
5 changes: 0 additions & 5 deletions src/everest_models/jobs/fm_add_templates/cli.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python
import collections
import logging
from typing import Iterable
Expand Down Expand Up @@ -64,7 +63,3 @@ def main_entry_point(args=None):
args_parser.error("No template matched:\n" + msg)

options.input.json_dump(options.output)


if __name__ == "__main__":
main_entry_point()
6 changes: 0 additions & 6 deletions src/everest_models/jobs/fm_compute_economics/cli.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/usr/bin/env python

import argparse
import logging

Expand Down Expand Up @@ -94,7 +92,3 @@ def main_entry_point(args=None):
)

options.config.output.file.write_text(f"{economic_indicator:.2f}")


if __name__ == "__main__":
main_entry_point()
5 changes: 0 additions & 5 deletions src/everest_models/jobs/fm_drill_date_planner/cli.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python
import itertools
import logging

Expand Down Expand Up @@ -49,7 +48,3 @@ def main_entry_point(args=None):

logger.info(f"Writing results to {options.output}")
options.input.json_dump(options.output)


if __name__ == "__main__":
main_entry_point()
6 changes: 0 additions & 6 deletions src/everest_models/jobs/fm_drill_planner/cli.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/usr/bin/env python

from everest_models.jobs.fm_drill_planner.manager import get_field_manager
from everest_models.jobs.fm_drill_planner.parser import build_argument_parser
from everest_models.jobs.fm_drill_planner.tasks import orcastrate_drill_schedule
Expand Down Expand Up @@ -120,7 +118,3 @@ def main_entry_point(args=None):
manager, options.input.to_dict(), options.config.start_date, options.time_limit
)
options.input.json_dump(options.output)


if __name__ == "__main__":
main_entry_point()
4 changes: 0 additions & 4 deletions src/everest_models/jobs/fm_extract_summary_data/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,3 @@ def main_entry_point(args=None):
end_date=options.end_date,
)
options.output.write_text(f"{result * options.multiplier:.10f}")


if __name__ == "__main__":
main_entry_point()
4 changes: 0 additions & 4 deletions src/everest_models/jobs/fm_interpret_well_drill/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,3 @@ def main_entry_point(args=None):

with options.output.open("w", encoding="utf-8") as fp:
json.dump([well for well, value in options.input.items() if value >= 0.5], fp)


if __name__ == "__main__":
main_entry_point()
6 changes: 0 additions & 6 deletions src/everest_models/jobs/fm_npv/cli.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/usr/bin/env python

import argparse
import logging

Expand Down Expand Up @@ -139,7 +137,3 @@ def main_entry_point(args=None):
)

options.output.write_text(f"{npv:.2f}")


if __name__ == "__main__":
main_entry_point()
5 changes: 0 additions & 5 deletions src/everest_models/jobs/fm_rf/cli.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python
import logging

from everest_models.jobs.fm_rf.parser import args_parser
Expand Down Expand Up @@ -28,7 +27,3 @@ def main_entry_point(args=None):
if options.output:
logger.info(f"Writing results to {options.output}")
options.output.write_text(f"{rf:.6f}")


if __name__ == "__main__":
main_entry_point()
4 changes: 0 additions & 4 deletions src/everest_models/jobs/fm_schmerge/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,3 @@ def main_entry_point(args=None):
options.input.dated_operations(), options.schedule
)
options.output.write_text(schedule)


if __name__ == "__main__":
main_entry_point()
5 changes: 0 additions & 5 deletions src/everest_models/jobs/fm_select_wells/cli.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python
import logging

from everest_models.jobs.fm_select_wells import tasks
Expand Down Expand Up @@ -30,7 +29,3 @@ def main_entry_point(args=None):

logger.info(f"Writing results to {options.output}")
options.input.json_dump(options.output)


if __name__ == "__main__":
main_entry_point()
6 changes: 0 additions & 6 deletions src/everest_models/jobs/fm_stea/cli.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/usr/bin/env python

import logging

import stea
Expand Down Expand Up @@ -87,7 +85,3 @@ def main_entry_point(args=None):
):
with open(f"{res}", "w") as ofh:
ofh.write(f"{value}\n")


if __name__ == "__main__":
main_entry_point()
5 changes: 0 additions & 5 deletions src/everest_models/jobs/fm_strip_dates/cli.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python
import logging

from everest_models.jobs.fm_strip_dates import tasks
Expand Down Expand Up @@ -37,7 +36,3 @@ def main_entry_point(args=None):
except RuntimeError as err:
logger.error(str(err))
args_parser.exit(1, str(err))


if __name__ == "__main__":
main_entry_point()
6 changes: 0 additions & 6 deletions src/everest_models/jobs/fm_well_constraints/cli.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/usr/bin/env python

import logging
import typing
from functools import partial
Expand Down Expand Up @@ -204,7 +202,3 @@ def main_entry_point(args=None):
)

options.input.json_dump(options.output)


if __name__ == "__main__":
main_entry_point()
4 changes: 0 additions & 4 deletions src/everest_models/jobs/fm_well_filter/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,3 @@ def main_entry_point(args=None):
)

options.input.json_dump(options.output)


if __name__ == "__main__":
main_entry_point()
6 changes: 0 additions & 6 deletions src/everest_models/jobs/fm_well_swapping/cli.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/usr/bin/env python

from typing import Optional, Sequence

from .tasks import (
Expand All @@ -22,7 +20,3 @@ def main_entry_point(args: Optional[Sequence[str]] = None):
),
)
data.cases.json_dump(data.output)


if __name__ == "__main__":
main_entry_point()
6 changes: 0 additions & 6 deletions src/everest_models/jobs/fm_well_trajectory/cli.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/usr/bin/env python

import logging
from pathlib import Path

Expand Down Expand Up @@ -51,7 +49,3 @@ def main_entry_point(args=None):
write_mlt_guide_points(mlt_guide_points, Path("mlt_guide_points.json"))
logger.info("Writing multilateral guide md's to 'mlt_guide_md.json'")
write_mlt_guide_md(mlt_guide_points, Path("mlt_guide_md.json"))


if __name__ == "__main__":
main_entry_point()

0 comments on commit df2e206

Please sign in to comment.