Skip to content

Commit

Permalink
Update docs for Room.extrude (#200)
Browse files Browse the repository at this point in the history
  • Loading branch information
marek-obuchowicz authored Nov 24, 2020
1 parent 648b1da commit 869ebc3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Bugfix
~~~~~~

- Fixes typo in a docstring
- Update docs to better reflect actual function parameters

`0.4.2`_ - 2020-09-24
---------------------
Expand Down
10 changes: 7 additions & 3 deletions pyroomacoustics/room.py
Original file line number Diff line number Diff line change
Expand Up @@ -1099,15 +1099,19 @@ def extrude(
----------
height : float
The extrusion height
v_vec : array-like 1D length 3, optionnal
v_vec : array-like 1D length 3, optional
A unit vector. An orientation for the extrusion direction. The
ceiling will be placed as a translation of the floor with respect
to this vector (The default is [0,0,1]).
absorption : float or array-like
absorption : float or array-like, optional
Absorption coefficients for all the walls. If a scalar, then all the walls
will have the same absorption. If an array is given, it should have as many elements
as there will be walls, that is the number of vertices of the polygon plus two. The two
last elements are for the floor and the ceiling, respectively. (default 1)
last elements are for the floor and the ceiling, respectively.
It is recommended to use materials instead of absorption parameter. (Default: 1)
materials : dict
Absorption coefficients for floor and ceiling. This parameter overrides absorption.
(Default: {"floor": 1, "ceiling": 1})
"""

if self.dim != 2:
Expand Down

0 comments on commit 869ebc3

Please sign in to comment.