Virals-MacBook-Pro 05:05:57 {master} ~/repos/circuitscape$ make test
python bin/csverify.py
======================================================================
ERROR: test_network_multiple_ground_1 (circuitscape.verify.verify_routines.cs_verify)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/viral/repos/circuitscape/circuitscape/verify/verify_routines.py", line 152, in test_network_multiple_ground_1
test_network_mg(self, 'mgNetworkVerify1')
File "/Users/viral/repos/circuitscape/circuitscape/verify/verify_routines.py", line 94, in test_network_mg
_voltages = cs.compute()
File "/Users/viral/repos/circuitscape/circuitscape/profiler.py", line 127, in wrapper
return func(*args)
File "/Users/viral/repos/circuitscape/circuitscape/compute.py", line 34, in compute
result, solver_failed = self.compute_network() # Call module for solving arbitrary graphs (not raster grids)
File "/Users/viral/repos/circuitscape/circuitscape/profiler.py", line 127, in wrapper
return func(*args)
File "/Users/viral/repos/circuitscape/circuitscape/compute.py", line 45, in compute_network
focal_nodes = self.read_focal_nodes(self.options.focal_node_file)
File "/Users/viral/repos/circuitscape/circuitscape/compute.py", line 121, in read_focal_nodes
focal_nodes = CSIO.load_graph(filename)
File "/Users/viral/repos/circuitscape/circuitscape/io.py", line 174, in load_graph
CSIO._check_file_exists(filename)
File "/Users/viral/repos/circuitscape/circuitscape/io.py", line 24, in _check_file_exists
raise RuntimeError('File "' + filename + '" does not exist')
RuntimeError: File "(Browse for file with locations of focal points or areas)" does not exist
----------------------------------------------------------------------
Ran 47 tests in 2.373s
FAILED (errors=1)
Virals-MacBook-Pro 05:06:01 {master} ~/repos/circuitscape$ git reset --hard
HEAD is now at 1a381c7 Update circuitscape_4_0.md
Virals-MacBook-Pro 05:06:04 {master} ~/repos/circuitscape$ make test
python bin/csverify.py
======================================================================
ERROR: test_network_multiple_ground_1 (circuitscape.verify.verify_routines.cs_verify)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/viral/repos/circuitscape/circuitscape/verify/verify_routines.py", line 152, in test_network_multiple_ground_1
test_network_mg(self, 'mgNetworkVerify1')
File "/Users/viral/repos/circuitscape/circuitscape/verify/verify_routines.py", line 94, in test_network_mg
_voltages = cs.compute()
File "/Users/viral/repos/circuitscape/circuitscape/profiler.py", line 127, in wrapper
return func(*args)
File "/Users/viral/repos/circuitscape/circuitscape/compute.py", line 34, in compute
result, solver_failed = self.compute_network() # Call module for solving arbitrary graphs (not raster grids)
File "/Users/viral/repos/circuitscape/circuitscape/profiler.py", line 127, in wrapper
return func(*args)
File "/Users/viral/repos/circuitscape/circuitscape/compute.py", line 45, in compute_network
focal_nodes = self.read_focal_nodes(self.options.focal_node_file)
File "/Users/viral/repos/circuitscape/circuitscape/compute.py", line 121, in read_focal_nodes
focal_nodes = CSIO.load_graph(filename)
File "/Users/viral/repos/circuitscape/circuitscape/io.py", line 174, in load_graph
CSIO._check_file_exists(filename)
File "/Users/viral/repos/circuitscape/circuitscape/io.py", line 24, in _check_file_exists
raise RuntimeError('File "' + filename + '" does not exist')
RuntimeError: File "(Browse for file with locations of focal points or areas)" does not exist
----------------------------------------------------------------------
Ran 47 tests in 2.604s
FAILED (errors=1)
This is because of filenames in mgNetworkVerify1 not matching the expected path. I think this is corrected in the tanmaykm branch which is yet to be merged.
How do I make the tests work from the toplevel?