You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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')
The text was updated successfully, but these errors were encountered:
HaleySchuhl
changed the title
after Points basic functionality, connect to Outputs
#2 after Points basic functionality, connect to Outputs
Mar 4, 2024
Not yet sure how to handle communication between Outputs :
The text was updated successfully, but these errors were encountered: