Skip to content

Commit

Permalink
Defaults to source when protocol not support vineyard io stream (#311)
Browse files Browse the repository at this point in the history
  • Loading branch information
lidongze0629 authored May 14, 2021
1 parent 40a8229 commit 391a96c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
9 changes: 3 additions & 6 deletions python/graphscope/framework/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,13 +192,10 @@ def process_location(self, source):
# If protocol is not set, use 'file' as default
if not self.protocol:
self.protocol = "file"
check_argument(
self.protocol in ("file", "hdfs", "hive", "oss", "s3", "vineyard")
)
if self.protocol == "file":
self.source = source
else:
if self.protocol in ("hdfs", "hive", "oss", "s3", "vineyard"):
self.process_vineyard(source)
else:
self.source = source

def process_numpy(self, source: Sequence[np.ndarray]):
self.protocol = "numpy"
Expand Down
13 changes: 7 additions & 6 deletions python/jupyter/graphscope/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "graphscope-jupyter",
"name": "@graphscope/graphscope-jupyter",
"version": "0.4.0",
"description": "A GraphScope Jupyter Extension, including Graphin Widget, etc.",
"keywords": [
Expand All @@ -22,15 +22,12 @@
"url": "https://github.com/antvis/G6/issues"
},
"license": "BSD-3-Clause",
"author": {
"name": "baizn",
"email": "[email protected]"
},
"author": "baizn <[email protected]>",
"main": "src/index.ts",
"types": "./lib/index.d.ts",
"repository": {
"type": "git",
"url": "https://github.com/antvis/G6"
"url": "git+https://github.com/antvis/G6.git"
},
"scripts": {
"build": "npm run build:lib && npm run build:nbextension",
Expand Down Expand Up @@ -113,5 +110,9 @@
},
"prettier": {
"singleQuote": true
},
"directories": {
"doc": "docs",
"lib": "lib"
}
}

0 comments on commit 391a96c

Please sign in to comment.