Skip to content

Commit

Permalink
CI
Browse files Browse the repository at this point in the history
  • Loading branch information
philipperemy committed Dec 30, 2020
1 parent 18d382b commit 524f74b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion tests/batcher_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def main():
select = True
try:
sys.argv[1]
except:
except Exception:
select = False
print('select', select)

Expand Down
3 changes: 1 addition & 2 deletions tests/triplet_loss_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,5 +96,4 @@ def test_1(self):
self.assertTrue(highest_loss >= high_loss >= low_loss >= lowest_loss)

def test_2(self):
b = equal_positive_random_negative_batch()
a = 2
equal_positive_random_negative_batch()
11 changes: 5 additions & 6 deletions viz/triplet_visualization.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import logging

import matplotlib

matplotlib.use('Agg')

import matplotlib.pyplot as plt
import numpy as np

matplotlib.use('Agg')


def remove_values_along_axes():
from matplotlib import pylab
Expand Down Expand Up @@ -43,9 +42,9 @@ def newline(p1, p2, color):
y_min = p2[0]
y_max = p2[1]
logging.info('{} {}'.format([x_min, x_max], [y_min, y_max]))
l = mlines.Line2D([x_min, x_max], [y_min, y_max], color=color, linestyle='dashdot', linewidth=3)
ax.add_line(l)
return l
li = mlines.Line2D([x_min, x_max], [y_min, y_max], color=color, linestyle='dashdot', linewidth=3)
ax.add_line(li)
return li


# plt.ion()
Expand Down

0 comments on commit 524f74b

Please sign in to comment.