Source code for libs.src_py.mock

"""
Copyright (c) 2024 MPI-M, Clara Bayley

----- GoodSciProjTemplate -----
File: mock.py
Project: src_py
Created Date: Tuesday 27th February 2024
Author: Clara Bayley (CB)
Additional Contributors:
-----
Last Modified: Tuesday 27th February 2024
Modified By: CB
-----
License: BSD 3-Clause "New" or "Revised" License
https://opensource.org/licenses/BSD-3-Clause
-----
File Description:
source file for mock python module
"""

import numpy as np


[docs] def hello_world(): """ Prints 'Hello World!'. This function doesn't take any parameters. """ print("Hello World!")
[docs] def area_circle(radius): """ Calculate the area of a circle. Parameters: radius (float): The radius of the circle. Returns: float: The area of the circle. Examples: >>> area_circle(4.0) 50.26548245743669... """ return np.pi * radius * radius