Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
olapy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
2
Merge Requests
2
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
olapy
Commits
1e9bffab
Commit
1e9bffab
authored
May 02, 2017
by
mouadh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change some non pythonic methods names
parent
d2d20736
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
olapy/core/services/xmla_execute_tools.py
olapy/core/services/xmla_execute_tools.py
+2
-2
olapy/web/stats_utils.py
olapy/web/stats_utils.py
+1
-1
olapy/web/views.py
olapy/web/views.py
+2
-2
No files found.
olapy/core/services/xmla_execute_tools.py
View file @
1e9bffab
...
@@ -12,7 +12,7 @@ class XmlaExecuteTools():
...
@@ -12,7 +12,7 @@ class XmlaExecuteTools():
def
__init__
(
self
,
executer
):
def
__init__
(
self
,
executer
):
self
.
executer
=
executer
self
.
executer
=
executer
def
split_
D
ataFrame
(
self
,
mdx_execution_result
):
def
split_
d
ataFrame
(
self
,
mdx_execution_result
):
"""
"""
Split DataFrame into multiple ones by dimension
Split DataFrame into multiple ones by dimension
example:
example:
...
@@ -248,7 +248,7 @@ class XmlaExecuteTools():
...
@@ -248,7 +248,7 @@ class XmlaExecuteTools():
"""
"""
# TODO must be OPTIMIZED every time!!!!!
# TODO must be OPTIMIZED every time!!!!!
dfs
=
self
.
split_
D
ataFrame
(
mdx_execution_result
)
dfs
=
self
.
split_
d
ataFrame
(
mdx_execution_result
)
if
mdx_execution_result
[
'columns_desc'
][
if
mdx_execution_result
[
'columns_desc'
][
'rows'
]
and
mdx_execution_result
[
'columns_desc'
][
'columns'
]:
'rows'
]
and
mdx_execution_result
[
'columns_desc'
][
'columns'
]:
...
...
olapy/web/stats_utils.py
View file @
1e9bffab
...
@@ -7,7 +7,7 @@ import plotly
...
@@ -7,7 +7,7 @@ import plotly
import
plotly.graph_objs
as
go
import
plotly.graph_objs
as
go
class
g
raphs
:
class
G
raphs
:
"""
"""
Manage graphs for the web clients
Manage graphs for the web clients
"""
"""
...
...
olapy/web/views.py
View file @
1e9bffab
...
@@ -18,7 +18,7 @@ from olapy.web.pivottable import pivot_ui
...
@@ -18,7 +18,7 @@ from olapy.web.pivottable import pivot_ui
from
..core.mdx.executor.execute
import
MdxEngine
from
..core.mdx.executor.execute
import
MdxEngine
from
..web
import
app
,
login_manager
from
..web
import
app
,
login_manager
from
..web.logger
import
Logs
from
..web.logger
import
Logs
from
..web.stats_utils
import
g
raphs
from
..web.stats_utils
import
G
raphs
from
.forms
import
LoginForm
,
QueryForm
from
.forms
import
LoginForm
,
QueryForm
from
.models
import
User
from
.models
import
User
...
@@ -234,7 +234,7 @@ def export_file(type):
...
@@ -234,7 +234,7 @@ def export_file(type):
@
login_required
@
login_required
def
stats
():
def
stats
():
ex
=
MdxEngine
(
CUBE
)
ex
=
MdxEngine
(
CUBE
)
graph
=
g
raphs
()
graph
=
G
raphs
()
columns
=
list
(
columns
=
list
(
itertools
.
chain
.
from_iterable
([[
column
for
column
in
df
.
columns
]
itertools
.
chain
.
from_iterable
([[
column
for
column
in
df
.
columns
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment