Skip to content

Commit

Permalink
fix flake8 style errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Schneider committed Oct 5, 2021
1 parent 2dd4615 commit 843f4aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion deepcomp/env/util/utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def linear_clipped_utility(curr_dr, max_dr=MAX_UTILITY):
"""
assert curr_dr >= 0 and max_dr >= 0
assert MIN_UTILITY == 0 and MAX_UTILITY == max_dr, \
f"The chosen linear utility requires MIN_UTILITY=0 and sensible MAX_UTILITY. Set sensible values manually!"
"The chosen linear utility requires MIN_UTILITY=0 and sensible MAX_UTILITY. Set sensible values manually!"
return np.clip(curr_dr, MIN_UTILITY, MAX_UTILITY)


Expand Down
2 changes: 1 addition & 1 deletion deepcomp/util/env_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def get_env(map_size, bs_dist, num_static_ues, num_slow_ues, num_fast_ues, shari
"""Create and return the environment corresponding to the given map_size"""
assert map_size in SUPPORTED_ENVS, f"Environment {map_size} is not one of {SUPPORTED_ENVS}."
assert util_func in SUPPORTED_UTILITIES, \
f"Utility function {util_func} not supported. Supported: {SUPPORTED_UTILITIES}"
f"Utility function {util_func} not supported. Supported: {SUPPORTED_UTILITIES}"

# create map and BS list
map, bs_list = None, None
Expand Down

0 comments on commit 843f4aa

Please sign in to comment.