Skip to content

Commit

Permalink
Convert OverlaySurvey.py to Python 3
Browse files Browse the repository at this point in the history
  • Loading branch information
Hidenori committed Jun 11, 2020
1 parent c4d29c3 commit 417f4a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/OverlaySurvey.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def run_survey(args):
peer_list.append(key)

if nx.is_empty(G):
print "Graph is empty!"
print("Graph is empty!")
sys.exit(0)

write_graph_stats(G, args.graphStats)
Expand Down
2 changes: 1 addition & 1 deletion scripts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ This folder is for storing any scripts that may be helpful for using stellar-cor
### Overlay survey
- Name - `OverlaySurvey.py`
- Description - A Python script that will walk the network using the Overlay survey mechanism to gather connection information. See [admin](./../docs/software/admin.md#overlay-topology-survey) for more information on the overlay survey. The survey will use the peers of the initial node to seed the survey.
- Usage - Ex. `python OverlaySurvey.py -gs gs.json survey -n http://127.0.0.1:11626 -d 50 -sr sr.json -gmlw gmlw.graphml` to run the survey or `python OverlaySurvey.py -gs gs.json analyze -gmla gmla.graphml` to analyze an existing graph.
- Usage - Ex. `python3 OverlaySurvey.py -gs gs.json survey -n http://127.0.0.1:11626 -d 50 -sr sr.json -gmlw gmlw.graphml` to run the survey or `python3 OverlaySurvey.py -gs gs.json analyze -gmla gmla.graphml` to analyze an existing graph.
- `-gs GRAPHSTATS`, `--graphStats GRAPHSTATS` - output file for graph stats
- sub command `survey` - run survey and analyze
- `-n NODE`, `--node NODE` - address of initial survey node
Expand Down

5 comments on commit 417f4a4

@latobarita
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from MonsieurNicolas
at hidenori-shinohara@417f4a4

@latobarita
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging hidenori-shinohara/stellar-core/overlay-survey-python2-to-python3 = 417f4a4 into auto

@latobarita
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hidenori-shinohara/stellar-core/overlay-survey-python2-to-python3 = 417f4a4 merged ok, testing candidate = cebd7fd

@latobarita
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@latobarita
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding master to auto = cebd7fd

Please sign in to comment.