|
4 | 4 | import numpy as np |
5 | 5 |
|
6 | 6 | from pttools.logging import setup_logging |
7 | | -from pttools.models import BagModel, ConstCSModel |
| 7 | +from pttools.models import ConstCSModel |
8 | 8 | from pttools.analysis.bubble_grid import BubbleGridVWAlpha |
9 | | -from pttools.analysis.plot_entropy_grid import EntropyPlot, KappaPlot, compute |
| 9 | +from pttools.analysis.plot_entropy_grid import EntropyPlot, compute |
10 | 10 |
|
11 | 11 | import const |
12 | 12 |
|
@@ -46,14 +46,15 @@ def main(): |
46 | 46 | # fig.savefig(f"{path}.png") |
47 | 47 | plt.close(fig) |
48 | 48 |
|
49 | | - fig = plt.figure(figsize=figsize) |
50 | | - ax = fig.add_subplot() |
51 | | - KappaPlot(grid, fig, ax) |
52 | | - fig.tight_layout() |
53 | | - path = os.path.join(const.FIG_DIR, f"kappa_{model.name}") |
54 | | - fig.savefig(f"{path}.png", bbox_inches='tight', pad_inches=0) |
55 | | - # fig.savefig(f"{path}.png") |
56 | | - plt.close(fig) |
| 49 | + # KappaPlot is no longer available in PTtools |
| 50 | + # fig = plt.figure(figsize=figsize) |
| 51 | + # ax = fig.add_subplot() |
| 52 | + # KappaPlot(grid, fig, ax) |
| 53 | + # fig.tight_layout() |
| 54 | + # path = os.path.join(const.FIG_DIR, f"kappa_{model.name}") |
| 55 | + # fig.savefig(f"{path}.png", bbox_inches='tight', pad_inches=0) |
| 56 | + # # fig.savefig(f"{path}.png") |
| 57 | + # plt.close(fig) |
57 | 58 |
|
58 | 59 |
|
59 | 60 | if __name__ == "__main__": |
|
0 commit comments