|
From: <gea...@us...> - 2009-05-03 15:24:54
|
Revision: 341
http://mypyspace.svn.sourceforge.net/mypyspace/?rev=341&view=rev
Author: gearmonkey
Date: 2009-05-03 15:24:42 +0000 (Sun, 03 May 2009)
Log Message:
-----------
added full song as node graph. Audio weigts of edges all set to -1 as place holder
Modified Paths:
--------------
graphRDF/branches/songsAsNodes/graphRDF.py
Added Paths:
-----------
graphRDF/branches/songsAsNodes/complexSongGraph.mlz
Added: graphRDF/branches/songsAsNodes/complexSongGraph.mlz
===================================================================
(Binary files differ)
Property changes on: graphRDF/branches/songsAsNodes/complexSongGraph.mlz
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Modified: graphRDF/branches/songsAsNodes/graphRDF.py
===================================================================
--- graphRDF/branches/songsAsNodes/graphRDF.py 2009-04-30 17:26:17 UTC (rev 340)
+++ graphRDF/branches/songsAsNodes/graphRDF.py 2009-05-03 15:24:42 UTC (rev 341)
@@ -373,21 +373,19 @@
# self.Pkin = Pk
def main(argv=None):
- plot = 0
- includeEnds = 0
+ plot = False
+ includeEnds = False
+ folder = "person_seed_134901208"
+ media = ''
if argv is None:
argv = sys.argv
try:
try:
- opts, args = getopt.getopt(argv[1:], "ho:vl:p", ["help", "output=", "logtofile=", "plot"])
+ opts, args = getopt.getopt(argv[1:], "hf:m:o:vb:e:p", ["help", "folder=", "media=", "output=", "baseGraph=","expandedGraph=". "plot"])
except getopt.error, msg:
raise Usage(msg)
- loggingConfig = {"format":'%(asctime)s %(levelname)-8s %(message)s',
- "datefmt":'%d.%m.%y %H:%M:%S',
- "level": logging.DEBUG,
- #"filename":logPath + "musicGrabber.log",
- "filemode":"w"}
+
# option processing
for option, value in opts:
@@ -397,19 +395,18 @@
raise Usage(help_message)
if option in ("-o", "--output"):
output = value
+ if option in ("-f", "--folder"):
+ folder = value
if option in ("-p", "--plot"):
- plot = 1
- if option in ("-l", "--logtofile"):
- logPath = value
- loggingConfig = {"format":'%(asctime)s %(levelname)-8s %(message)s',
- "datefmt":'%d.%m.%y %H:%M:%S',
- "level": logging.DEBUG,
- "filename":logPath + "musicGrabber.log",
- "filemode":"w"}
+ plot = True
+ if option in ("-b", "--baseGraph"):
+ base = value
+ if option in ("-e", "--expandedGraph"):
+ expanded = value
logging.basicConfig(**loggingConfig)
- G = graph(includeEnds)
+ G = graph('')
G.populate()
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|