1010
1111class MetaVersion ():
1212 """ Versions """
13- def __init__ (self , python :str = None , biopython :str = None , mopepgen :str = None ):
13+ def __init__ (self , python :str = None , biopython :str = None , moPepGen :str = None ):
1414 """ constructor """
1515 self .python = python or '.' .join ([str (x ) for x in sys .version_info [:3 ]])
1616 self .biopython = biopython or Bio .__version__
17- self .mopepgen = mopepgen or __version__
17+ self .moPepGen = moPepGen or __version__
1818
1919 def __eq__ (self , other :MetaVersion ):
2020 """ equal to """
2121 return self .python == other .python and \
2222 self .biopython == other .biopython and \
23- self .mopepgen == other .mopepgen
23+ self .moPepGen == other .moPepGen
2424
2525 @staticmethod
2626 def get_semver (version :str ) -> Tuple [int , int , int ]:
@@ -37,20 +37,20 @@ def is_valid(self, version:MetaVersion) -> bool:
3737 """ Check if the given version is valid """
3838 return self .python == version .python and \
3939 self .biopython == version .biopython and \
40- self .is_valid_mpg_version (version .mopepgen )
40+ self .is_valid_mpg_version (version .moPepGen )
4141
4242 def __ne__ (self , other :MetaVersion ):
4343 """ not equal to """
4444 return not self == other
4545
4646 def __repr__ (self ) -> str :
4747 """ str representation """
48- return f"python={ self .python } , biopython={ self .biopython } , moPepGen={ self .mopepgen } "
48+ return f"python={ self .python } , biopython={ self .biopython } , moPepGen={ self .moPepGen } "
4949
5050 def jsonfy (self ):
5151 """ jsonfy """
5252 return {
5353 'python' : self .python ,
5454 'biopython' : self .biopython ,
55- 'mopepgen ' : self .mopepgen
55+ 'moPepGen ' : self .moPepGen
5656 }
0 commit comments