Skip to content

Typo in master #6

@JMGaljaard

Description

@JMGaljaard

In the Jupyter notebook 02_Gossip_Services, the cell Average time contains the following piece of code.

def show_avg_time(df):
    plt.figu

re(figsize=(10, 5))
ax = sns.boxplot(data=df, )
ax.set_title('Average time to arrival', fontsize= 20 )
ax.set_ylabel('Time (ms)', fontsize=12)
ax.set_xlabel('Peer id', fontsize=12)
plt.show()
show_avg_time(df)

This should be changed to the following:

def show_avg_time(df):
    plt.figure(figsize=(10, 5))
    ax = sns.boxplot(data=df, )
    ax.set_title('Average time to arrival', fontsize= 20 )
    ax.set_ylabel('Time (ms)', fontsize=12)
    ax.set_xlabel('Peer id', fontsize=12)
    plt.show()

show_avg_time(df)

It seems to be already updated (or not broken) in changes-to-text. However, that branch seems to be stale. The typo was introduced in e4301b6d33f119e3e1ff56ac67c7e659fcd62e92.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions