Skip to content

Commit

Permalink
Use separate reference results for functional test; add LRX (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
wkiri committed Aug 19, 2021
1 parent 7fea76e commit e62e065
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/test_planetary.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,19 @@ def setUp(self):

def test_run(self):

config_file = 'sample_data/planetary_rover/png/exp/navcam.config'
config_file = 'test/planetary.config'

# Run the experiment; also tests ability to parse config file
start(config_file, self.outdir)

# Check results for each algorithm
for file_base in ['demud-k=5/selections-demud.csv',
'iforest/selections-iforest.csv',
'lrx-inner_window=3-outer_window=9-bands=1/selections-lrx.csv',
'negative_sampling-percent_increase=20/selections-negative_sampling.csv',
'pca-k=5/selections-pca.csv'
]:
correct_file = 'test/ref-results/planetary_rover/%s' % file_base
correct_file = 'test/ref-results/planetary_rover/functional/%s' % file_base
output_file = '%s/%s' % (self.outdir, file_base)

# Check results against correct output
Expand Down

0 comments on commit e62e065

Please sign in to comment.