-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
- SAVE coords to Outputs class
- SAVE counts per group label to Outputs
Not yet sure how to handle communication between Outputs :
from plantcv.plantcv import warn, params, outputs
def save_counts(self, label=None):
"""Save collected coordinates to Outputs.observations"""
if label is None:
label = params.sample_label
for i, x in enumerate(self.count.keys()):
variable = x
value = self.count[x]
outputs.add_observation(sample=label, variable=str(variable) + "_count",
trait='count of category',
method='count', scale='count', datatype=int,
value=value, label='none')
def save_coords(self, label=None):
"""Save collected coordinates to Outputs.observations"""
if label is None:
label = params.sample_label
for i, x in enumerate(self.count.keys()):
variable = x
value = self.points[x]
outputs.add_observation(sample=label, variable=str(variable) + "_coords",
trait='collected coordinates',
method='annotation', scale='count', datatype=list,
value=value, label='none')
Metadata
Metadata
Assignees
Labels
No labels