grimadas / BlockchainEngineering

Learn to think like a blockchain designer by solving practical challenges

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Typo in master

JMGaljaard opened this issue · comments

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.