Skip to content

Commit 12678ae

Browse files
author
Timur Gilmullin
committed
#14: refactor environment.py
1 parent 32bbe5a commit 12678ae

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

pybrain/rl/environments/ode/environment.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__author__ = 'Thomas Rueckstiess, ruecksti@in.tum.de'
1+
# -*- coding: utf-8 -*-
22

33
import sys, time
44
from scipy import random, asarray
@@ -13,6 +13,9 @@
1313
import warnings
1414
from pybrain.tools.networking.udpconnection import UDPServer
1515

16+
__author__ = 'Thomas Rueckstiess, ruecksti@in.tum.de'
17+
18+
1619
class ODEEnvironment(Environment):
1720
"""
1821
Virtual simulation for rigid bodies. Uses ODE as a physics engine and OpenGL as graphics
@@ -210,7 +213,6 @@ def loadXODE(self, filename, reload=False):
210213
# now parse the additional parameters at the end of the xode file
211214
self.loadConfig(filename, reload)
212215

213-
214216
def loadConfig(self, filename, reload=False):
215217
# parameters are given in (our own brand of) config-file syntax
216218
self.config = ConfigGrabber(filename, sectionId="<!--odeenvironment parameters", delim=("<", ">"))
@@ -219,6 +221,7 @@ def loadConfig(self, filename, reload=False):
219221
self.passpairs = []
220222
for passpairstring in self.config.getValue("passpairs")[:]:
221223
self.passpairs.append(eval(passpairstring))
224+
222225
if self.verbosity > 0:
223226
print("-------[pass tuples]--------")
224227
print(self.passpairs)

0 commit comments

Comments
 (0)