Failed to fetch fork details. Try again later.
-
unknown authored
v1.0.3 new function plot.OutputsModel() replaces plot_OutputsModel() (s3method and new chart with temperature for CemaNeige) #4490 #4198
f7afad4e
Forked from
HYCAR-Hydro / airGR
Source project has a limited visibility.
import io
def get_platform():
"""Gets platform name and checks if it is a raspberry pi
Returns
-------
str, bool
name of the platform on which the code is running, boolean that is true if the platform is a raspberry pi"""
platform = 'unknown'
on_pi = False
try:
with io.open('/sys/firmware/devicetree/base/model', 'r') as f:
platform = f.read().lower()
if 'raspberry pi' in platform:
on_pi = True
except FileNotFoundError:
pass
return platform, on_pi