the code would only run when in every file the import would be
from network.network import Network
(double network, once for the folder, once for the network.py)
so something with the packaging doesnt work?
network.py - the basestring is never defined and it crashes, yet the code also crashes if either of the decision paths are taken.
if isinstance(fed_layer, basestring):
try:
fed_layer = self.layers[fed_layer]
except KeyError:
raise KeyError('Unknown layer name fed: %s' % fed_layer)
self.terminals.append(fed_layer)
the code would only run when in every file the import would be
from network.network import Network
(double network, once for the folder, once for the network.py)
so something with the packaging doesnt work?
network.py - the basestring is never defined and it crashes, yet the code also crashes if either of the decision paths are taken.
if isinstance(fed_layer, basestring):
try:
fed_layer = self.layers[fed_layer]
except KeyError:
raise KeyError('Unknown layer name fed: %s' % fed_layer)
self.terminals.append(fed_layer)