Skip to content

Commit 7512238

Browse files
committed
Address pylint
Signed-off-by: Ian Hoang <[email protected]>
1 parent 87bf938 commit 7512238

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

osbenchmark/synthetic_data_generator/strategies/mapping_strategy.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,8 @@ def generate_byte(self, field_def: Dict[str, Any], **params) -> int:
202202
return random.randint(min, max)
203203

204204
def generate_double(self, field_def: Dict[str, Any], **params) -> float:
205-
min = params.get('min', -1000000)
206-
max = params.get('max', 1000000)
205+
min = params.get('min', -1e9)
206+
max = params.get('max', 1e9)
207207
return random.uniform(min, max)
208208

209209
def generate_float(self, field_def: Dict[str, Any], **params) -> float:

osbenchmark/synthetic_data_generator/timeseries_partitioner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ def _try_other_frequencies(self, expected_number_of_docs_with_buffer: int) -> st
212212
def _does_user_want_optimal_frequency(self, user_frequency: str, optimal_frequency: str) -> bool:
213213
valid_responses = ['y', 'yes', 'n', 'no']
214214
msg = f"The frequency [{optimal_frequency}] is a better option for the number of docs you are trying to generate " + \
215-
f"because the current frequency you've selected does not have enough timestamps to allocate to docs generated." + \
215+
"because the current frequency you've selected does not have enough timestamps to allocate to docs generated." + \
216216
f"If you prefer your current frequency [{user_frequency}], please extend the time frame. " + \
217217
f"Would you like to use [{optimal_frequency}] as the frequency? (y/n): "
218218
requested_input = input(msg)

0 commit comments

Comments
 (0)