Commit 82f087fc authored by Javier Vegas-Regidor's avatar Javier Vegas-Regidor
Browse files

Cleaned code

parent 2511fed2
......@@ -119,6 +119,10 @@ class Basins(object):
}
self.Global = Basin('Global')
self.Atlantic = Basin('Atlantic_Ocean')
self.Pacific = Basin('Pacific_Ocean')
self.IndoPacific = Basin('Indo_Pacific_Ocean')
self.Indian = Basin('Indian_Ocean')
self._known_aliases = {}
self._add_alias('glob', self.Global)
self._add_alias(self.Global.name, self.Global)
......
......@@ -3,7 +3,6 @@ from earthdiagnostics.diagnostic import *
from earthdiagnostics.utils import Utils
from earthdiagnostics.modelingrealm import ModelingRealm
import numpy as np
import math
class Module(Diagnostic):
......
......@@ -2,7 +2,6 @@
from earthdiagnostics.diagnostic import *
from earthdiagnostics.utils import Utils
from earthdiagnostics.modelingrealm import ModelingRealm
import numpy as np
import math
......
......@@ -2,7 +2,7 @@
from earthdiagnostics.diagnostic import Diagnostic, DiagnosticOption, DiagnosticDomainOption, \
DiagnosticVariableListOption, DiagnosticIntOption
from earthdiagnostics.modelingrealm import ModelingRealm
from earthdiagnostics.utils import Utils, TempFile
from earthdiagnostics.utils import Utils
from earthdiagnostics.box import Box
......
......@@ -34,7 +34,7 @@ class ModelingRealm(object):
:param data_convention: Data convention in use
:type data_convention: str
:param frequency: variable's frequency
:type frequency: str
:type frequency: Frequency
:return: variable's table name
:rtype: str
"""
......
# coding=utf-8
from earthdiagnostics import cdftools
from earthdiagnostics.box import Box
from earthdiagnostics.diagnostic import Diagnostic, DiagnosticIntOption, DiagnosticVariableOption
from earthdiagnostics.utils import Utils, TempFile
......
# coding=utf-8
from unittest import TestCase
from earthdiagnostics.constants import Basins, Basin
from earthdiagnostics.box import Box
from earthdiagnostics.constants import Basin
class TestBasin(TestCase):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment