Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/algorithmicsuperintelligence/openevolve
/ check_json_float
Function
check_json_float
scripts/visualizer.py:100–101 ·
view source on GitHub ↗
(v: Optional[float])
Source
from the content-addressed store, hash-verified
98
program[
"metadata"
][
"parent_metrics"
][k] = None
99
100
def
check_json_float(v: Optional[float]) -> bool:
101
return
isinstance(v, Number) and not (math.isinf(v) or math.isnan(v))
102
103
104
@app.route(
"/"
)
Callers
9
test_valid_positive_float
Method · 0.90
test_valid_negative_float
Method · 0.90
test_valid_zero
Method · 0.90
test_valid_integer
Method · 0.90
test_invalid_positive_infinity
Method · 0.90
test_invalid_negative_infinity
Method · 0.90
test_invalid_nan
Method · 0.90
test_invalid_none
Method · 0.90
sanitize_program_for_visualization
Function · 0.85
Calls
no outgoing calls
Tested by
8
test_valid_positive_float
Method · 0.72
test_valid_negative_float
Method · 0.72
test_valid_zero
Method · 0.72
test_valid_integer
Method · 0.72
test_invalid_positive_infinity
Method · 0.72
test_invalid_negative_infinity
Method · 0.72
test_invalid_nan
Method · 0.72
test_invalid_none
Method · 0.72