Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
greenIndex
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mario Chirinos Colunga
greenIndex
Commits
5967f77e
Commit
5967f77e
authored
Aug 11, 2020
by
Mario Chirinos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
840a3915
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
7 deletions
+15
-7
GI_getMinMax.py
scripts/GI_getMinMax.py
+15
-7
No files found.
scripts/GI_getMinMax.py
View file @
5967f77e
...
@@ -6,17 +6,25 @@ import json
...
@@ -6,17 +6,25 @@ import json
#===============================================================================
#===============================================================================
def
getMinMax
(
clase
):
def
getMinMax
(
clase
):
polylist
=
[]
for
item
in
os
.
listdir
(
"."
):
for
item
in
os
.
listdir
(
"."
):
if
os
.
path
.
isdir
(
item
):
if
os
.
path
.
isdir
(
item
):
print
(
item
)
print
(
item
)
with
open
(
os
.
getcwd
()
+
"/"
+
item
+
"/scl_data.json"
)
as
json_file
:
with
open
(
os
.
getcwd
()
+
"/"
+
item
+
"/scl_data.json"
)
as
json_file
:
data
=
json
.
load
(
json_file
)
dataSCL
=
json
.
load
(
json_file
)
with
open
(
os
.
getcwd
()
+
"/"
+
item
+
"/findProducts.json"
)
as
json_file
:
dataWKT
=
json
.
load
(
json_file
)
wkt
=
dataWKT
[
"wkt"
]
values
=
[]
values
=
[]
for
k
,
v
in
data
.
items
():
for
k
,
v
in
dataSCL
.
items
():
values
.
append
(
v
[
clase
])
values
.
append
(
v
[
clase
])
minval
=
min
(
values
)
minval
=
min
(
values
)
maxval
=
max
(
values
)
maxval
=
max
(
values
)
print
(
minval
,
maxval
)
polylist
.
append
({
"wkt"
:
wkt
,
"min"
:
minval
},
"max"
:
maxval
)
print
(
polylist
)
#===============================================================================
#===============================================================================
def
main
(
argv
):
def
main
(
argv
):
...
...
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