Commit 4c754847 authored by christian.foerster's avatar christian.foerster

added some things in jupyter notebook

parent 463d34d5
This diff is collapsed.
# Some class defenition
class Calculator():
def __init__(self,num):
self.num = num
return
def square(self):
return self.num**2
def divide(self, divisor):
self.count = -1
num = self.num
while num > 0 :
self.count += 1
num -= divisor
return self.count
def betafunc(self,*args):
self.args = args
return sum(self.args)
# Some example code that will bis executed if file is used as __main__
if __name__ == "__main__":
print("This is a simple example")
variable1 = 1
variable2 = "1"
print("Try one plus one.")
two = variable1 + variable2
......@@ -6,8 +6,6 @@
import unittest
import datetime
from .context import example
class TestUrbanDrainageTS(unittest.TestCase):
""" base test class. """
......@@ -26,7 +24,7 @@ class TestUrbanDrainageTS(unittest.TestCase):
value_value = [6.789, 4.567, 9.09, 6.70, 8.70, 3.4, 2.3, 4.56, 2.78]
self.test_case = example.UrbanDrainageTS(time_time, value_value)
self.test_case = UrbanDrainageTS(time_time, value_value)
# def tearDown(self):
# """tear down"""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment