Skip to content

Commit

Permalink
pep 8 (#27)
Browse files Browse the repository at this point in the history
- adjust relative location of config.ini file: one folder up
- pep 8 compliance
  • Loading branch information
MariusWirtz committed Aug 1, 2018
1 parent da40503 commit af4ab30
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions Query Data/mdx_query_different_formats.py
Expand Up @@ -10,7 +10,7 @@

# Read Config
config = configparser.ConfigParser()
config.read('./config.ini')
config.read('../config.ini')

# Initializer Prettyprinter
pp = pprint.PrettyPrinter(indent=2)
Expand All @@ -36,7 +36,7 @@ def query_formats(
cell_properties=cell_properties,
elem_properties=elem_properties,
member_properties=member_properties,
top=None)
top=top)
pp.pprint(raw_data)

# default: (Case and space insensitive) dictionary
Expand Down Expand Up @@ -82,8 +82,6 @@ def query_formats(
member_properties=member_properties)
pp.pprint(dygraph)



# Sample query from TM1 sample server called "Planning Sample"
mdx = """
SELECT
Expand Down Expand Up @@ -143,7 +141,7 @@ def query_formats(

query_formats(
mdx=mdx,
cell_properties=["Value","FormattedValue","RuleDerived"],
elem_properties=None,#["Name","Type","Index"],
member_properties=["Name"],#,"UniqueName","Attributes"],
cell_properties=["Value", "FormattedValue", "RuleDerived"],
elem_properties=None, # ["Name","Type","Index"],
member_properties=["Name"], # ,"UniqueName","Attributes"],
top=None)

0 comments on commit af4ab30

Please sign in to comment.