Create a figure summarizing the availability analysis results. The analysis must be run using the :py:meth:`.run` method before using this method. Returns ------- fig : matplotlib.figure.Figure
(self)
| 618 | self._combine_losses(rollup_period) |
| 619 | |
| 620 | def plot(self): |
| 621 | """ |
| 622 | Create a figure summarizing the availability analysis results. The |
| 623 | analysis must be run using the :py:meth:`.run` method before using |
| 624 | this method. |
| 625 | |
| 626 | Returns |
| 627 | ------- |
| 628 | fig : matplotlib.figure.Figure |
| 629 | """ |
| 630 | try: |
| 631 | self.loss_total |
| 632 | except AttributeError: |
| 633 | raise TypeError("No results to plot, use the `run` method first") |
| 634 | |
| 635 | return rdtools.plotting.availability_summary_plots( |
| 636 | self.power_system, self.power_subsystem, self.loss_total, |
| 637 | self.energy_cumulative, self.energy_expected_rescaled, |
| 638 | self.outage_info) |
no outgoing calls