Skip to content
Snippets Groups Projects
__main__.py 782 B
Newer Older
Arjan Draisma (wur)'s avatar
Arjan Draisma (wur) committed
"""Main module of your code

Author(s): Arjan Draisma, Mitja Zdouc

This code is covered under the GNU General Public License v3.0.
Please refer to the LICENSE located in the root of this repository.
"""

# imports are always at the top of your file
# they are sorted first by standard library
import sys

# then by third party
Draisma, Arjan's avatar
Draisma, Arjan committed
import numpy as np
Arjan Draisma (wur)'s avatar
Arjan Draisma (wur) committed

# then by your own code
from your_project_name.module1.funct_say_hello import say_hello
from your_project_name.module1.funct_another_file import another_function


if __name__ == "__main__":
    file_name = sys.argv[0]

    say_hello(file_name)

    another_function()
Draisma, Arjan's avatar
Draisma, Arjan committed

    small_array = np.zeros((2, 2))

    small_array[0, 0] = 1
    small_array[0, 1] = 2
    small_array[1, 0] = 3
    small_array[1, 1] = 4

    print(small_array)