[SOLVED] How to input a boolean value in the datalab?

Computing metrics, community detection and data handling
Post Reply [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
User avatar
seinecle
Gephi Community Support
Posts:546
Joined:08 Feb 2010 16:55
Location:Lyon, France
Contact:
[SOLVED] How to input a boolean value in the datalab?

Post by seinecle » 04 May 2011 10:21

Hi,

Well the question is in the title.

I created a column for boolean values in the datalab, but anything I try to input in it (True, TRUE, true, 1) is rejected. Any advice?

Best,

Clement

admin
Gephi Community Manager
Posts:964
Joined:09 Dec 2009 14:41
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable

Re: How to input a boolean value in the datalab?

Post by admin » 04 May 2011 10:30

How do you input it? The UI displays a checkbox.

User avatar
seinecle
Gephi Community Support
Posts:546
Joined:08 Feb 2010 16:55
Location:Lyon, France
Contact:

Re: How to input a boolean value in the datalab?

Post by seinecle » 04 May 2011 10:59

Thanks - my mistake.

I had selected "BooleanList" by mistake, instead of "Boolean".
Is there a page which explains what this "list" format is, btw?

Best,

Clement

User avatar
eduramiba
Gephi Code Manager
Posts:1064
Joined:22 Mar 2010 15:30
Location:Madrid, Spain
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable

Re: How to input a boolean value in the datalab?

Post by eduramiba » 04 May 2011 13:43

Hi,

For any list type, elements are separated with commas so for example true,false,true is valid for a BooleanList.

Eduardo

User avatar
seinecle
Gephi Community Support
Posts:546
Joined:08 Feb 2010 16:55
Location:Lyon, France
Contact:

Re: How to input a boolean value in the datalab?

Post by seinecle » 04 May 2011 13:52

Cool, thanks.
Can you give me an idea of what can of use it can serve?

User avatar
eduramiba
Gephi Code Manager
Posts:1064
Joined:22 Mar 2010 15:30
Location:Madrid, Spain
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable

Re: How to input a boolean value in the datalab?

Post by eduramiba » 04 May 2011 14:52

Hi,

Well there are list types for all simple types because it could be useful to someone.
Though BooleanList is not as natural as integer, these list types can lead to interesting visualizations or statistics like nice sparklines http://gephi.org/wp-content/uploads/201 ... ators3.png :D

Of course ideas are welcome!

Eduardo

User avatar
seinecle
Gephi Community Support
Posts:546
Joined:08 Feb 2010 16:55
Location:Lyon, France
Contact:

Re: How to input a boolean value in the datalab?

Post by seinecle » 04 May 2011 15:02

Ok I get it, thx!

That would be nice to see how these lists could have a visual translation in the overview panel, too. For the moment I don't see how...

best,

Clement

Post Reply
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable