mirror of
https://github.com/cdtools-developers/cdtools.git
synced 2026-11-18 03:44:07 +01:00
.
This commit is contained in:
1 parent
bf4db86ad4
commit
35c1643721
1 file changed
+2
-2
@@ -478,7 +478,7 @@ class CDIModel(t.nn.Module):
|
||||
self.figs = []
|
||||
|
||||
idx = 0
|
||||
for plots, c in enumerate(self.plot_list):
|
||||
for plots in self.plot_list:
|
||||
# If a conditional is included in the plot
|
||||
try:
|
||||
if len(plots) >=3 and not plots[2](self):
|
||||
@@ -505,7 +505,7 @@ class CDIModel(t.nn.Module):
|
||||
try:
|
||||
plotter(self, fig, dataset)
|
||||
plt.title(name)
|
||||
plt.savefig('img-{0}.pdf'.format(index), bbox_inches='tight')
|
||||
plt.savefig('img-{0}.pdf'.format(idx), bbox_inches='tight')
|
||||
except (IndexError, KeyError, AttributeError, np.linalg.LinAlgError) as e:
|
||||
pass
|
||||
|
||||
|
||||
Reference in new issue
Block a user