Skip to content

Commit

Permalink
fix indents
Browse files Browse the repository at this point in the history
  • Loading branch information
Osamu Miyawaki committed Oct 19, 2023
1 parent 85bd432 commit baf065d
Showing 1 changed file with 46 additions and 45 deletions.
91 changes: 46 additions & 45 deletions src/metpy/calc/thermo.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,26 +289,26 @@ def moist_lapse(pressure, temperature, reference_pressure=None,
lapse_type : `string`, optional
Definition of moist adiabat to use; if not given, it defaults to moist_lapse
Options:
'standard' for simplified pseudoadiabatic process
'pseudoadiabatic' for pseudoadiabatic moist process
'reversible' for reversible moist process
'so13' for Singh and O'Gorman (2013); https://doi.org/10.1002/grl.50796
'r14' for Romps (2014); https://doi.org/10.1175/JCLI-D-14-00255.1
'standard' for simplified pseudoadiabatic process
'pseudoadiabatic' for pseudoadiabatic moist process
'reversible' for reversible moist process
'so13' for Singh and O'Gorman (2013); https://doi.org/10.1002/grl.50796
'r14' for Romps (2014); https://doi.org/10.1175/JCLI-D-14-00255.1
More info: https://glossary.ametsoc.org/wiki/Adiabatic_lapse_rate
params : `dict` or None, optional
External parameters used for the some lapse_types
Required parameters:
For 'so13': {
'ep0': scalar, entrainment constant [unitless],
'rh0': scalar, ambient relative humidity [unitless],
}
For 'r14': {
'de': scalar or 1-d array, detrainment rate [m**-1],
'ep': scalar or 1-d array, entrainment rate [m**-1],
'pa': 1-d array, optional, pressure levels
defining detrainment and entrainment profile [Pa]
}
For 'so13': {
'ep0': scalar, entrainment constant [unitless],
'rh0': scalar, ambient relative humidity [unitless],}
}
For 'r14': {
'de': scalar or 1-d array, detrainment rate [m**-1],
'ep': scalar or 1-d array, entrainment rate [m**-1],
'pa': 1-d array, optional, pressure levels
defining detrainment and entrainment profile [Pa]

Check failure on line 310 in src/metpy/calc/thermo.py

View workflow job for this annotation

GitHub Actions / Flake8

[flake8] reported by reviewdog 🐶 RST301 Unexpected indentation. Raw Output: ./src/metpy/calc/thermo.py:310:1: RST301 Unexpected indentation.
}

Check failure on line 311 in src/metpy/calc/thermo.py

View workflow job for this annotation

GitHub Actions / Flake8

[flake8] reported by reviewdog 🐶 RST201 Block quote ends without a blank line; unexpected unindent. Raw Output: ./src/metpy/calc/thermo.py:311:1: RST201 Block quote ends without a blank line; unexpected unindent.
Returns
-------
Expand Down Expand Up @@ -1018,6 +1018,7 @@ def el(pressure, temperature, dewpoint, parcel_temperature_profile=None, which='
return (units.Quantity(np.nan, pressure.units),
units.Quantity(np.nan, temperature.units))


@exporter.export
@preprocess_and_wrap(wrap_like='pressure')
@check_units('[pressure]', '[temperature]', '[temperature]')
Expand All @@ -1043,26 +1044,26 @@ def parcel_profile(pressure, temperature, dewpoint, lapse_type='standard', param
lapse_type : `string`, optional
Definition of moist adiabat to use; if not given, it defaults to moist_lapse
Options:
'standard' for simplified pseudoadiabatic process
'pseudoadiabatic' for pseudoadiabatic moist process
'reversible' for reversible moist process
'so13' for Singh and O'Gorman (2013); https://doi.org/10.1002/grl.50796
'r14' for Romps (2014); https://doi.org/10.1175/JCLI-D-14-00255.1
'standard' for simplified pseudoadiabatic process
'pseudoadiabatic' for pseudoadiabatic moist process
'reversible' for reversible moist process
'so13' for Singh and O'Gorman (2013); https://doi.org/10.1002/grl.50796
'r14' for Romps (2014); https://doi.org/10.1175/JCLI-D-14-00255.1
More info: https://glossary.ametsoc.org/wiki/Adiabatic_lapse_rate
params : `dict` or None, optional
External parameters used for the some lapse_types
Required parameters:
For 'so13': {
'ep0': entrainment constant [unitless],
'rh0': ambient relative humidity [unitless],
}
For 'r14': {
'de': scalar or 1-d array, detrainment rate [m**-1],
'ep': scalar or 1-d array, entrainment rate [m**-1],
'pa': 1-d array, optional, pressure levels
defining detrainment and entrainment profile [Pa]
}
For 'so13': {
'ep0': entrainment constant [unitless],
'rh0': ambient relative humidity [unitless],
}
For 'r14': {
'de': scalar or 1-d array, detrainment rate [m**-1],
'ep': scalar or 1-d array, entrainment rate [m**-1],
'pa': 1-d array, optional, pressure levels
defining detrainment and entrainment profile [Pa]

Check failure on line 1065 in src/metpy/calc/thermo.py

View workflow job for this annotation

GitHub Actions / Flake8

[flake8] reported by reviewdog 🐶 RST301 Unexpected indentation. Raw Output: ./src/metpy/calc/thermo.py:1065:1: RST301 Unexpected indentation.
}

Check failure on line 1066 in src/metpy/calc/thermo.py

View workflow job for this annotation

GitHub Actions / Flake8

[flake8] reported by reviewdog 🐶 RST201 Block quote ends without a blank line; unexpected unindent. Raw Output: ./src/metpy/calc/thermo.py:1066:1: RST201 Block quote ends without a blank line; unexpected unindent.
Returns
-------
Expand Down Expand Up @@ -1150,26 +1151,26 @@ def parcel_profile_with_lcl(pressure, temperature, dewpoint,
lapse_type : `string`, optional
Definition of moist adiabat to use; if not given, it defaults to moist_lapse
Options:
'standard' for simplified pseudoadiabatic process
'pseudoadiabatic' for pseudoadiabatic moist process
'reversible' for reversible moist process
'so13' for Singh and O'Gorman (2013); https://doi.org/10.1002/grl.50796
'r14' for Romps (2014); https://doi.org/10.1175/JCLI-D-14-00255.1
'standard' for simplified pseudoadiabatic process
'pseudoadiabatic' for pseudoadiabatic moist process
'reversible' for reversible moist process
'so13' for Singh and O'Gorman (2013); https://doi.org/10.1002/grl.50796
'r14' for Romps (2014); https://doi.org/10.1175/JCLI-D-14-00255.1
More info: https://glossary.ametsoc.org/wiki/Adiabatic_lapse_rate
params : `dict` or None, optional
External parameters used for the some lapse_types
Required parameters:
For 'so13': {
'ep0': entrainment constant [unitless],
'rh0': ambient relative humidity [unitless],
}
For 'r14': {
'de': scalar or 1-d array, detrainment rate [m**-1],
'ep': scalar or 1-d array, entrainment rate [m**-1],
'pa': 1-d array, optional, pressure levels
defining detrainment and entrainment profile [Pa]
}
For 'so13': {
'ep0': entrainment constant [unitless],
'rh0': ambient relative humidity [unitless],
}
For 'r14': {
'de': scalar or 1-d array, detrainment rate [m**-1],
'ep': scalar or 1-d array, entrainment rate [m**-1],
'pa': 1-d array, optional, pressure levels
defining detrainment and entrainment profile [Pa]

Check failure on line 1172 in src/metpy/calc/thermo.py

View workflow job for this annotation

GitHub Actions / Flake8

[flake8] reported by reviewdog 🐶 RST301 Unexpected indentation. Raw Output: ./src/metpy/calc/thermo.py:1172:1: RST301 Unexpected indentation.
}

Check failure on line 1173 in src/metpy/calc/thermo.py

View workflow job for this annotation

GitHub Actions / Flake8

[flake8] reported by reviewdog 🐶 RST201 Block quote ends without a blank line; unexpected unindent. Raw Output: ./src/metpy/calc/thermo.py:1173:1: RST201 Block quote ends without a blank line; unexpected unindent.
Returns
-------
Expand Down

0 comments on commit baf065d

Please sign in to comment.