Skip to content

Commit

Permalink
removed no longer used functions
Browse files Browse the repository at this point in the history
  • Loading branch information
MM1nd committed Oct 1, 2017
1 parent a6224d1 commit 8d23354
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 99 deletions.
4 changes: 4 additions & 0 deletions worldengine/biome.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ class CoolDesert(BiomeGroup):


class Chaparral(BiomeGroup):
""" Chaparral is a shrubland or heathland plant community.
For details see http://en.wikipedia.org/wiki/Chaparral.
"""
pass


Expand Down
100 changes: 1 addition & 99 deletions worldengine/model/world.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import numpy

from worldengine.biome import biome_name_to_index, biome_index_to_name, Biome
from worldengine.biome import BorealForest, CoolTemperateForest, WarmTemperateForest, \
TropicalDryForestGroup, Tundra, Iceland, Jungle, Savanna, HotDesert, ColdParklands, \
Steppe, CoolDesert, Chaparral
from worldengine.biome import Iceland
import worldengine.protobuf.World_pb2 as Protobuf
from worldengine.step import Step
from worldengine.common import _equal
Expand Down Expand Up @@ -719,43 +717,6 @@ def biome_at(self, pos):
raise Exception('Not found')
return b

def is_boreal_forest(self, pos):
for subclass in BorealForest.__subclasses__():
if isinstance(self.biome_at(pos), subclass):
return True

return False


def is_temperate_forest(self, pos):
for subclass in CoolTemperateForest.__subclasses__():
if isinstance(self.biome_at(pos), subclass):
return True

return False

def is_warm_temperate_forest(self, pos):
for subclass in WarmTemperateForest.__subclasses__():
if isinstance(self.biome_at(pos), subclass):
return True

return False

def is_tropical_dry_forest(self, pos):
for subclass in TropicalDryForestGroup.__subclasses__():
if isinstance(self.biome_at(pos), subclass):
return True

return False


def is_tundra(self, pos):
for subclass in Tundra.__subclasses__():
if isinstance(self.biome_at(pos), subclass):
return True

return False


def is_iceland(self, pos):
for subclass in Iceland.__subclasses__():
Expand All @@ -765,65 +726,6 @@ def is_iceland(self, pos):
return False


def is_jungle(self, pos):
for subclass in Jungle.__subclasses__():
if isinstance(self.biome_at(pos), subclass):
return True

return False


def is_savanna(self, pos):
for subclass in Savanna.__subclasses__():
if isinstance(self.biome_at(pos), subclass):
return True

return False


def is_hot_desert(self, pos):
for subclass in HotDesert.__subclasses__():
if isinstance(self.biome_at(pos), subclass):
return True

return False


def is_cold_parklands(self, pos):
for subclass in ColdParklands.__subclasses__():
if isinstance(self.biome_at(pos), subclass):
return True

return False


def is_steppe(self, pos):
for subclass in Steppe.__subclasses__():
if isinstance(self.biome_at(pos), subclass):
return True

return False


def is_cool_desert(self, pos):
for subclass in CoolDesert.__subclasses__():
if isinstance(self.biome_at(pos), subclass):
return True

return False


def is_chaparral(self, pos):
""" Chaparral is a shrubland or heathland plant community.
For details see http://en.wikipedia.org/wiki/Chaparral.
"""
for subclass in Chaparral.__subclasses__():
if isinstance(self.biome_at(pos), subclass):
return True

return False

#
# Plates
#
Expand Down

0 comments on commit 8d23354

Please sign in to comment.