-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add test_grabseeds.py * no freetype on ubuntu * Add pytesseract * use libmagickwand-dev on ubuntu * Add PAGE_RANGE_HELP * PdfFileMerger => PdfMerger
- Loading branch information
1 parent
0c55cf6
commit 00c1dc7
Showing
7 changed files
with
35 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import os | ||
import os.path as op | ||
|
||
from jcvi.apps.base import cleanup | ||
from jcvi.graphics.grabseeds import calibrate, seeds | ||
|
||
|
||
def test_main(): | ||
cwd = os.getcwd() | ||
os.chdir(op.join(op.dirname(__file__), "data")) | ||
output_image = "test.pdf" | ||
json_file = "calibrate.json" | ||
cleanup(output_image) | ||
seeds(["test.JPG"]) | ||
assert op.exists(output_image) | ||
|
||
# Test calibrate | ||
json_file = "calibrate.json" | ||
cleanup(json_file, output_image) | ||
json_file = calibrate(["calibrate.JPG", "1"]) # `1` for the boxsize arg | ||
assert op.exists(json_file) | ||
seeds(["test.JPG", "--calibrate", json_file]) | ||
|
||
os.chdir(cwd) |