Last updated on Feb 20, 2026.

2. Building an observation network#

import netsse
===============================
Registration Request for NetSSE
To help us improve and better understand our user community, we kindly ask all users to register to use NetSSE. Registration is free.
If you have not already registered, please do so here:
https://forms.office.com/Pages/ResponsePage.aspx?id=I_FR8s7JjkSSdzS7KFkR2Xd1K-8FtOJFrL9QLVM8cJZUQ1hBS0VTN1E0OVU4QThTOTQ1WDA0TFg4Si4u
===============================
vessel1 = netsse.base.Platform('Containership1')
vessel2 = netsse.base.Platform('RoRo1')
vessel3 = netsse.base.Platform()
print(vessel3.name)
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
Cell In[2], line 1
----> 1 vessel1 = netsse.base.Platform('Containership1')
      2 vessel2 = netsse.base.Platform('RoRo1')
      3 vessel3 = netsse.base.Platform()

AttributeError: module 'netsse' has no attribute 'base'
network = netsse.base.Network(name='TestNetwork',nature='test',platforms=[vessel1,vessel2])
print([(platform.name,platform.owner) for platform in network.platforms])
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
Cell In[3], line 1
----> 1 network = netsse.base.Network(name='TestNetwork',nature='test',platforms=[vessel1,vessel2])
      2 print([(platform.name,platform.owner) for platform in network.platforms])

AttributeError: module 'netsse' has no attribute 'base'
network.add_platform(vessel3)
print([(platform.name,platform.owner) for platform in network.platforms])
---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
Cell In[4], line 1
----> 1 network.add_platform(vessel3)
      2 print([(platform.name,platform.owner) for platform in network.platforms])

NameError: name 'network' is not defined
vessel2.owner = 'SomeCompany'
network.add_platform(vessel2)
print([(platform.name,platform.owner) for platform in network.platforms])
---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
Cell In[5], line 1
----> 1 vessel2.owner = 'SomeCompany'
      2 network.add_platform(vessel2)
      3 print([(platform.name,platform.owner) for platform in network.platforms])

NameError: name 'vessel2' is not defined
network.remove_platform(vessel3,'Containership1','NonExistentShip')
print([(platform.name,platform.owner) for platform in network.platforms])
---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
Cell In[6], line 1
----> 1 network.remove_platform(vessel3,'Containership1','NonExistentShip')
      2 print([(platform.name,platform.owner) for platform in network.platforms])

NameError: name 'network' is not defined