(self, w)
| 583 | """ |
| 584 | |
| 585 | def check_weights(self, w): |
| 586 | if np.amin(w) >= 0.0 and np.amax(w) <= 1.0: |
| 587 | return w |
| 588 | warnings.warn( |
| 589 | "The weights parameter of MaterialGrid must be in the range [0,1]." |
| 590 | ) |
| 591 | return np.clip(w, 0.0, 1.0) |
| 592 | |
| 593 | def __init__( |
| 594 | self, |
no outgoing calls
no test coverage detected