Skip to content

Commit

Permalink
deepsource issues
Browse files Browse the repository at this point in the history
  • Loading branch information
HaleySchuhl committed Mar 5, 2024
1 parent 664c3dd commit cd48f84
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions plantcv/annotate/classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,9 @@ def __init__(self, img, figsize=(12, 6), label="default"):
"""Initialization
:param img: image data
:param figsize: desired figure size, (12,6) by default
:param label: current label for group of annotations, similar to pcv.params.sample_label
:param label: current label for group of annotations, similar to pcv.params.sample_label
:attribute coords: list of points as (x,y) coordinates tuples
"""

self.img = img
self.coords = {} # dictionary of all coordinates per group label
self.events = [] # includes right and left click events
Expand Down Expand Up @@ -132,11 +131,11 @@ def import_list(self, coords, label="default"):

def import_file(self, filename):
"""Method to import coordinates from file to Points object
Inputs:
filename = filename of stored coordinates and classes
:param filename: str
:return:
:return:
"""
coord_file = open(filename, "r")
coords = json.load(coord_file)
Expand All @@ -150,7 +149,7 @@ def import_file(self, filename):

def view(self, label="default", color="c", view_all=False):
"""Method to view current annotations
Inputs:
label = (optional) class label, by default label="total"
color = desired color, by default color="c"
Expand All @@ -159,5 +158,5 @@ def view(self, label="default", color="c", view_all=False):
:param color: string
:param view_all: boolean
:return:
"""
"""
_view(self, label=label, color=color, view_all=view_all)

0 comments on commit cd48f84

Please sign in to comment.