Skip to content

Commit 37b5024

Browse files
author
Adriano Yoshino
committed
fixing Trim Trailing Whitespace error - pre-commit
1 parent fadad67 commit 37b5024

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/source/contributing/developer_guide_implementing_distribution.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -367,9 +367,9 @@ def test_blah_logcdf(self):
367367

368368
## 5. Adding tests for the `get_moment` method
369369

370-
Tests for the `get_moment` method are contained in `pymc/tests/test_distributions_moments.py`, and make use of the function `assert_moment_is_expected`
370+
Tests for the `get_moment` method are contained in `pymc/tests/test_distributions_moments.py`, and make use of the function `assert_moment_is_expected`
371371
which checks if:
372-
1. Moments return `expected` values
372+
1. Moments return `expected` values
373373
1. Moments have the expected size and shape
374374

375375
```python
@@ -395,7 +395,7 @@ def test_blah_moment(param1, param2, size, expected):
395395

396396
Here are some details worth keeping in mind:
397397

398-
1. In the case where you have to manually broadcast the parameters with each other it's important to add test conditions that would fail if you were not to do that. A straightforward way to do this is to make the used parameter a scalar, the unused one(s) a vector (one at a time) and size `None`.
398+
1. In the case where you have to manually broadcast the parameters with each other it's important to add test conditions that would fail if you were not to do that. A straightforward way to do this is to make the used parameter a scalar, the unused one(s) a vector (one at a time) and size `None`.
399399
1. In other words, make sure to test different combinations of size and broadcasting to cover these cases.
400400

401401
## 6. Documenting the new `Distribution`

0 commit comments

Comments
 (0)