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

[KeepUpdating] Documenting code in scripts/make_figures.py #116

Open
4 tasks
wingedRuslan opened this issue Jun 4, 2019 · 0 comments
Open
4 tasks

[KeepUpdating] Documenting code in scripts/make_figures.py #116

wingedRuslan opened this issue Jun 4, 2019 · 0 comments
Assignees

Comments

@wingedRuslan
Copy link
Collaborator

wingedRuslan commented Jun 4, 2019

Documenting which parts do and do not work in scripts/make_figures.py

Mark when solved:

Output of running

image

  • 3) plot_network_measures - does not run
Error
TypeError                                 Traceback (most recent call last)
<ipython-input-22-3ab1aaca8322> in <module>()
----> 1 plot_network_measures(global_measures)

~/anaconda3/lib/python3.6/site-packages/scona/scripts/make_figures.py in plot_network_measures(measure_dict, ax, figure_name, y_max, y_min, color)
    181                 'C', 'C_rand',
    182                 'L', 'L_rand',
--> 183                 'sigma', 'sigma_rand']]
    184 
    185     if not ax:

TypeError: unhashable type: 'list'

Code referenced in the error
    df = df[['a', 'a_rand',
                'M', 'M_rand',
                'E', 'E_rand',
                'C', 'C_rand',
                'L', 'L_rand',
                'sigma', 'sigma_rand']]

My guess: the network measures calculation code was refactored, e.g. random values were removed, so the plotting function needs to be accordingly refactored.

The objective of 3 above-mentioned functions is displayed in issue #1

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

No branches or pull requests

1 participant