Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow darwin as platform #87

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions IBF-Typhoon-model/src/typhoonmodel/utility_fun/forecast.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,11 @@

from typhoonmodel.utility_fun.dynamicDataDb import DatabaseManager

if platform == "linux" or platform == "linux2": #check if running on linux or windows os
from typhoonmodel.utility_fun import Rainfall_data
elif platform == "win32":
#check if running on windows or linux/macOS
if platform == "win32":
from typhoonmodel.utility_fun import Rainfall_data_window as Rainfall_data
else:
from typhoonmodel.utility_fun import Rainfall_data
decoder = Decoder()
initialize.setup_logger()
logger = logging.getLogger(__name__)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,12 @@
from typhoonmodel.utility_fun import track_data_clean, Check_for_active_typhoon, Sendemail, \
ucl_data, plot_intensity, initialize

if platform == "linux" or platform == "linux2": #check if running on linux or windows os
from typhoonmodel.utility_fun import Rainfall_data
elif platform == "win32":
#check if running on windows or linux/macOS
if platform == "win32":
from typhoonmodel.utility_fun import Rainfall_data_window as Rainfall_data
else:
from typhoonmodel.utility_fun import Rainfall_data

decoder = Decoder()
initialize.setup_logger()
logger = logging.getLogger(__name__)
Expand All @@ -52,6 +54,7 @@ def __init__(self,main_path, remote_dir,typhoonname, countryCodeISO3, admin_leve
self.ECMWF_MAX_TRIES = 3
self.ECMWF_SLEEP = 30 # s
self.main_path=main_path

if not typhoonname:
Activetyphoon = Check_for_active_typhoon.check_active_typhoon()
if not Activetyphoon:
Expand Down