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
return"syntax error in <paramName>=<paramVal> of \"" + p_val + "\": expecting <paramName> to be <feature name>/<parameter name> or <common parameter name>";
76
+
77
+
// feature parameters
78
+
if (ppath.size() == 2)
79
+
{
80
+
if (ppath[0] == "3glcm")
81
+
{
82
+
// check feature-specific parameter name
83
+
if (ppath[1] == "greydepth")
84
+
{
85
+
// interpret eq_sides[1] as int
86
+
int n_greys;
87
+
if (Nyxus::parse_as_int(eq_sides[1], n_greys) == false)
88
+
{
89
+
return"error: cannot parse value \"" + eq_sides[1] + "\" of 3glcm/greydepth: expecting an integer";
90
+
}
91
+
STNGS_GLCM_GREYDEPTH (fsett_D3_GLCM) = n_greys;
92
+
}
93
+
elseif (ppath[1] == "offset")
94
+
{
95
+
// interpret eq_sides[1] as int
96
+
int offs;
97
+
if (Nyxus::parse_as_int(eq_sides[1], offs) == false)
98
+
{
99
+
return"error: cannot parse value \"" + eq_sides[1] + "\" of 3glcm/offset: expecting an integer";
100
+
}
101
+
STNGS_GLCM_OFFSET (fsett_D3_GLCM) = offs;
102
+
}
103
+
elseif (ppath[1] == "numang")
104
+
{
105
+
// interpret eq_sides[1] as int
106
+
int n_angs;
107
+
if (Nyxus::parse_as_int(eq_sides[1], n_angs) == false)
108
+
{
109
+
return"error: cannot parse value \"" + eq_sides[1] + "\" of 3glcm/numang: expecting an integer";
110
+
}
111
+
STNGS_GLCM_NUMANG(fsett_D3_GLCM) = n_angs;
112
+
}
113
+
elseif (ppath[1] == "sparseintensities")
114
+
{
115
+
// interpret eq_sides[1] as boolean
116
+
bool bval;
117
+
if (Nyxus::parse_as_bool(eq_sides[1], bval) == false)
118
+
{
119
+
return"error: cannot parse value \"" + eq_sides[1] + "\" of 3glcm/sparseintensities: expecting a boolean (\"true\" or \"false\")";
return"syntax error in <paramName>=<paramVal> of \"" + p_name + "\": expecting <paramName> to be <feature name>/<parameter name> or <common parameter name>";
m.def("featurize_directory_imp", &featurize_directory_imp, "Calculate features of images defined by intensity and mask image collection directories");
1039
1053
m.def("featurize_directory_3D_imp", &featurize_directory_3D_imp, "Calculate 3D features of images defined by intensity and mask image collection directories");
@@ -1054,6 +1068,8 @@ PYBIND11_MODULE(backend, m)
1054
1068
m.def("arrow_is_enabled_imp", &arrow_is_enabled_imp, "Check if arrow is enabled.");
1055
1069
m.def("get_arrow_file_imp", &get_arrow_file_imp, "Get path to arrow file");
1056
1070
m.def("get_parquet_file_imp", &get_parquet_file_imp, "Returns path to parquet file");
1071
+
m.def("set_metaparam_imp", &set_metaparam_imp, "Setting a common or feature-specific metaparameter");
1072
+
m.def("get_metaparam_imp", &get_metaparam_imp, "Getting a common or feature-specific metaparameter value");
0 commit comments