-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loguru threw runtime exception on Windows in #11
- Loading branch information
Showing
11 changed files
with
28 additions
and
68 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
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.
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 |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
__email__ = "[email protected]" | ||
|
||
from pathlib import Path | ||
from loguru import logger | ||
import logging | ||
import numpy as np | ||
import math | ||
import cv2 | ||
|
@@ -17,7 +17,7 @@ | |
def _locate_points(k, x, y, s, p): | ||
global img_ | ||
if k == 4: | ||
logger.info(f"You clicked on {x}/{y}") | ||
logging.info(f"You clicked on {x}/{y}") | ||
_add_point(x, y) | ||
|
||
|
||
|
@@ -60,7 +60,7 @@ def _add_axis(img): | |
|
||
def locate(imgfile: Path): | ||
global img_ | ||
logger.info(f"Loading {imgfile}") | ||
logging.info(f"Loading {imgfile}") | ||
assert imgfile.is_file(), f"{imgfile} does not exists or could not be read" | ||
cv2.namedWindow(WINDOW_NAME) | ||
cv2.setMouseCallback(WINDOW_NAME, _locate_points) | ||
|
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "plotdigitizer" | ||
version = "0.2.2" | ||
version = "0.2.3" | ||
description = "Extract raw data from plots images" | ||
authors = ["Dilawar Singh <[email protected]>"] | ||
maintainers = ["Dilawar Singh <[email protected]>"] | ||
|
@@ -13,7 +13,6 @@ python = "^3.7" | |
opencv-python = "^4.5.1" | ||
numpy = "^1.19.5" | ||
matplotlib = "^3.3.4" | ||
loguru = "^0.5.3" | ||
|
||
[tool.poetry.dev-dependencies] | ||
pytest = "^6.2.2" | ||
|