Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixes bug in participation network for loop #15

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

abigailgolden-noaa
Copy link
Collaborator

This commit fixes a bug that made some IOPAC ports have duplicate rows in the NetworkStats and NodeStats output files in some years. This turned out to be because the next port on the list for that year had no fish tickets in that year, so the g_netstats and g_nodestats temp dataframes weren't overwritten in the next iteration of the for loop and produced duplicate rows in the mystats3 and mystats4 objects. I fixed it by making sure that the temp dataframes were appended to mystats3 and mystats4 within the else statement for port-year combinations that produced a valid igraph object, not outside it.

… a duplicate set of network stats for the prior IOPAC port group when a port group has no fish tickets in a given year
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants