Skip to content

What is safe_float supposed to do? #33

@vict0rsch

Description

@vict0rsch

I have removed the trailing code from distribution_benchmark.py and stability_benchmark.py but this was the orginal. What was the context / intention behind this function?

def safe_float(value):
    """Safely convert value to float, handling None and NaN."""
    return value
    # if value is None:
    #     raise ValueError
    
    # float_val = float(value)
    # if math.isnan(float_val):
    #     raise ValueError
    # return float_val

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions