Commit 7197934f authored by Cecilia Nievas's avatar Cecilia Nievas
Browse files

Fixed use of capitals in GDE_TOOLS_create_industrial_cells.py

parent e31cbb26
......@@ -660,22 +660,22 @@ def define_threshold_angle(width_EW, width_NS, outangle="radians"):
"""This function defines the threshold angle to consider one cell at a particular cardinal
point with respect to another cell. The threshold angle depends only on the widths of the
cells, i.e. width_EW, width_NS. This threshold angle allows to distinguish, for example,
between a cell located to the North, East or North-East of another cell. Though the cell
between a cell located to the north, east or north-east of another cell. Though the cell
widths are input in degrees, they are treated as Cartesian.
Args:
width_EW (float): width of the cell in the East-West direction, in degrees, >0.
width_NS (float): width of the cell in the North-south direction, in degrees, >0.
outangle (str): indicates the units of the output angle, i.e. "radians" or "degrees".
width_EW (float): Width of the cell in the east-west direction, in degrees, >0.
width_NS (float): Width of the cell in the north-south direction, in degrees, >0.
outangle (str): Indicates the units of the output angle, i.e. "radians" or "degrees".
Returns:
ang_thr (float): threshold angle indicating:
- the angle between the North-South orientation and the limit lines to
consider a cell to be to the North or South of anoher cell (instead of
the North-East, or North-West, or South-East, or South-West)
- the angle between the East-West orientation and the limit lines to
consider a cell to be to the East or West of another cell (instead of
the North-East, or North-West, or South-East, or South-West)
ang_thr (float): Threshold angle indicating:
- the angle between the north-south orientation and the limit lines to
consider a cell to be to the north or south of anoher cell (instead of
the north-east, or north-west, or south-east, or south-west)
- the angle between the east-west orientation and the limit lines to
consider a cell to be to the east or west of another cell (instead of
the north-east, or north-west, or south-east, or south-west)
It returns NaN if the input widths are not positive numbers.
"""
......@@ -708,7 +708,7 @@ def angles_from_coords(p1x, p1y, p2x, p2y):
p2y (array of floats) = Y coordinates of Points labelled as 2.
Returns:
anglesfromcoord (array of floats): angles formed by an E-W ("horizontal") line and a
anglesfromcoord (array of floats): Angles formed by an E-W ("horizontal") line and a
segment that starts at P1 and finishes at P2, with
P1 being the intersection point between the two
lines. It will always be in the range [-pi, +pi].
......@@ -726,12 +726,12 @@ def guarantee_radians(in_theta, theta_thr, inputangle):
It returns the original in_theta and theta_thr if inputangle is "radians".
Args:
in_theta (float): angles, in the units indicatd by inputangle
theta_thr (float): angles, in the units indicatd by inputangle
in_theta (float): Angles, in the units indicatd by inputangle
theta_thr (float): Angles, in the units indicatd by inputangle
Returns:
in_theta (float): angles of in_theta, in radians
theta_thr (float): angles of theta_thr, in radians
in_theta (float): Angles of in_theta, in radians
theta_thr (float): Angles of theta_thr, in radians
"""
if inputangle.lower() == "radians":
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment