[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 583: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 639: sizeof(): Parameter must be an array or an object that implements Countable
Gephi forumsPlease post new questions on facebook group too (https://www.facebook.com/groups/gephi) 2011-02-06T19:41:43+01:00 https://www.forum-gephi.org/app.php/feed/topic/917 2011-02-06T19:41:43+01:002011-02-06T19:41:43+01:00 https://www.forum-gephi.org/viewtopic.php?t=917&p=2445#p2445 <![CDATA[Re: Attribute isn't importing and I don't know why!]]> Statistics:Posted by Alexis Jacomy — 06 Feb 2011 19:41


]]>
2011-02-04T21:02:29+01:002011-02-04T21:02:29+01:00 https://www.forum-gephi.org/viewtopic.php?t=917&p=2437#p2437 <![CDATA[Re: Attribute isn't importing and I don't know why!]]>
When working with dynamic graphs, you have DYNAMIC_FLOAT or DYNAMIC_DOUBLE types. Alexis, I guess you'll need to update the plugin to support these new types. As you know, a dynamic type is a set of values indexed by interval of time. The question is though: "How to get the latitude and longitude value for the current interval (defined by the timeline)".

Here is the code to do that, add DynamicAPI as library:

CODE:

DynamicModel dynamicModel = workspace.getLookup().lookup(DynamicModel.class);TimeInterval visibleInterval = dynamicModel != null ? dynamicModel.getVisibleInterval() : new TimeInterval();...AttributeColumn latColumn = ...      //DYNAMIC_FLOATObject val = node.getNodeData().getAttributes().getValue(latColumn.getIndex());val = DynamicUtilities.getDynamicValue(val, visibleInterval.getLow(), visibleInterval.getHigh());if (val != null) {   Float latitude = (Float)val;     //Latitude for the current interval}

Statistics:Posted by mbastian — 04 Feb 2011 21:02


]]>
2011-02-02T17:35:52+01:002011-02-02T17:35:52+01:00 https://www.forum-gephi.org/viewtopic.php?t=917&p=2401#p2401 <![CDATA[Re: Attribute isn't importing and I don't know why!]]>

CODE:

AttributeModel attModel = Lookup.getDefault().lookup(AttributeController.class).getModel();for (AttributeColumn c : attModel.getNodeTable().getColumns()) {    [...]}
I guess this model does not contain the dynamics attributes. At the same time, it looks like latitude and longitude are actually not dynamics in your file (no start values, no end values). May be you should try to use two different attributes declarations in your file, for example:

CODE:

<attributes class="node" mode="dynamic">    <attribute id="people_count" title="People Count" type="float"/></attributes><attributes class="node" mode="static">    <attribute id="latitude" title="latitude" type="double"/>    <attribute id="longitude" title="longitude" type="double"/></attributes>
instead of

CODE:

<attributes class="node" mode="dynamic">    <attribute id="people_count" title="People Count" type="float"/>    <attribute id="latitude" title="latitude" type="double"/>    <attribute id="longitude" title="longitude" type="double"/></attributes>
as you currently do.

I do not have Gephi with me, so I can't try it, and I don't know if Gephi can interpret several attributes tags. But the fact that your attributes are said dynamic is surely the problem.

Good luck

Statistics:Posted by Alexis Jacomy — 02 Feb 2011 17:35


]]>
2011-02-02T15:58:53+01:002011-02-02T15:58:53+01:00 https://www.forum-gephi.org/viewtopic.php?t=917&p=2400#p2400 <![CDATA[Re: Attribute isn't importing and I don't know why!]]>
D'oh

Statistics:Posted by sbourke — 02 Feb 2011 15:58


]]>
2011-02-02T15:47:04+01:002011-02-02T15:47:04+01:00 https://www.forum-gephi.org/viewtopic.php?t=917&p=2399#p2399 <![CDATA[Re: Attribute isn't importing and I don't know why!]]>
Best,

Clement.

Statistics:Posted by seinecle — 02 Feb 2011 15:47


]]>
2011-02-02T15:43:30+01:002011-02-02T15:43:30+01:00 https://www.forum-gephi.org/viewtopic.php?t=917&p=2398#p2398 <![CDATA[Re: Attribute isn't importing and I don't know why!]]>
Ok for the download, but there are updates available. Go to the menu: Help > Check for Updates.

Statistics:Posted by admin — 02 Feb 2011 15:43


]]>
2011-02-02T14:45:29+01:002011-02-02T14:45:29+01:00 https://www.forum-gephi.org/viewtopic.php?t=917&p=2396#p2396 <![CDATA[Re: Attribute isn't importing and I don't know why!]]>
The error doesn't give me any insight at all into what the problem is.

I already have a netbeans environment for development. I'm assuming that this could not be causing the issue at all. I get it on my desktop and laptop (Both macs).
two.png

one.png

Statistics:Posted by sbourke — 02 Feb 2011 14:45


]]>
2011-02-02T13:54:25+01:002011-02-02T13:54:25+01:00 https://www.forum-gephi.org/viewtopic.php?t=917&p=2395#p2395 <![CDATA[Re: Attribute isn't importing and I don't know why!]]>
I have a clean report when I try to import your graph.gexf

So... ???

Best,

Clement

Statistics:Posted by seinecle — 02 Feb 2011 13:54


]]>
2011-02-02T00:11:57+01:002011-02-02T00:11:57+01:00 https://www.forum-gephi.org/viewtopic.php?t=917&p=2386#p2386 <![CDATA[Re: Attribute isn't importing and I don't know why!]]>
The file was to big to upload in its entirety, I've put up as much as I can. The error occurs for every single node.

I'm working off the latest gephi download.
graph.gexf

Statistics:Posted by sbourke — 02 Feb 2011 00:11


]]>
2011-02-01T23:44:39+01:002011-02-01T23:44:39+01:00 https://www.forum-gephi.org/viewtopic.php?t=917&p=2385#p2385 <![CDATA[Re: Attribute isn't importing and I don't know why!]]>
I can't reproduce this bug. Attached is my test file, containing your nodes #3 and #4.

Can you share the whole file please?

In case of, did you updated your Gephi? It may be an old bug already fixed.
test.gexf

Statistics:Posted by admin — 01 Feb 2011 23:44


]]>
2011-02-01T20:46:37+01:002011-02-01T20:46:37+01:00 https://www.forum-gephi.org/viewtopic.php?t=917&p=2381#p2381 <![CDATA[[FIXED] Attribute isn't importing and I don't know why!]]>
I'm trying to create a dynamic topolgy using the geo plugin ( http://gephi.org/2010/map-geocoded-data-with-gephi/ ) However I'm getting errors which arent to descriptive about the longitude and latitude attributes. I was hoping someone could point out what I'm doing wrong.

The top of the report file looks as follows
Default edge type set as UNDIRECTED
GEXF version 1.1
Node attribute found 'People Count' (DYNAMIC_FLOAT)
Node attribute found 'latitude' (DYNAMIC_DOUBLE)
Node attribute found 'longitude' (DYNAMIC_DOUBLE)
Data value 'latitude' type error for element node id=0. The value cannot be set as 'latitude' attribute.
Data value 'longitude' type error for element node id=0. The value cannot be set as 'longitude' attribute.

This is the case for all nodes in the file (3k~)

The top of the airline dataset taken from gephi looks as follows (It's what I'm using to structure my file!)

CODE:

<graph defaultedgetype="undirected" idtype="string" type="static"><attributes class="node" mode="static"><attribute id="code" title="Code" type="string"/><attribute id="city" title="City" type="string"/><attribute id="latitude" title="latitude" type="double"/><attribute id="longitude" title="longitude" type="double"/>
So I'm using this as my baseline to work out how to create a similar diagram. Therefore I declared the following at the top of my file

CODE:

  <graph mode="dynamic" defaultedgetype="undirected">  <attributes class="node" mode="dynamic"><attribute id="people_count" title="People Count" type="float"/><attribute id="latitude" title="latitude" type="double"/><attribute id="longitude" title="longitude" type="double"/></attributes>
A node in the airline data set looks like the following

CODE:

<node id="0" label="Adams Field Airport"><attvalues><attvalue for="code" value="LIT"/><attvalue for="city" value="Little Rock, AR"/><attvalue for="latitude" value="34.729444"/><attvalue for="longitude" value="-92.224444"/></attvalues><viz:color b="243" g="107" r="88"/></node>
and in mine

CODE:

  </node><node id='3' label='Catch 22' start='0' end='66'>    <attvalues><attvalue for='people_count' value='1' start='40'/>          <attvalue for='people_count' value='3' start='47'/>          <attvalue for='latitude' value='53.3649'/>          <attvalue for='longitude' value='-6.2204'/></attvalues>        </node><node id='4' label='Clarion Hotel IFSC Dublin' start='0' end='66'>    <attvalues><attvalue for='people_count' value='1' start='5'/>          <attvalue for='people_count' value='2' start='60'/>          <attvalue for='people_count' value='1' start='44'/>          <attvalue for='latitude' value='53.3478'/>          <attvalue for='longitude' value='-6.24369'/></attvalues>        </node>
I'm assuming the formatting shouldnt be causing me the issues. Any help greatly appreciated.

Statistics:Posted by sbourke — 01 Feb 2011 20:46


]]>