Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
feature-api-test
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
QA
feature-api-test
Commits
8e48eb1b
Commit
8e48eb1b
authored
Aug 19, 2019
by
张鹏程
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
1. el 表达式 对对于异常值的判断
parent
580063f5
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
7 deletions
+6
-7
.python-version
.python-version
+1
-1
三方数据调用.ipynb
J_feature/三方数据调用.ipynb
+0
-0
feature_mapping.xlsx
data/feature_mapping.xlsx
+0
-0
Mapping.py
service/Mapping.py
+3
-4
startup.py
startup.py
+2
-2
No files found.
.python-version
View file @
8e48eb1b
3.6.
6
3.6.
0
J_feature/三方数据调用.ipynb
0 → 100644
View file @
8e48eb1b
This diff is collapsed.
Click to expand it.
data/feature_mapping.xlsx
View file @
8e48eb1b
No preview for this file type
service/Mapping.py
View file @
8e48eb1b
...
...
@@ -139,7 +139,6 @@ class Mapping():
exec
(
"{} = '{}'"
.
format
(
k
,
v
[
'value'
]))
else
:
exec
(
'{} = {}'
.
format
(
k
,
round
(
v
[
'value'
]),
6
))
if
k
in
result_key
:
result_key
.
remove
(
k
)
result_key_t
=
result_key
...
...
@@ -157,15 +156,15 @@ class Mapping():
if
istrue
:
isEl
=
True
for
el
in
_result
[
key
][
'featrueELL'
]:
if
e
l
!=
-
9999999
and
el
!=
'-9999999'
and
el
!=
'数据不存在'
:
if
e
val
(
el
)
!=
-
9999999
and
eval
(
el
)
!=
'-9999999'
and
eval
(
el
)
!=
'数据不存在'
:
isEl
=
True
else
:
isEl
=
False
if
isEl
:
try
:
_result
[
key
][
'value'
]
=
round
(
eval
(
_result
[
key
][
'featrueEL'
]),
6
)
except
:
_result
[
key
][
'value'
]
=
'数据不存在'
except
ZeroDivisionError
as
z
:
_result
[
key
][
'value'
]
=
0
else
:
_result
[
key
][
'value'
]
=
-
9999999
exec
(
'{} = {}'
.
format
(
key
,
round
(
_result
[
key
][
'value'
]),
6
))
...
...
startup.py
View file @
8e48eb1b
...
...
@@ -36,7 +36,7 @@ def apps():
(
URL
.
url_calc_features
,
Calc_Features_Handler
.
CalcFeatures
),
(
URL
.
url_complex_order
,
ComplexOrder_Handler
.
ComplexOrder
),
(
URL
.
url_loanPostFeatures
,
LoanPostFeatures_Handler
.
loanPostFeatures
),
]
,
debug
=
True
)
])
if
__name__
==
"__main__"
:
...
...
@@ -52,7 +52,7 @@ if __name__ == "__main__":
IOLoop
.
instance
()
.
start
()
#
#
#
# from tornado.options import define, options
# define("port", default=23010, help="run on the given port ", type=int)
# define("log_path", default='/tmp', help="log path ", type=str)
...
...
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