"""A hello world.

Uses the main libraries to verify the environment installation.
"""

import sys

import numpy as np
import matplotlib.pyplot as plt
import pydensecrf.densecrf as crf
import SimpleITK as sitk
import sklearn.ensemble as sk_ensemble


def main():

    print('Welcome to MIALab 2017!')

    # --- scikit-learn
    clf = sk_ensemble.RandomForestClassifier(max_depth=2, random_state=0)

    # --- SimpleITK
    image = sitk.Image(256, 128, 64, sitk.sitkInt16)
    print('Image dimension:', image.GetDimension())
    print('Voxel value before setting:', image.GetPixel(0, 0, 0))
    image.SetPixel(0, 0, 0, 1)
    print('Voxel value after setting:', image.GetPixel(0, 0, 0))

    # --- numpy and matplotlib
    array = np.array([1, 23, 2, 4])
    plt.plot(array)
    plt.ylabel('Some meaningful numbers')
    plt.xlabel('The x-axis')
    plt.title('Wohoo')

    plt.show()

    # --- pydensecrf
    d = crf.DenseCRF(1000, 2)

    print('Everything seems to work fine!')


if __name__ == "__main__":
    """The program's entry point."""

    main()

@@ -97,27 +97,8 @@
 ys%0A%0A
-import numpy as np%0A
 impo
@@ -125,16 +125,35 @@
  as plt%0A
+import numpy as np%0A
 import p
@@ -293,9 +293,9 @@
  201
-7
+8
 !')%0A

change year to 2018