Skip to content

Commit

Permalink
remove inheritance to object in classes
Browse files Browse the repository at this point in the history
  • Loading branch information
pradal committed Dec 3, 2024
1 parent 739e625 commit fbb9a08
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/openalea/mtg/interface/mtg.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
This module provides multiscale tree concepts to form MTG interface.
"""

class MultiscaleTreeConcept(object):
class MultiscaleTreeConcept():
"""
Multiscale Tree Graph definition.
"""
Expand Down
2 changes: 1 addition & 1 deletion src/openalea/mtg/mtg.py
Original file line number Diff line number Diff line change
Expand Up @@ -2753,7 +2753,7 @@ def new_f(self, *args, **kwds):
new_f.__doc__ = mtg_f.__doc__
return new_f

class _ProxyNode(object):
class _ProxyNode():
def __init__(self, g, vid):
self.__dict__['_g'] = g
self.__dict__['_vid'] = vid
Expand Down
4 changes: 2 additions & 2 deletions src/openalea/mtg/plantframe/dresser.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
import os
from openalea.plantgl.scenegraph import AmapSymbol

class DressingData(object):
class DressingData():
""" Data and default geometric parameters.
The dressing data are the default data that are used to define
Expand Down Expand Up @@ -205,7 +205,7 @@ def dressing_data(file):

###############################################################
## Define the parser which is just a dict from keyword to a function
class Reader(object):
class Reader():
def __init__(self, dresser):
self.dresser = dresser

Expand Down
6 changes: 3 additions & 3 deletions src/openalea/mtg/plantframe/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@



class Frame(object):
class Frame():
""" Frame representing geometric variables of each topologic elements.
A frame is used to have a common representation of the geometric information
Expand Down Expand Up @@ -137,15 +137,15 @@ def get_top_radius(self):
top_radius = property(get_top_radius, set_top_radius, 'top_radius of the Frame')


class AxialFrames(object):
class AxialFrames():
''' Solve continuity constraints on an axis, i.e. a set of frames.
'''
pass



class PlantFrame(object):
class PlantFrame():
''' Engine to compute the geometry of a plant based on
its topological description and parameters.
'''
Expand Down
2 changes: 1 addition & 1 deletion src/openalea/mtg/plantframe/plantframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
error = True
epsilon = 1e-5

class PlantFrame(object):
class PlantFrame():
''' Engine to compute the geometry of a plant based on
its topological description and parameters.
'''
Expand Down
4 changes: 2 additions & 2 deletions src/openalea/mtg/rewriting.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

#### Module declaration #######

class Module(object):
class Module():
def __init__(self, name, scale, **parameters):
self.name = name
self.scale = scale
Expand Down Expand Up @@ -299,7 +299,7 @@ def interpretation(f):

eForward, eBackward = 1,0

class MTGLsystem(object):
class MTGLsystem():
rules = dict()

def __init__(self):
Expand Down
2 changes: 1 addition & 1 deletion src/openalea/mtg/traversal.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ def traverse_tree(tree, vtx_id, visitor):
yield visitor.post_order(vtx_id)


class Visitor(object):
class Visitor():
''' Used during a tree traversal. '''

def pre_order(self, vtx_id):
Expand Down
2 changes: 1 addition & 1 deletion src/openalea/mtg/tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class InvalidVertex (GraphError, KeyError) :
exception raised when a wrong vertex id is provided
"""

class Tree(object):
class Tree():
'''
Implementation of a rooted :class:`Tree`,
with methods to add and remove vertex.
Expand Down
2 changes: 1 addition & 1 deletion src/openalea/mtg/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
minor = 2
"""(int) Version minor component."""

post = 0
post = 1
"""(int) Version post or bugfix component."""

__version__ = ".".join([str(s) for s in (major, minor, post)])
Expand Down

0 comments on commit fbb9a08

Please sign in to comment.