Skip to content

Commit

Permalink
upload
Browse files Browse the repository at this point in the history
  • Loading branch information
william-denault committed Jun 25, 2024
1 parent 6e4de2c commit 49c1a3d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test_string_to_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,13 @@
create_coef_dict(coef_names,coef_values )
# Answer should be {'a': 1, 'b': 2, 'c': 3}

expression = 'a + b / (variable1_range/10000.0) + c * np.log10(variable2_range/10000)'

# Extract variables ending with '_range' (default suffix)
range_variables = extract_variables_names(expression)
print(range_variables)
#['variable1_range', 'variable2_range']
#['variable1_range', 'variable2_range']


create_coef_dict (coef_names, coef_values)
#{'a': 1, 'b': 2, 'c': 3}
7 changes: 7 additions & 0 deletions workspace.code-workspace
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"folders": [
{
"path": "."
}
]
}

0 comments on commit 49c1a3d

Please sign in to comment.