Skip to content

Commit

Permalink
style: running black
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlangrose committed Mar 7, 2022
1 parent e104366 commit ee8cc4a
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,6 @@ def add_contact_anisotropies(self, series_list=None, **kwargs):
if self.intrusion_network_type == "shortest path":
n_clusters = self.number_of_contacts


if series_list == None:
self.anisotropies_series_list = None

Expand All @@ -184,8 +183,10 @@ def add_contact_anisotropies(self, series_list=None, **kwargs):
n_contacts = n_clusters[i]

# use scalar field values to find different contacts
series_i_vals_mod = series_i_vals.reshape(len(series_i_vals),1)
contact_clustering = KMeans(n_clusters = n_contacts, random_state=0).fit(series_i_vals_mod)
series_i_vals_mod = series_i_vals.reshape(len(series_i_vals), 1)
contact_clustering = KMeans(n_clusters=n_contacts, random_state=0).fit(
series_i_vals_mod
)

for j in range(n_contacts):
z = np.ma.masked_not_equal(contact_clustering.labels_, j)
Expand Down

0 comments on commit ee8cc4a

Please sign in to comment.