(inability to add) Constraints on Boolean features

40 views
Skip to first unread message

Giulia D'Agostino

unread,
Mar 1, 2022, 11:14:00 AM3/1/22
to inception-users
Hi all,

I'm facing some issues with features based on a Primitive type different from "String".

In particular, when creating a Boolean feature:

- ticking the "Hide when no constraints apply" option does not return the expected result: in fact, the feature ends up showing up in the annotation mode in any case;
- adding some constraints doesn't improve (but not even slightly change) the situation: the feature that should be visible under certain conditions only does not seem to be perturbed in any way.
I'm adding a snippet of "constraint code" for reference:

Traits {
        Desire="true" -> Action="true" | Action ="false";
}


The same exact difficulty emerges with "Integer" features: I converted my Boolean features into Integer ones with binary values (i.e., limited to 0 and 1), trying to figure out whether I could solve the trouble I was facing in an indirect way; unfortunately, it didn't work because the outcomes are the same.

Am I doing something wrong?
Or should those kind of features act in the way I was expecting them to, but there's something abnormal going on?

I really wish you can help me with this, since having those binary traits on an annotation layer is a rather critical aspect of the project I am working on...

Thank you, and I hope to hear from you soon!

Giulia

Richard Eckart de Castilho

unread,
Mar 1, 2022, 11:19:12 AM3/1/22
to inception-users
Hi Giulia,

> I'm facing some issues with features based on a Primitive type different from "String".
> I really wish you can help me with this, since having those binary traits on an annotation layer is a rather critical aspect of the project I am working on...

I'm afraid the constraints feature presently only supports string features. You can convert your boolean field into a string feature that has a tagset with "true" and "false" values. Make sure you do enable the option that allows adding more tags to the tagset. If you are using a recent version of INCEpTION, you should then get a convenient "radio button" interface for setting the feature value and constraints should work.

Best,

-- Richard

Giulia D'Agostino

unread,
Mar 1, 2022, 11:27:57 AM3/1/22
to inception-users
Hi Richard,

I'm afraid the constraints feature presently only supports string features

what a pity! It would have been very convenient. 

But anyway, thank you for your quick response! I'll make sure to implement an alternative solution like the one you proposed.

Best,
Giulia

Richard Eckart de Castilho

unread,
Mar 1, 2022, 11:30:03 AM3/1/22
to incepti...@googlegroups.com
Btw. the below was missing a "NOT" in my previous mail ;)

Make sure you do *NOT* enable the option that allows adding more tags to the tagset!

-- Richard
Reply all
Reply to author
Forward
0 new messages