Skip to content

Commit

Permalink
Minor linting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gherka committed Oct 16, 2023
1 parent 82b974b commit 0a2ee95
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 7 deletions.
1 change: 0 additions & 1 deletion exhibit/core/generate/continuous.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
'''

# Standard library imports
import re

# External library imports
import numpy as np
Expand Down
2 changes: 0 additions & 2 deletions exhibit/core/generate/derived.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

# Standard library imports
import re
from datetime import time
from functools import partial

# External library imports
import numpy as np
Expand Down
1 change: 0 additions & 1 deletion exhibit/core/generate/tests/test_continuous.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

# External library imports
import pandas as pd
from pandas.testing import assert_series_equal
import numpy as np

# Module under test
Expand Down
1 change: 0 additions & 1 deletion exhibit/core/generate/tests/test_derived.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

# Standard library imports
import unittest
from collections import namedtuple

# External library imports
import pandas as pd
Expand Down
5 changes: 3 additions & 2 deletions exhibit/core/generate/uuids.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ def generate_uuid_column(

for row in freq_df.itertuples():

# initialise intermediate uuid list
_uuids = []

# always round up the number of generated rows before casting to int
_num_rows = int(np.ceil(
num_rows * float(row.probability_vector) / int(row.frequency)))
Expand All @@ -71,8 +74,6 @@ def generate_uuid_column(
range_max = range_max + _num_rows
continue

_uuids = []

for _ in range(_num_rows):
_uuids.append(uuid.UUID(int=rng.getrandbits(128), version=4).hex)

Expand Down

0 comments on commit 0a2ee95

Please sign in to comment.