Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
tommyod committed Nov 29, 2024
1 parent e946978 commit 4b6be58
Show file tree
Hide file tree
Showing 11 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion src/semeio/fmudesign/_designsummary.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def summarize_design(filename, sheetname="DesignSheet01"):
specified in a design matrix on standard fmu format.
Args:
filename (str): Path to excel or csv file containting designmatrix
filename (str): Path to excel or csv file containing designmatrix
for one by one sensitivities on standard FMU format.
sheetname (str): Name of sheet in excel workbook which
contains the designmatrix (only for excel input). Defaults to
Expand Down
2 changes: 1 addition & 1 deletion src/semeio/fmudesign/_excel2dict.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ def _check_for_mixed_sensitivities(sens_name, sens_group):


def _excel2dict_onebyone(input_filename, sheetnames=None):
"""Reads spesification for onebyone design
"""Reads specification for onebyone design
Args:
input_filename(path): path to excel workbook
Expand Down
4 changes: 2 additions & 2 deletions src/semeio/fmudesign/_tornado_onebyone.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def check_selector(resultfile, selector):


def check_selection(resultfile, selector, selection):
"""Checks whether selction is in resultfile values
"""Checks whether selection is in resultfile values
in the column selector"""
for sel in selection:
if sel not in resultfile[selector].values:
Expand All @@ -29,7 +29,7 @@ def check_selection(resultfile, selector, selection):


def check_response(resultfile, response):
"""Checks whether respones in in resultfile"""
"""Checks whether responses in in resultfile"""
if response not in resultfile.columns:
raise ValueError("Did not find ", response, " as column in", "resultfile")

Expand Down
10 changes: 5 additions & 5 deletions src/semeio/fmudesign/create_design.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ def _add_sensitivity(self, sensitivity):

def _fill_with_background_values(self):
"""Substituting NaNs with background values if existing.
background values not in design are added as separate colums
background values not in design are added as separate columns
"""
if self.backgroundvalues is not None:
grouped = self.designvalues.groupby(["SENSNAME", "SENSCASE"], sort=False)
Expand Down Expand Up @@ -536,7 +536,7 @@ def generate(self, realnums):
"""Generates realisation number only
Args:
realnums (list): list of intergers with realization numbers
realnums (list): list of integers with realization numbers
"""
self.sensvalues = pd.DataFrame(index=realnums)
self.sensvalues["REAL"] = realnums
Expand All @@ -561,7 +561,7 @@ class BackgroundSensitivity:

# pylint: disable=too-few-public-methods
def __init__(self, sensname):
"""Inititate
"""Initiate
Args:
sensname (str): Name of sensitivity. Defines SENSNAME in design matrix.
Expand All @@ -573,7 +573,7 @@ def generate(self, realnums):
"""Generates realisation number only
Args:
realnums (list): list of intergers with realization numbers
realnums (list): list of integers with realization numbers
"""
self.sensvalues = pd.DataFrame(index=realnums)
self.sensvalues["REAL"] = realnums
Expand Down Expand Up @@ -845,7 +845,7 @@ def generate(self, realnums, filename, parameters, seedvalues):
from file
Args:
realnums (list): list of intergers with realization numbers
realnums (list): list of integers with realization numbers
filename (str): path where to read values from
parameters (list): list with parameter names
seeds (str): default or None
Expand Down
2 changes: 1 addition & 1 deletion src/semeio/forward_models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def documentation() -> Optional[ForwardModelStepDocumentation]:
3 Lower
4 Lower
In the ert config, after running the Eclipse (or similiar) forward model, add::
In the ert config, after running the Eclipse (or similar) forward model, add::
DEFINE RFT_INPUT <CONFIG_PATH>/../input/observations/rft
FORWARD_MODEL MAKE_DIRECTORY(<DIRECTORY>=gendata_rft)
Expand Down
2 changes: 1 addition & 1 deletion src/semeio/forward_models/design2params/design2params.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def _complete_parameters_file(
realization, parameters, parametersfilename, design_matrix_sheet, default_sheet
):
"""
Pick key / values from choosen realization in design matrix
Pick key / values from chosen realization in design matrix
Append those key / values if not present into parameters.txt
Create file adding those key / values to designparameters.txt
if default-sheet contains key / values not existing in
Expand Down
2 changes: 1 addition & 1 deletion src/semeio/forward_models/design_kw/design_kw.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def extract_key_value(parameters: List[str]) -> Dict[str, str]:
dict, with the keys and values parsed.
Raises:
ValueError, with error messages and all unparseable lines.
ValueError, with error messages and all unparsable lines.
"""
res = {}
errors = []
Expand Down
4 changes: 2 additions & 2 deletions src/semeio/forward_models/overburden_timeshift/ots.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ def _geertsma_ts_custom(self, vintage_pairs, subsidence_func, method_name):
:param vintage_pairs:
:param subsidence_func: specify subsidence method to be used
:param method_name: string represeting the subsudence func name
:param method_name: string representing the subsudence func name
"""
if len(vintage_pairs) < 1:
return 0, []
Expand Down Expand Up @@ -463,7 +463,7 @@ def _get_non_nan_points(self):

def dpv(self, vintage_pairs):
"""
Calulates change in pressure multiplied by cell volume
Calculates change in pressure multiplied by cell volume
and sum for all cells in column
dPV must have equal sign as TS, but opposite from mathematics
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def _map_reservoir_surface_to_velocity(self, res_surface, vcube):
"""
Interpolates reservoir top surface to velocity grid
"""
# downsample segy if segy resultion of CDP and
# downsample segy if segy resolution of CDP and
# sample rate is higher than of the Eclgrid
x, y, traces, _, self._dt = self._read_velocity(vcube, res_surface.cell_corners)
# this is some clever integration of traces using
Expand Down
2 changes: 1 addition & 1 deletion src/semeio/forward_models/rft/zonemap.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
class ZoneMap:
"""A zonemap is a map from simulation grid
k layers to a list of strings representing the
possible zones (in a stratigraphical hiearchy of zones)
possible zones (in a stratigraphical hierarchy of zones)
that the k-layers belongs to.
Expand Down
2 changes: 1 addition & 1 deletion src/semeio/forward_models/scripts/gendata_rft.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def _build_parser():
type=ZoneMap.load_and_parse_zonemap_file,
help="""
Path to a file with zonemap information. This file must include every k-value that
any RFT value is located within, irregardless if the trajectory point contains a
any RFT value is located within, regardless if the trajectory point contains a
zone definition. If a k value does not exist the program will stop. The zone
mapping will be validated and if it is invalid, the pressure is set to -1 and the
inactive value to 0
Expand Down

0 comments on commit 4b6be58

Please sign in to comment.