Skip to content

Commit

Permalink
Merge pull request #18 from UPB-SS1/fixes
Browse files Browse the repository at this point in the history
Fixes
  • Loading branch information
csotomon authored May 10, 2021
2 parents 9bd3261 + da02b48 commit f0c5393
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

setup(
name="pycoornet",
version="0.3.0",
version="0.3.1",
description="Using Python Given a set of URLs, this packages detects coordinated link sharing behavior on social media and outputs the network of entities that performed such behaviour.",
long_description=long_description,
long_description_content_type="text/markdown",
Expand Down
2 changes: 1 addition & 1 deletion src/pycoornet/shared.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,4 +354,4 @@ def coord_shares(self, coordination_interval=None, percentile_edge_weight=90, cl

highly_connected_graph, q = self.__buid_graph(crowdtangle_shares_df, coordinated_shares_df, percentile_edge_weight=percentile_edge_weight, timestamps=gtimestamps)

return crowdtangle_shares_df, highly_connected_graph, q, coordination_interval
return crowdtangle_shares_df, highly_connected_graph, q
5 changes: 2 additions & 3 deletions tests/test_pycoornet.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,8 @@ def test_crowdtangle(crowd_token, sample_source_df):

def test_shared(sample_ct_df):
shared = Shared(sample_ct_df)
crowtangle_shares_df, highly_connected_graph, q, coordination_interval = shared.coord_shares(clean_urls=True)
if (crowtangle_shares_df.shape[0] > 0 and
highly_connected_graph != None and q > 0 and coordination_interval>0):
crowtangle_shares_df, highly_connected_graph, q = shared.coord_shares(clean_urls=True)
if crowtangle_shares_df.shape[0] > 0 and highly_connected_graph != None:
assert True
else:
assert False
Expand Down

0 comments on commit f0c5393

Please sign in to comment.