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
Copy file name to clipboardexpand all lines: docs/outputs.md
+15-15
Original file line number
Diff line number
Diff line change
@@ -48,32 +48,29 @@ Methods are accessed as plantcv.outputs.*method*.
48
48
49
49
* scale: Units of the measurement or a scale in which the observations are expressed; if possible, standard units and scales should be used and mapped to existing ontologies; in case of a non-standard scale a full explanation should be given.
50
50
51
-
* datatype: The type of data to be stored. In JSON, values must be one of the following data types:
52
-
- a string
53
-
- a number
54
-
- an array
55
-
- a boolean
56
-
- null
57
-
- a JSON object
58
-
59
-
They are equilvalent to python data types of the following:
60
-
- 'str'
61
-
- 'int' or 'float'
62
-
- 'list' or 'tuple'
63
-
- 'bool'
64
-
- 'NoneType'
65
-
- 'dict'
51
+
* datatype: The type of data to be stored. See note below for supported data types.
66
52
67
53
* value: The data itself. Make sure the data type of value matches the data type stated in "datatype".
68
54
69
55
* label: The label for each value, which will be useful when the data is a frequency table (e.g. hues).
70
56
57
+
**add_metadata**(*term, datatype, value*): Add metadata about the image or other information
58
+
59
+
* term: Metadata term/name
60
+
61
+
* datatype: The type of data to be stored. See note below for supported data types.
62
+
63
+
* value: The data itself. Make sure the data type of value matches the data type stated in "datatype".
64
+
71
65
**save_results**(*filename, outformat="json"*): Save results to a file
72
66
73
67
* filename: Path and name of the output file
74
68
75
69
* outformat: Output file format (default = "json"). Supports "json" and "csv" formats
76
70
71
+
!!!note
72
+
Supported data types for JSON output are: int, float, str, list, bool, tuple, dict, NoneType, numpy.float64.
73
+
77
74
**Example use:**
78
75
- [Use In VIS/NIR Tutorial](tutorials/vis_nir_tutorial.md)
0 commit comments