body_hash stringlengths 64 64 | body stringlengths 23 109k | docstring stringlengths 1 57k | path stringlengths 4 198 | name stringlengths 1 115 | repository_name stringlengths 7 111 | repository_stars float64 0 191k | lang stringclasses 1
value | body_without_docstring stringlengths 14 108k | unified stringlengths 45 133k |
|---|---|---|---|---|---|---|---|---|---|
21e2180e6bf64fc4d23ab83bb27893bb26a5b31ec30c6e4e492b97853d0a395b | def actionRefreshWeather(self, values_dict):
'\n Refresh all weather as a result of an action call\n\n The actionRefreshWeather() method calls the refreshWeatherData() method to\n request a complete refresh of all weather data (Actions.XML call.)\n\n -----\n\n :param indigo.Dict v... | Refresh all weather as a result of an action call
The actionRefreshWeather() method calls the refreshWeatherData() method to
request a complete refresh of all weather data (Actions.XML call.)
-----
:param indigo.Dict values_dict: | Wunderground.indigoPlugin/Contents/Server Plugin/plugin.py | actionRefreshWeather | DaveL17/WUnderground7 | 0 | python | def actionRefreshWeather(self, values_dict):
'\n Refresh all weather as a result of an action call\n\n The actionRefreshWeather() method calls the refreshWeatherData() method to\n request a complete refresh of all weather data (Actions.XML call.)\n\n -----\n\n :param indigo.Dict v... | def actionRefreshWeather(self, values_dict):
'\n Refresh all weather as a result of an action call\n\n The actionRefreshWeather() method calls the refreshWeatherData() method to\n request a complete refresh of all weather data (Actions.XML call.)\n\n -----\n\n :param indigo.Dict v... |
a1b853a5065be179970bdac396eb0ac3cfc474dba13046bf448d3e5aa7d8d4b1 | def callCount(self):
"\n Maintain count of calls made to the WU API\n\n Maintains a count of daily calls to Weather Underground to help ensure that the\n plugin doesn't go over a user-defined limit. The limit is set within the plugin\n config dialog.\n\n -----\n "
calls... | Maintain count of calls made to the WU API
Maintains a count of daily calls to Weather Underground to help ensure that the
plugin doesn't go over a user-defined limit. The limit is set within the plugin
config dialog.
----- | Wunderground.indigoPlugin/Contents/Server Plugin/plugin.py | callCount | DaveL17/WUnderground7 | 0 | python | def callCount(self):
"\n Maintain count of calls made to the WU API\n\n Maintains a count of daily calls to Weather Underground to help ensure that the\n plugin doesn't go over a user-defined limit. The limit is set within the plugin\n config dialog.\n\n -----\n "
calls... | def callCount(self):
"\n Maintain count of calls made to the WU API\n\n Maintains a count of daily calls to Weather Underground to help ensure that the\n plugin doesn't go over a user-defined limit. The limit is set within the plugin\n config dialog.\n\n -----\n "
calls... |
6c669e00bf970031978991f196a9f79d0c7c00eb2a972d4d8c21e59befec565f | def callDay(self):
'\n Track day for call counter reset and forecast email\n\n Manages the day for the purposes of maintaining the call counter and the flag\n for the daily forecast email message.\n\n -----\n '
call_day = self.pluginPrefs.get('dailyCallDay', '1970-01-01')
... | Track day for call counter reset and forecast email
Manages the day for the purposes of maintaining the call counter and the flag
for the daily forecast email message.
----- | Wunderground.indigoPlugin/Contents/Server Plugin/plugin.py | callDay | DaveL17/WUnderground7 | 0 | python | def callDay(self):
'\n Track day for call counter reset and forecast email\n\n Manages the day for the purposes of maintaining the call counter and the flag\n for the daily forecast email message.\n\n -----\n '
call_day = self.pluginPrefs.get('dailyCallDay', '1970-01-01')
... | def callDay(self):
'\n Track day for call counter reset and forecast email\n\n Manages the day for the purposes of maintaining the call counter and the flag\n for the daily forecast email message.\n\n -----\n '
call_day = self.pluginPrefs.get('dailyCallDay', '1970-01-01')
... |
c0af7df0b030b027beb16408b6b196033ebda449ab17163184eba102189fc354 | def commsKillAll(self):
'\n Disable all plugin devices\n\n commsKillAll() sets the enabled status of all plugin devices to false.\n\n -----\n '
for dev in indigo.devices.itervalues('self'):
try:
indigo.device.enable(dev, value=False)
except Exception:
... | Disable all plugin devices
commsKillAll() sets the enabled status of all plugin devices to false.
----- | Wunderground.indigoPlugin/Contents/Server Plugin/plugin.py | commsKillAll | DaveL17/WUnderground7 | 0 | python | def commsKillAll(self):
'\n Disable all plugin devices\n\n commsKillAll() sets the enabled status of all plugin devices to false.\n\n -----\n '
for dev in indigo.devices.itervalues('self'):
try:
indigo.device.enable(dev, value=False)
except Exception:
... | def commsKillAll(self):
'\n Disable all plugin devices\n\n commsKillAll() sets the enabled status of all plugin devices to false.\n\n -----\n '
for dev in indigo.devices.itervalues('self'):
try:
indigo.device.enable(dev, value=False)
except Exception:
... |
51da6d3f784f2327b5c983860fc4a9709e026ca0264e2a068f697e1f315b0f53 | def commsUnkillAll(self):
'\n Enable all plugin devices\n\n commsUnkillAll() sets the enabled status of all plugin devices to true.\n\n -----\n '
for dev in indigo.devices.itervalues('self'):
try:
indigo.device.enable(dev, value=True)
except Exception:
... | Enable all plugin devices
commsUnkillAll() sets the enabled status of all plugin devices to true.
----- | Wunderground.indigoPlugin/Contents/Server Plugin/plugin.py | commsUnkillAll | DaveL17/WUnderground7 | 0 | python | def commsUnkillAll(self):
'\n Enable all plugin devices\n\n commsUnkillAll() sets the enabled status of all plugin devices to true.\n\n -----\n '
for dev in indigo.devices.itervalues('self'):
try:
indigo.device.enable(dev, value=True)
except Exception:
... | def commsUnkillAll(self):
'\n Enable all plugin devices\n\n commsUnkillAll() sets the enabled status of all plugin devices to true.\n\n -----\n '
for dev in indigo.devices.itervalues('self'):
try:
indigo.device.enable(dev, value=True)
except Exception:
... |
9f97d02a6027b23c0d6928697393eedaef0dbba32280259998e0ada52e93cf68 | def dumpTheJSON(self):
'\n Dump copy of weather JSON to file\n\n The dumpTheJSON() method reaches out to Weather Underground, grabs a copy of\n the configured JSON data and saves it out to a file placed in the Indigo Logs\n folder. If a weather data log exists for that day, it will be re... | Dump copy of weather JSON to file
The dumpTheJSON() method reaches out to Weather Underground, grabs a copy of
the configured JSON data and saves it out to a file placed in the Indigo Logs
folder. If a weather data log exists for that day, it will be replaced. With a
new day, a new log file will be created (file name ... | Wunderground.indigoPlugin/Contents/Server Plugin/plugin.py | dumpTheJSON | DaveL17/WUnderground7 | 0 | python | def dumpTheJSON(self):
'\n Dump copy of weather JSON to file\n\n The dumpTheJSON() method reaches out to Weather Underground, grabs a copy of\n the configured JSON data and saves it out to a file placed in the Indigo Logs\n folder. If a weather data log exists for that day, it will be re... | def dumpTheJSON(self):
'\n Dump copy of weather JSON to file\n\n The dumpTheJSON() method reaches out to Weather Underground, grabs a copy of\n the configured JSON data and saves it out to a file placed in the Indigo Logs\n folder. If a weather data log exists for that day, it will be re... |
ad85f4a38c7ee81503f4a94dc6a54799840116917b068d8c1cbe7b7db39e0c76 | def emailForecast(self, dev):
'\n Email forecast information\n\n The emailForecast() method will construct and send a summary of select weather\n information to the user based on the email address specified for plugin update\n notifications.\n\n -----\n\n :param indigo.Devi... | Email forecast information
The emailForecast() method will construct and send a summary of select weather
information to the user based on the email address specified for plugin update
notifications.
-----
:param indigo.Device dev: | Wunderground.indigoPlugin/Contents/Server Plugin/plugin.py | emailForecast | DaveL17/WUnderground7 | 0 | python | def emailForecast(self, dev):
'\n Email forecast information\n\n The emailForecast() method will construct and send a summary of select weather\n information to the user based on the email address specified for plugin update\n notifications.\n\n -----\n\n :param indigo.Devi... | def emailForecast(self, dev):
'\n Email forecast information\n\n The emailForecast() method will construct and send a summary of select weather\n information to the user based on the email address specified for plugin update\n notifications.\n\n -----\n\n :param indigo.Devi... |
0001036b7d18c6bb141ebf538532d828d95a2ec8b492d88f2793d97e347e73fd | def fixCorruptedData(self, state_name, val):
'\n Format corrupted and missing data\n\n Sometimes WU receives corrupted data from personal weather stations. Could be\n zero, positive value or "--" or "-999.0" or "-9999.0". This method tries to\n "fix" these values for proper display.\n\n ... | Format corrupted and missing data
Sometimes WU receives corrupted data from personal weather stations. Could be
zero, positive value or "--" or "-999.0" or "-9999.0". This method tries to
"fix" these values for proper display.
-----
:param str state_name:
:param str or float val: | Wunderground.indigoPlugin/Contents/Server Plugin/plugin.py | fixCorruptedData | DaveL17/WUnderground7 | 0 | python | def fixCorruptedData(self, state_name, val):
'\n Format corrupted and missing data\n\n Sometimes WU receives corrupted data from personal weather stations. Could be\n zero, positive value or "--" or "-999.0" or "-9999.0". This method tries to\n "fix" these values for proper display.\n\n ... | def fixCorruptedData(self, state_name, val):
'\n Format corrupted and missing data\n\n Sometimes WU receives corrupted data from personal weather stations. Could be\n zero, positive value or "--" or "-999.0" or "-9999.0". This method tries to\n "fix" these values for proper display.\n\n ... |
89451f98f409f7d86b562c4c590cfe5f8a3e9796941b53cae8f1510a4f05d59b | def floatEverything(self, state_name, val):
"\n Take value and return float\n\n This doesn't actually float everything. Select values are sent here to see if\n they float. If they do, a float is returned. Otherwise, a Unicode string is\n returned. This is necessary because Weather Underg... | Take value and return float
This doesn't actually float everything. Select values are sent here to see if
they float. If they do, a float is returned. Otherwise, a Unicode string is
returned. This is necessary because Weather Underground will send values that
won't float even when they're supposed to.
-----
:param s... | Wunderground.indigoPlugin/Contents/Server Plugin/plugin.py | floatEverything | DaveL17/WUnderground7 | 0 | python | def floatEverything(self, state_name, val):
"\n Take value and return float\n\n This doesn't actually float everything. Select values are sent here to see if\n they float. If they do, a float is returned. Otherwise, a Unicode string is\n returned. This is necessary because Weather Underg... | def floatEverything(self, state_name, val):
"\n Take value and return float\n\n This doesn't actually float everything. Select values are sent here to see if\n they float. If they do, a float is returned. Otherwise, a Unicode string is\n returned. This is necessary because Weather Underg... |
ea446a44ff2a2fde363c6392057aa30356e18dcc52c428090856b5a9877ea1e1 | def generatorTime(self, filter='', values_dict=None, type_id='', target_id=0):
'\n List of hours generator\n\n Creates a list of times for use in setting the desired time for weather\n forecast emails to be sent.\n\n -----\n :param str filter:\n :param indigo.Dict values_di... | List of hours generator
Creates a list of times for use in setting the desired time for weather
forecast emails to be sent.
-----
:param str filter:
:param indigo.Dict values_dict:
:param str type_id:
:param int target_id: | Wunderground.indigoPlugin/Contents/Server Plugin/plugin.py | generatorTime | DaveL17/WUnderground7 | 0 | python | def generatorTime(self, filter=, values_dict=None, type_id=, target_id=0):
'\n List of hours generator\n\n Creates a list of times for use in setting the desired time for weather\n forecast emails to be sent.\n\n -----\n :param str filter:\n :param indigo.Dict values_dict:\... | def generatorTime(self, filter=, values_dict=None, type_id=, target_id=0):
'\n List of hours generator\n\n Creates a list of times for use in setting the desired time for weather\n forecast emails to be sent.\n\n -----\n :param str filter:\n :param indigo.Dict values_dict:\... |
f8aed1291301474a150806f568edd4e229fe0b3e63b7aa3e7bc4bdac22246940 | def getLatLong(self, values_dict, type_id, dev_id):
'\n Get server latitude and longitude\n\n Called when a device configuration dialog is opened. Returns the current\n latitude and longitude from the Indigo server.\n\n -----\n\n :param indigo.Dict values_dict:\n :param str... | Get server latitude and longitude
Called when a device configuration dialog is opened. Returns the current
latitude and longitude from the Indigo server.
-----
:param indigo.Dict values_dict:
:param str type_id:
:param int dev_id: | Wunderground.indigoPlugin/Contents/Server Plugin/plugin.py | getLatLong | DaveL17/WUnderground7 | 0 | python | def getLatLong(self, values_dict, type_id, dev_id):
'\n Get server latitude and longitude\n\n Called when a device configuration dialog is opened. Returns the current\n latitude and longitude from the Indigo server.\n\n -----\n\n :param indigo.Dict values_dict:\n :param str... | def getLatLong(self, values_dict, type_id, dev_id):
'\n Get server latitude and longitude\n\n Called when a device configuration dialog is opened. Returns the current\n latitude and longitude from the Indigo server.\n\n -----\n\n :param indigo.Dict values_dict:\n :param str... |
c5d2fbf177c5586ef6a0695809e2bf529accf69080051dee3e91d23e6d2c58c7 | def getSatelliteImage(self, dev):
'\n Download satellite image and save to file\n\n The getSatelliteImage() method will download a file from a user- specified\n location and save it to a user-specified folder on the local server. This\n method is used by the Satellite Image Downloader de... | Download satellite image and save to file
The getSatelliteImage() method will download a file from a user- specified
location and save it to a user-specified folder on the local server. This
method is used by the Satellite Image Downloader device type.
-----
:param indigo.Device dev: | Wunderground.indigoPlugin/Contents/Server Plugin/plugin.py | getSatelliteImage | DaveL17/WUnderground7 | 0 | python | def getSatelliteImage(self, dev):
'\n Download satellite image and save to file\n\n The getSatelliteImage() method will download a file from a user- specified\n location and save it to a user-specified folder on the local server. This\n method is used by the Satellite Image Downloader de... | def getSatelliteImage(self, dev):
'\n Download satellite image and save to file\n\n The getSatelliteImage() method will download a file from a user- specified\n location and save it to a user-specified folder on the local server. This\n method is used by the Satellite Image Downloader de... |
61da86a50d03ca7dec67ca9b50423e78a69ed7a83e4252984757e8654146cde3 | def getWUradar(self, dev):
'\n Get radar image through WU API\n\n The getWUradar() method will download a satellite image from Weather\n Underground. The construction of the image is based upon user preferences\n defined in the WUnderground Radar device type.\n\n -----\n\n ... | Get radar image through WU API
The getWUradar() method will download a satellite image from Weather
Underground. The construction of the image is based upon user preferences
defined in the WUnderground Radar device type.
-----
:param indigo.Device dev: | Wunderground.indigoPlugin/Contents/Server Plugin/plugin.py | getWUradar | DaveL17/WUnderground7 | 0 | python | def getWUradar(self, dev):
'\n Get radar image through WU API\n\n The getWUradar() method will download a satellite image from Weather\n Underground. The construction of the image is based upon user preferences\n defined in the WUnderground Radar device type.\n\n -----\n\n ... | def getWUradar(self, dev):
'\n Get radar image through WU API\n\n The getWUradar() method will download a satellite image from Weather\n Underground. The construction of the image is based upon user preferences\n defined in the WUnderground Radar device type.\n\n -----\n\n ... |
466164a2fbb7de35490423628dbddc6360c080bdfb8316a075296d7c1c790699 | def getWeatherData(self, dev):
'\n Reach out to Weather Underground and download data for this location\n\n Grab the JSON return for the device. A separate call must be made for each\n weather device because the data are location specific.\n\n -----\n\n :param indigo.Device dev:\n... | Reach out to Weather Underground and download data for this location
Grab the JSON return for the device. A separate call must be made for each
weather device because the data are location specific.
-----
:param indigo.Device dev: | Wunderground.indigoPlugin/Contents/Server Plugin/plugin.py | getWeatherData | DaveL17/WUnderground7 | 0 | python | def getWeatherData(self, dev):
'\n Reach out to Weather Underground and download data for this location\n\n Grab the JSON return for the device. A separate call must be made for each\n weather device because the data are location specific.\n\n -----\n\n :param indigo.Device dev:\n... | def getWeatherData(self, dev):
'\n Reach out to Weather Underground and download data for this location\n\n Grab the JSON return for the device. A separate call must be made for each\n weather device because the data are location specific.\n\n -----\n\n :param indigo.Device dev:\n... |
ac82605587c441a3a93a25787f744b281e471cbc3e990b4f46cbbe734d3367fb | def listOfDevices(self, filter, values_dict, target_id, trigger_id):
'\n Generate list of devices for offline trigger\n\n listOfDevices returns a list of plugin devices limited to weather\n devices only (not forecast devices, etc.) when the Weather Location Offline\n trigger is fired.\n\... | Generate list of devices for offline trigger
listOfDevices returns a list of plugin devices limited to weather
devices only (not forecast devices, etc.) when the Weather Location Offline
trigger is fired.
-----
:param str filter:
:param indigo.Dict values_dict:
:param str target_id:
:param int trigger_id: | Wunderground.indigoPlugin/Contents/Server Plugin/plugin.py | listOfDevices | DaveL17/WUnderground7 | 0 | python | def listOfDevices(self, filter, values_dict, target_id, trigger_id):
'\n Generate list of devices for offline trigger\n\n listOfDevices returns a list of plugin devices limited to weather\n devices only (not forecast devices, etc.) when the Weather Location Offline\n trigger is fired.\n\... | def listOfDevices(self, filter, values_dict, target_id, trigger_id):
'\n Generate list of devices for offline trigger\n\n listOfDevices returns a list of plugin devices limited to weather\n devices only (not forecast devices, etc.) when the Weather Location Offline\n trigger is fired.\n\... |
56bcd9cc9398c42bcb232e0a6f4081e660907db8656bb13ce0aabe49678ced33 | def listOfWeatherDevices(self, filter, values_dict, target_id, trigger_id):
'\n Generate list of devices for severe weather alert trigger\n\n listOfDevices returns a list of plugin devices limited to weather devices only\n (not forecast devices, etc.) when severe weather alert trigger is fired.... | Generate list of devices for severe weather alert trigger
listOfDevices returns a list of plugin devices limited to weather devices only
(not forecast devices, etc.) when severe weather alert trigger is fired.
-----
:param str filter:
:param indigo.Dict values_dict:
:param str target_id:
:param int trigger_id: | Wunderground.indigoPlugin/Contents/Server Plugin/plugin.py | listOfWeatherDevices | DaveL17/WUnderground7 | 0 | python | def listOfWeatherDevices(self, filter, values_dict, target_id, trigger_id):
'\n Generate list of devices for severe weather alert trigger\n\n listOfDevices returns a list of plugin devices limited to weather devices only\n (not forecast devices, etc.) when severe weather alert trigger is fired.... | def listOfWeatherDevices(self, filter, values_dict, target_id, trigger_id):
'\n Generate list of devices for severe weather alert trigger\n\n listOfDevices returns a list of plugin devices limited to weather devices only\n (not forecast devices, etc.) when severe weather alert trigger is fired.... |
3bcb85dfc303979a41c903224569c1305aead53f4803d757041f2b9ba9d259c4 | def nestedLookup(self, obj, keys, default=u'Not available'):
"\n Do a nested lookup of the WU JSON\n\n The nestedLookup() method is used to extract the relevant data from the Weather\n Underground JSON return. The JSON is known to be inconsistent in the form of\n sometimes missing keys. ... | Do a nested lookup of the WU JSON
The nestedLookup() method is used to extract the relevant data from the Weather
Underground JSON return. The JSON is known to be inconsistent in the form of
sometimes missing keys. This method allows for a default value to be used in
instances where a key is missing. The method call c... | Wunderground.indigoPlugin/Contents/Server Plugin/plugin.py | nestedLookup | DaveL17/WUnderground7 | 0 | python | def nestedLookup(self, obj, keys, default=u'Not available'):
"\n Do a nested lookup of the WU JSON\n\n The nestedLookup() method is used to extract the relevant data from the Weather\n Underground JSON return. The JSON is known to be inconsistent in the form of\n sometimes missing keys. ... | def nestedLookup(self, obj, keys, default=u'Not available'):
"\n Do a nested lookup of the WU JSON\n\n The nestedLookup() method is used to extract the relevant data from the Weather\n Underground JSON return. The JSON is known to be inconsistent in the form of\n sometimes missing keys. ... |
a6f3cffc8d950114d678fa4e778eeeb291319a37eb5e01dff5562f5187cbeb79 | def parseAlmanacData(self, dev):
'\n Parse almanac data to devices\n\n The parseAlmanacData() method takes selected almanac data and parses it\n to device states.\n\n -----\n\n :param indigo.Device dev:\n '
try:
almanac_states_list = []
location = dev.pl... | Parse almanac data to devices
The parseAlmanacData() method takes selected almanac data and parses it
to device states.
-----
:param indigo.Device dev: | Wunderground.indigoPlugin/Contents/Server Plugin/plugin.py | parseAlmanacData | DaveL17/WUnderground7 | 0 | python | def parseAlmanacData(self, dev):
'\n Parse almanac data to devices\n\n The parseAlmanacData() method takes selected almanac data and parses it\n to device states.\n\n -----\n\n :param indigo.Device dev:\n '
try:
almanac_states_list = []
location = dev.pl... | def parseAlmanacData(self, dev):
'\n Parse almanac data to devices\n\n The parseAlmanacData() method takes selected almanac data and parses it\n to device states.\n\n -----\n\n :param indigo.Device dev:\n '
try:
almanac_states_list = []
location = dev.pl... |
8ee83792ae4107607c1b21dc8cf385905515a57a43d111bdf1b02284aae4e8b2 | def parseAlertsData(self, dev):
'\n Parse alerts data to devices\n\n The parseAlertsData() method takes weather alert data and parses it to device\n states.\n\n -----\n\n :param indigo.Device dev:\n '
attribution = u''
alerts_states_list = []
alerts_suppressed =... | Parse alerts data to devices
The parseAlertsData() method takes weather alert data and parses it to device
states.
-----
:param indigo.Device dev: | Wunderground.indigoPlugin/Contents/Server Plugin/plugin.py | parseAlertsData | DaveL17/WUnderground7 | 0 | python | def parseAlertsData(self, dev):
'\n Parse alerts data to devices\n\n The parseAlertsData() method takes weather alert data and parses it to device\n states.\n\n -----\n\n :param indigo.Device dev:\n '
attribution = u
alerts_states_list = []
alerts_suppressed = d... | def parseAlertsData(self, dev):
'\n Parse alerts data to devices\n\n The parseAlertsData() method takes weather alert data and parses it to device\n states.\n\n -----\n\n :param indigo.Device dev:\n '
attribution = u
alerts_states_list = []
alerts_suppressed = d... |
3c1272014e20658d41f75e2fa190d59a192e807b85278740a59b7e662b93c034 | def parseAstronomyData(self, dev):
'\n Parse astronomy data to devices\n\n The parseAstronomyData() method takes astronomy data and parses it to device\n states::\n\n Age of Moon (Integer: 0 - 31, units: days)\n Current Time Hour (Integer: 0 - 23, units: hours)\n ... | Parse astronomy data to devices
The parseAstronomyData() method takes astronomy data and parses it to device
states::
Age of Moon (Integer: 0 - 31, units: days)
Current Time Hour (Integer: 0 - 23, units: hours)
Current Time Minute (Integer: 0 - 59, units: minutes)
Hemisphere (String: North, South)
... | Wunderground.indigoPlugin/Contents/Server Plugin/plugin.py | parseAstronomyData | DaveL17/WUnderground7 | 0 | python | def parseAstronomyData(self, dev):
'\n Parse astronomy data to devices\n\n The parseAstronomyData() method takes astronomy data and parses it to device\n states::\n\n Age of Moon (Integer: 0 - 31, units: days)\n Current Time Hour (Integer: 0 - 23, units: hours)\n ... | def parseAstronomyData(self, dev):
'\n Parse astronomy data to devices\n\n The parseAstronomyData() method takes astronomy data and parses it to device\n states::\n\n Age of Moon (Integer: 0 - 31, units: days)\n Current Time Hour (Integer: 0 - 23, units: hours)\n ... |
738c3d5d76802f8fabb209d9cd25142f53cbe8093a29190651ac6ea7a5266123 | def parseForecastData(self, dev):
"\n Parse forecast data to devices\n\n The parseForecastData() method takes weather forecast data and parses it to\n device states. (Note that this is only for the weather device and not for the\n hourly or 10 day forecast devices which have their own me... | Parse forecast data to devices
The parseForecastData() method takes weather forecast data and parses it to
device states. (Note that this is only for the weather device and not for the
hourly or 10 day forecast devices which have their own methods.) Note that we
round most of the values because some PWSs report decima... | Wunderground.indigoPlugin/Contents/Server Plugin/plugin.py | parseForecastData | DaveL17/WUnderground7 | 0 | python | def parseForecastData(self, dev):
"\n Parse forecast data to devices\n\n The parseForecastData() method takes weather forecast data and parses it to\n device states. (Note that this is only for the weather device and not for the\n hourly or 10 day forecast devices which have their own me... | def parseForecastData(self, dev):
"\n Parse forecast data to devices\n\n The parseForecastData() method takes weather forecast data and parses it to\n device states. (Note that this is only for the weather device and not for the\n hourly or 10 day forecast devices which have their own me... |
56e5a7ab3af0ea22c4c63334ea165e3c0b4ba556f0c956ecd3f1904704757e43 | def parseHourlyData(self, dev):
'\n Parse hourly forecast data to devices\n\n The parseHourlyData() method takes hourly weather forecast data and parses it\n to device states.\n\n -----\n\n :param indigo.Device dev:\n '
hourly_forecast_states_list = []
config_menu_u... | Parse hourly forecast data to devices
The parseHourlyData() method takes hourly weather forecast data and parses it
to device states.
-----
:param indigo.Device dev: | Wunderground.indigoPlugin/Contents/Server Plugin/plugin.py | parseHourlyData | DaveL17/WUnderground7 | 0 | python | def parseHourlyData(self, dev):
'\n Parse hourly forecast data to devices\n\n The parseHourlyData() method takes hourly weather forecast data and parses it\n to device states.\n\n -----\n\n :param indigo.Device dev:\n '
hourly_forecast_states_list = []
config_menu_u... | def parseHourlyData(self, dev):
'\n Parse hourly forecast data to devices\n\n The parseHourlyData() method takes hourly weather forecast data and parses it\n to device states.\n\n -----\n\n :param indigo.Device dev:\n '
hourly_forecast_states_list = []
config_menu_u... |
24f031c4dbf5c338453eedc4d638aaa3f982ad21e233fd4c00c21486a7f246b2 | def parseTenDayData(self, dev):
'\n Parse ten day forecase data to devices\n\n The parseTenDayData() method takes 10 day forecast data and parses it to device\n states.\n\n -----\n\n :param indigo.Device dev:\n '
ten_day_forecast_states_list = []
config_menu_units =... | Parse ten day forecase data to devices
The parseTenDayData() method takes 10 day forecast data and parses it to device
states.
-----
:param indigo.Device dev: | Wunderground.indigoPlugin/Contents/Server Plugin/plugin.py | parseTenDayData | DaveL17/WUnderground7 | 0 | python | def parseTenDayData(self, dev):
'\n Parse ten day forecase data to devices\n\n The parseTenDayData() method takes 10 day forecast data and parses it to device\n states.\n\n -----\n\n :param indigo.Device dev:\n '
ten_day_forecast_states_list = []
config_menu_units =... | def parseTenDayData(self, dev):
'\n Parse ten day forecase data to devices\n\n The parseTenDayData() method takes 10 day forecast data and parses it to device\n states.\n\n -----\n\n :param indigo.Device dev:\n '
ten_day_forecast_states_list = []
config_menu_units =... |
4d0189cebbe13b26146fabf1b391af8a34d3a1cfbba326e5171e7d3694d31e17 | def parseTidesData(self, dev):
'\n Parse tides data to devices\n\n The parseTidesData() method takes tide data and parses it to device states.\n\n -----\n\n :param indigo.Device dev:\n '
tide_states_list = []
location = dev.pluginProps['location']
weather_data = self.m... | Parse tides data to devices
The parseTidesData() method takes tide data and parses it to device states.
-----
:param indigo.Device dev: | Wunderground.indigoPlugin/Contents/Server Plugin/plugin.py | parseTidesData | DaveL17/WUnderground7 | 0 | python | def parseTidesData(self, dev):
'\n Parse tides data to devices\n\n The parseTidesData() method takes tide data and parses it to device states.\n\n -----\n\n :param indigo.Device dev:\n '
tide_states_list = []
location = dev.pluginProps['location']
weather_data = self.m... | def parseTidesData(self, dev):
'\n Parse tides data to devices\n\n The parseTidesData() method takes tide data and parses it to device states.\n\n -----\n\n :param indigo.Device dev:\n '
tide_states_list = []
location = dev.pluginProps['location']
weather_data = self.m... |
505651cb17dec78c161f583e22394565b3129d28c4aa6d13faa887052555e256 | def parseWeatherData(self, dev):
'\n Parse weather data to devices\n\n The parseWeatherData() method takes weather data and parses it to Weather\n Device states.\n\n -----\n\n :param indigo.Device dev:\n '
self.date_format = self.Formatter.dateFormat()
self.time_for... | Parse weather data to devices
The parseWeatherData() method takes weather data and parses it to Weather
Device states.
-----
:param indigo.Device dev: | Wunderground.indigoPlugin/Contents/Server Plugin/plugin.py | parseWeatherData | DaveL17/WUnderground7 | 0 | python | def parseWeatherData(self, dev):
'\n Parse weather data to devices\n\n The parseWeatherData() method takes weather data and parses it to Weather\n Device states.\n\n -----\n\n :param indigo.Device dev:\n '
self.date_format = self.Formatter.dateFormat()
self.time_for... | def parseWeatherData(self, dev):
'\n Parse weather data to devices\n\n The parseWeatherData() method takes weather data and parses it to Weather\n Device states.\n\n -----\n\n :param indigo.Device dev:\n '
self.date_format = self.Formatter.dateFormat()
self.time_for... |
c9eb22cb0c3a05e81f7033273fda482102ed3df9d495706a1be9408f868e7cea | def refreshWeatherData(self):
'\n Refresh data for plugin devices\n\n This method refreshes weather data for all devices based on a WUnderground\n general cycle, Action Item or Plugin Menu call.\n\n -----\n '
api_key = self.pluginPrefs['apiKey']
daily_call_limit_reached = ... | Refresh data for plugin devices
This method refreshes weather data for all devices based on a WUnderground
general cycle, Action Item or Plugin Menu call.
----- | Wunderground.indigoPlugin/Contents/Server Plugin/plugin.py | refreshWeatherData | DaveL17/WUnderground7 | 0 | python | def refreshWeatherData(self):
'\n Refresh data for plugin devices\n\n This method refreshes weather data for all devices based on a WUnderground\n general cycle, Action Item or Plugin Menu call.\n\n -----\n '
api_key = self.pluginPrefs['apiKey']
daily_call_limit_reached = ... | def refreshWeatherData(self):
'\n Refresh data for plugin devices\n\n This method refreshes weather data for all devices based on a WUnderground\n general cycle, Action Item or Plugin Menu call.\n\n -----\n '
api_key = self.pluginPrefs['apiKey']
daily_call_limit_reached = ... |
28598c228983d21f4528cd4aaeca7976dd3a6bf1c7918b0ff8d8b0088e61d72c | def triggerProcessing(self):
'\n Fire various triggers for plugin devices\n\n Weather Location Offline:\n The triggerProcessing method will examine the time of the last weather location\n update and, if the update exceeds the time delta specified in a WUnderground\n Plugin Weather... | Fire various triggers for plugin devices
Weather Location Offline:
The triggerProcessing method will examine the time of the last weather location
update and, if the update exceeds the time delta specified in a WUnderground
Plugin Weather Location Offline trigger, the trigger will be fired. The plugin
examines the val... | Wunderground.indigoPlugin/Contents/Server Plugin/plugin.py | triggerProcessing | DaveL17/WUnderground7 | 0 | python | def triggerProcessing(self):
'\n Fire various triggers for plugin devices\n\n Weather Location Offline:\n The triggerProcessing method will examine the time of the last weather location\n update and, if the update exceeds the time delta specified in a WUnderground\n Plugin Weather... | def triggerProcessing(self):
'\n Fire various triggers for plugin devices\n\n Weather Location Offline:\n The triggerProcessing method will examine the time of the last weather location\n update and, if the update exceeds the time delta specified in a WUnderground\n Plugin Weather... |
6a458cd1ca6db240455b8e84e8d640f20a96f2a29a5f9177c900bd3d80514a66 | def uiFormatItemListTemperature(self, val):
'\n Format temperature values for Indigo UI\n\n Adjusts the decimal precision of the temperature value for the Indigo Item\n List. Note: this method needs to return a string rather than a Unicode string\n (for now.)\n\n -----\n\n ... | Format temperature values for Indigo UI
Adjusts the decimal precision of the temperature value for the Indigo Item
List. Note: this method needs to return a string rather than a Unicode string
(for now.)
-----
:param val: | Wunderground.indigoPlugin/Contents/Server Plugin/plugin.py | uiFormatItemListTemperature | DaveL17/WUnderground7 | 0 | python | def uiFormatItemListTemperature(self, val):
'\n Format temperature values for Indigo UI\n\n Adjusts the decimal precision of the temperature value for the Indigo Item\n List. Note: this method needs to return a string rather than a Unicode string\n (for now.)\n\n -----\n\n ... | def uiFormatItemListTemperature(self, val):
'\n Format temperature values for Indigo UI\n\n Adjusts the decimal precision of the temperature value for the Indigo Item\n List. Note: this method needs to return a string rather than a Unicode string\n (for now.)\n\n -----\n\n ... |
07dbc9875b0cba994769f8a2e732e9fc75e22bb8f47de3d6094c15be54e35f72 | def uiFormatPercentage(self, dev, state_name, val):
'\n Format percentage data for Indigo UI\n\n Adjusts the decimal precision of percentage values for display in control\n pages, etc.\n\n -----\n\n :param indigo.Device dev:\n :param str state_name:\n :param str val:... | Format percentage data for Indigo UI
Adjusts the decimal precision of percentage values for display in control
pages, etc.
-----
:param indigo.Device dev:
:param str state_name:
:param str val: | Wunderground.indigoPlugin/Contents/Server Plugin/plugin.py | uiFormatPercentage | DaveL17/WUnderground7 | 0 | python | def uiFormatPercentage(self, dev, state_name, val):
'\n Format percentage data for Indigo UI\n\n Adjusts the decimal precision of percentage values for display in control\n pages, etc.\n\n -----\n\n :param indigo.Device dev:\n :param str state_name:\n :param str val:... | def uiFormatPercentage(self, dev, state_name, val):
'\n Format percentage data for Indigo UI\n\n Adjusts the decimal precision of percentage values for display in control\n pages, etc.\n\n -----\n\n :param indigo.Device dev:\n :param str state_name:\n :param str val:... |
17a30d9e3a7b4f43eaac72b1910780ca1d281064f7aad448c389f2689d5c3498 | def uiFormatPressureSymbol(self, state_name, val):
'\n Convert pressure trend symbol\n\n Converts the barometric pressure trend symbol to something more human friendly.\n\n -----\n\n :param str state_name:\n :param val:\n '
pref = self.pluginPrefs['uiPressureTrend']
... | Convert pressure trend symbol
Converts the barometric pressure trend symbol to something more human friendly.
-----
:param str state_name:
:param val: | Wunderground.indigoPlugin/Contents/Server Plugin/plugin.py | uiFormatPressureSymbol | DaveL17/WUnderground7 | 0 | python | def uiFormatPressureSymbol(self, state_name, val):
'\n Convert pressure trend symbol\n\n Converts the barometric pressure trend symbol to something more human friendly.\n\n -----\n\n :param str state_name:\n :param val:\n '
pref = self.pluginPrefs['uiPressureTrend']
... | def uiFormatPressureSymbol(self, state_name, val):
'\n Convert pressure trend symbol\n\n Converts the barometric pressure trend symbol to something more human friendly.\n\n -----\n\n :param str state_name:\n :param val:\n '
pref = self.pluginPrefs['uiPressureTrend']
... |
2dc5d288d052b67543a727b0490ddfa61fbebef8ec253ba75bd08795d71f0b44 | def uiFormatRain(self, dev, state_name, val):
'\n Format rain data for Indigo UI\n\n Adds rain units to rain values for display in control pages, etc.\n\n -----\n\n :param indigo.Devices dev:\n :param str state_name:\n :param val:\n '
try:
rain_units = de... | Format rain data for Indigo UI
Adds rain units to rain values for display in control pages, etc.
-----
:param indigo.Devices dev:
:param str state_name:
:param val: | Wunderground.indigoPlugin/Contents/Server Plugin/plugin.py | uiFormatRain | DaveL17/WUnderground7 | 0 | python | def uiFormatRain(self, dev, state_name, val):
'\n Format rain data for Indigo UI\n\n Adds rain units to rain values for display in control pages, etc.\n\n -----\n\n :param indigo.Devices dev:\n :param str state_name:\n :param val:\n '
try:
rain_units = de... | def uiFormatRain(self, dev, state_name, val):
'\n Format rain data for Indigo UI\n\n Adds rain units to rain values for display in control pages, etc.\n\n -----\n\n :param indigo.Devices dev:\n :param str state_name:\n :param val:\n '
try:
rain_units = de... |
a9779bd4348b48575078c61b952e40a7b48427b704e2d6e5a6483573506ca6a8 | def uiFormatSnow(self, dev, state_name, val):
'\n Format snow data for Indigo UI\n\n Adjusts the display format of snow values for display in control pages, etc.\n\n -----\n\n :param indigo.Device dev:\n :param str state_name:\n :param val:\n '
if (val in ['NA', ... | Format snow data for Indigo UI
Adjusts the display format of snow values for display in control pages, etc.
-----
:param indigo.Device dev:
:param str state_name:
:param val: | Wunderground.indigoPlugin/Contents/Server Plugin/plugin.py | uiFormatSnow | DaveL17/WUnderground7 | 0 | python | def uiFormatSnow(self, dev, state_name, val):
'\n Format snow data for Indigo UI\n\n Adjusts the display format of snow values for display in control pages, etc.\n\n -----\n\n :param indigo.Device dev:\n :param str state_name:\n :param val:\n '
if (val in ['NA', ... | def uiFormatSnow(self, dev, state_name, val):
'\n Format snow data for Indigo UI\n\n Adjusts the display format of snow values for display in control pages, etc.\n\n -----\n\n :param indigo.Device dev:\n :param str state_name:\n :param val:\n '
if (val in ['NA', ... |
7f788928ebff45ea65f56be98fa80201ddf11eaeda481d2259f924cb1906f04c | def uiFormatTemperature(self, dev, state_name, val):
'\n Format temperature data for Indigo UI\n\n Adjusts the decimal precision of certain temperature values and appends the\n desired units string for display in control pages, etc.\n\n -----\n\n :param indigo.Device dev:\n ... | Format temperature data for Indigo UI
Adjusts the decimal precision of certain temperature values and appends the
desired units string for display in control pages, etc.
-----
:param indigo.Device dev:
:param str state_name:
:param val: | Wunderground.indigoPlugin/Contents/Server Plugin/plugin.py | uiFormatTemperature | DaveL17/WUnderground7 | 0 | python | def uiFormatTemperature(self, dev, state_name, val):
'\n Format temperature data for Indigo UI\n\n Adjusts the decimal precision of certain temperature values and appends the\n desired units string for display in control pages, etc.\n\n -----\n\n :param indigo.Device dev:\n ... | def uiFormatTemperature(self, dev, state_name, val):
'\n Format temperature data for Indigo UI\n\n Adjusts the decimal precision of certain temperature values and appends the\n desired units string for display in control pages, etc.\n\n -----\n\n :param indigo.Device dev:\n ... |
5795f55f859e3b09f3f0d13101e8e57937cc26c9d1b4ef41f4c6a187187d2f07 | def uiFormatWind(self, dev, state_name, val):
'\n Format wind data for Indigo UI\n\n Adjusts the decimal precision of certain wind values for display in control\n pages, etc.\n\n -----\n\n :param indigo.Device dev:\n :param str state_name:\n :param val:\n '
... | Format wind data for Indigo UI
Adjusts the decimal precision of certain wind values for display in control
pages, etc.
-----
:param indigo.Device dev:
:param str state_name:
:param val: | Wunderground.indigoPlugin/Contents/Server Plugin/plugin.py | uiFormatWind | DaveL17/WUnderground7 | 0 | python | def uiFormatWind(self, dev, state_name, val):
'\n Format wind data for Indigo UI\n\n Adjusts the decimal precision of certain wind values for display in control\n pages, etc.\n\n -----\n\n :param indigo.Device dev:\n :param str state_name:\n :param val:\n '
... | def uiFormatWind(self, dev, state_name, val):
'\n Format wind data for Indigo UI\n\n Adjusts the decimal precision of certain wind values for display in control\n pages, etc.\n\n -----\n\n :param indigo.Device dev:\n :param str state_name:\n :param val:\n '
... |
fda3c6b02256cdceb4faba21296c159245219b1699c1a5c52646c7e7431168f1 | def verboseWindNames(self, state_name, val):
'\n Format wind data for Indigo UI\n\n The verboseWindNames() method takes possible wind direction values and\n standardizes them across all device types and all reporting stations to ensure\n that we wind up with values that we can recognize.... | Format wind data for Indigo UI
The verboseWindNames() method takes possible wind direction values and
standardizes them across all device types and all reporting stations to ensure
that we wind up with values that we can recognize.
-----
:param str state_name:
:param val: | Wunderground.indigoPlugin/Contents/Server Plugin/plugin.py | verboseWindNames | DaveL17/WUnderground7 | 0 | python | def verboseWindNames(self, state_name, val):
'\n Format wind data for Indigo UI\n\n The verboseWindNames() method takes possible wind direction values and\n standardizes them across all device types and all reporting stations to ensure\n that we wind up with values that we can recognize.... | def verboseWindNames(self, state_name, val):
'\n Format wind data for Indigo UI\n\n The verboseWindNames() method takes possible wind direction values and\n standardizes them across all device types and all reporting stations to ensure\n that we wind up with values that we can recognize.... |
de0cd890d77d9c1c3aa990497ee40bdd23dbe87ecd25aa1cf9963b831596ab11 | def wundergroundSite(self, values_dict):
'\n Launch a web browser to register for API\n\n Launch a web browser session with the values_dict parm containing the target\n URL.\n\n -----\n\n :param indigo.Dict values_dict:\n '
self.Fogbert.launchWebPage(values_dict['launch... | Launch a web browser to register for API
Launch a web browser session with the values_dict parm containing the target
URL.
-----
:param indigo.Dict values_dict: | Wunderground.indigoPlugin/Contents/Server Plugin/plugin.py | wundergroundSite | DaveL17/WUnderground7 | 0 | python | def wundergroundSite(self, values_dict):
'\n Launch a web browser to register for API\n\n Launch a web browser session with the values_dict parm containing the target\n URL.\n\n -----\n\n :param indigo.Dict values_dict:\n '
self.Fogbert.launchWebPage(values_dict['launch... | def wundergroundSite(self, values_dict):
'\n Launch a web browser to register for API\n\n Launch a web browser session with the values_dict parm containing the target\n URL.\n\n -----\n\n :param indigo.Dict values_dict:\n '
self.Fogbert.launchWebPage(values_dict['launch... |
638f38d57813dd2fc023b0d854a028c6bce521fd5c7d3c5a99693aea8852a9fd | def main():
"\n\tinput each day's temperature and output maximum, minimum, average and how many cold days\n\t"
print('stanCode "Weather Master 4.0"!')
first_temperature = int(input((('Next temperature: (or ' + str(QUIT)) + ' to quit)? ')))
if (first_temperature == QUIT):
print('No temperatures w... | input each day's temperature and output maximum, minimum, average and how many cold days | stanCode-project/Weather_Master/weather_master.py | main | summerororo/sc-project | 0 | python | def main():
"\n\t\n\t"
print('stanCode "Weather Master 4.0"!')
first_temperature = int(input((('Next temperature: (or ' + str(QUIT)) + ' to quit)? ')))
if (first_temperature == QUIT):
print('No temperatures were entered.')
if (first_temperature != QUIT):
if (first_temperature < 16):
... | def main():
"\n\t\n\t"
print('stanCode "Weather Master 4.0"!')
first_temperature = int(input((('Next temperature: (or ' + str(QUIT)) + ' to quit)? ')))
if (first_temperature == QUIT):
print('No temperatures were entered.')
if (first_temperature != QUIT):
if (first_temperature < 16):
... |
d24eab749e3a9ed3b4081886d5686423b2f3f3cbb64328f2ade7f09f5e28a54c | def get_graphs():
'\n Returns instances of defined graphs.\n '
g1 = NxGraph()
g1.name = 'Graph 1'
g1.add_node('A', id='A', name='Node A', category=['biolink:NamedThing'])
g1.add_node('B', id='B', name='Node B', category=['biolink:NamedThing'])
g1.add_node('C', id='C', name='Node C', catego... | Returns instances of defined graphs. | tests/unit/test_graph_merge.py | get_graphs | EvanDietzMorris/kgx | 32 | python | def get_graphs():
'\n \n '
g1 = NxGraph()
g1.name = 'Graph 1'
g1.add_node('A', id='A', name='Node A', category=['biolink:NamedThing'])
g1.add_node('B', id='B', name='Node B', category=['biolink:NamedThing'])
g1.add_node('C', id='C', name='Node C', category=['biolink:NamedThing'])
g1.ad... | def get_graphs():
'\n \n '
g1 = NxGraph()
g1.name = 'Graph 1'
g1.add_node('A', id='A', name='Node A', category=['biolink:NamedThing'])
g1.add_node('B', id='B', name='Node B', category=['biolink:NamedThing'])
g1.add_node('C', id='C', name='Node C', category=['biolink:NamedThing'])
g1.ad... |
e90d14bfc90f9f17f9c788c3043b9bd4e4c23ac52c0175272abf65a86626336c | def test_merge_all_graphs():
'\n Test for merging three graphs into one,\n while preserving conflicting node and edge properties.\n '
graphs = get_graphs()
merged_graph = merge_all_graphs(graphs, preserve=True)
assert (merged_graph.number_of_nodes() == 6)
assert (merged_graph.number_of_edge... | Test for merging three graphs into one,
while preserving conflicting node and edge properties. | tests/unit/test_graph_merge.py | test_merge_all_graphs | EvanDietzMorris/kgx | 32 | python | def test_merge_all_graphs():
'\n Test for merging three graphs into one,\n while preserving conflicting node and edge properties.\n '
graphs = get_graphs()
merged_graph = merge_all_graphs(graphs, preserve=True)
assert (merged_graph.number_of_nodes() == 6)
assert (merged_graph.number_of_edge... | def test_merge_all_graphs():
'\n Test for merging three graphs into one,\n while preserving conflicting node and edge properties.\n '
graphs = get_graphs()
merged_graph = merge_all_graphs(graphs, preserve=True)
assert (merged_graph.number_of_nodes() == 6)
assert (merged_graph.number_of_edge... |
7846a76d3e900828601e94e6b3b171ea7c9e490747680911cca9e337f350d5d1 | def test_merge_graphs():
'\n Test for merging 3 graphs into one,\n while not preserving conflicting node and edge properties.\n '
graphs = get_graphs()
merged_graph = merge_graphs(NxGraph(), graphs)
assert (merged_graph.number_of_nodes() == 6)
assert (merged_graph.number_of_edges() == 6)
... | Test for merging 3 graphs into one,
while not preserving conflicting node and edge properties. | tests/unit/test_graph_merge.py | test_merge_graphs | EvanDietzMorris/kgx | 32 | python | def test_merge_graphs():
'\n Test for merging 3 graphs into one,\n while not preserving conflicting node and edge properties.\n '
graphs = get_graphs()
merged_graph = merge_graphs(NxGraph(), graphs)
assert (merged_graph.number_of_nodes() == 6)
assert (merged_graph.number_of_edges() == 6)
... | def test_merge_graphs():
'\n Test for merging 3 graphs into one,\n while not preserving conflicting node and edge properties.\n '
graphs = get_graphs()
merged_graph = merge_graphs(NxGraph(), graphs)
assert (merged_graph.number_of_nodes() == 6)
assert (merged_graph.number_of_edges() == 6)
... |
3230935f94a7718845ce56514ce8590877f8152e8e0fe863756c7fed3500f070 | def test_merge_node():
'\n Test merging of a node into a graph.\n '
graphs = get_graphs()
g = graphs[0]
node = g.nodes()['A']
new_data = node.copy()
new_data['subset'] = 'test'
new_data['source'] = 'KGX'
new_data['category'] = ['biolink:InformationContentEntity']
new_data['desc... | Test merging of a node into a graph. | tests/unit/test_graph_merge.py | test_merge_node | EvanDietzMorris/kgx | 32 | python | def test_merge_node():
'\n \n '
graphs = get_graphs()
g = graphs[0]
node = g.nodes()['A']
new_data = node.copy()
new_data['subset'] = 'test'
new_data['source'] = 'KGX'
new_data['category'] = ['biolink:InformationContentEntity']
new_data['description'] = 'Node A modified by merg... | def test_merge_node():
'\n \n '
graphs = get_graphs()
g = graphs[0]
node = g.nodes()['A']
new_data = node.copy()
new_data['subset'] = 'test'
new_data['source'] = 'KGX'
new_data['category'] = ['biolink:InformationContentEntity']
new_data['description'] = 'Node A modified by merg... |
e6c6789af78e0f70f21175a44ccb634d84c216dc27417dfff8d0a308461776cc | def test_merge_edge():
'\n Test merging of an edge into a graph.\n '
graphs = get_graphs()
g = graphs[1]
edge = g.get_edge('E', 'A')
new_data = edge.copy()
new_data['provided_by'] = 'KGX'
new_data['evidence'] = 'PMID:123456'
edge = merge_edge(g, 'E', 'A', 'E-biolink:related_to-A', ... | Test merging of an edge into a graph. | tests/unit/test_graph_merge.py | test_merge_edge | EvanDietzMorris/kgx | 32 | python | def test_merge_edge():
'\n \n '
graphs = get_graphs()
g = graphs[1]
edge = g.get_edge('E', 'A')
new_data = edge.copy()
new_data['provided_by'] = 'KGX'
new_data['evidence'] = 'PMID:123456'
edge = merge_edge(g, 'E', 'A', 'E-biolink:related_to-A', new_data, preserve=True)
assert (... | def test_merge_edge():
'\n \n '
graphs = get_graphs()
g = graphs[1]
edge = g.get_edge('E', 'A')
new_data = edge.copy()
new_data['provided_by'] = 'KGX'
new_data['evidence'] = 'PMID:123456'
edge = merge_edge(g, 'E', 'A', 'E-biolink:related_to-A', new_data, preserve=True)
assert (... |
33751879aafc502e709bab1fd09f5b021317733b1d7d0fe8c780f809eb9218e4 | def recursive_list_dir(root_dir):
'Yields all files of a root directory tree.'
for (dirname, _, filenames) in tf.io.gfile.walk(root_dir):
for filename in filenames:
(yield os.path.join(dirname, filename)) | Yields all files of a root directory tree. | tools/filesystem_utils.py | recursive_list_dir | edrone/tfhub.dev | 2 | python | def recursive_list_dir(root_dir):
for (dirname, _, filenames) in tf.io.gfile.walk(root_dir):
for filename in filenames:
(yield os.path.join(dirname, filename)) | def recursive_list_dir(root_dir):
for (dirname, _, filenames) in tf.io.gfile.walk(root_dir):
for filename in filenames:
(yield os.path.join(dirname, filename))<|docstring|>Yields all files of a root directory tree.<|endoftext|> |
d1957181004ad689858d11f42ae139573dc426b5401cc52f4ee864ba85a3664f | def get_content(file_path):
"Returns a file's content."
with tf.io.gfile.GFile(file_path, 'r') as f:
return f.read() | Returns a file's content. | tools/filesystem_utils.py | get_content | edrone/tfhub.dev | 2 | python | def get_content(file_path):
with tf.io.gfile.GFile(file_path, 'r') as f:
return f.read() | def get_content(file_path):
with tf.io.gfile.GFile(file_path, 'r') as f:
return f.read()<|docstring|>Returns a file's content.<|endoftext|> |
b0799e9f988125f6903eac6944f191b398799f9e917763073e1f27509471bf76 | def test_controls(self, elevator=0, aileron=0, tla=0) -> None:
'\n Directly control the aircraft using control surfaces for the purpose of testing the model\n\n :param elevator: elevator angle [-30 to +30]\n :param aileron: aileron angle [-30 to +30]\n :param tla: Thrust Lever Angle [0 t... | Directly control the aircraft using control surfaces for the purpose of testing the model
:param elevator: elevator angle [-30 to +30]
:param aileron: aileron angle [-30 to +30]
:param tla: Thrust Lever Angle [0 to 1]
:return: None | src/autopilot.py | test_controls | nkbeebe/FW-Airsim | 16 | python | def test_controls(self, elevator=0, aileron=0, tla=0) -> None:
'\n Directly control the aircraft using control surfaces for the purpose of testing the model\n\n :param elevator: elevator angle [-30 to +30]\n :param aileron: aileron angle [-30 to +30]\n :param tla: Thrust Lever Angle [0 t... | def test_controls(self, elevator=0, aileron=0, tla=0) -> None:
'\n Directly control the aircraft using control surfaces for the purpose of testing the model\n\n :param elevator: elevator angle [-30 to +30]\n :param aileron: aileron angle [-30 to +30]\n :param tla: Thrust Lever Angle [0 t... |
2e4395e4ac0d28aa393b7d9b0451c7144e56bf677146e31fb0e704baa75d5719 | def pitch_hold(self, pitch_comm: float) -> None:
'\n Maintains a commanded pitch attitude [radians] using a PI controller with a rate component\n\n :param pitch_comm: commanded pitch attitude [radians]\n :return: None\n '
error = (pitch_comm - self.sim[prp.pitch_rad])
kp = 1.0
... | Maintains a commanded pitch attitude [radians] using a PI controller with a rate component
:param pitch_comm: commanded pitch attitude [radians]
:return: None | src/autopilot.py | pitch_hold | nkbeebe/FW-Airsim | 16 | python | def pitch_hold(self, pitch_comm: float) -> None:
'\n Maintains a commanded pitch attitude [radians] using a PI controller with a rate component\n\n :param pitch_comm: commanded pitch attitude [radians]\n :return: None\n '
error = (pitch_comm - self.sim[prp.pitch_rad])
kp = 1.0
... | def pitch_hold(self, pitch_comm: float) -> None:
'\n Maintains a commanded pitch attitude [radians] using a PI controller with a rate component\n\n :param pitch_comm: commanded pitch attitude [radians]\n :return: None\n '
error = (pitch_comm - self.sim[prp.pitch_rad])
kp = 1.0
... |
95d295acc294276ef86a09f49052f5f7485d3b2162c0d1dc5db01111b6504b8e | def roll_hold(self, roll_comm: float) -> None:
'\n Maintains a commanded roll attitude [radians] using a PID controller\n\n :param roll_comm: commanded roll attitude [radians]\n :return: None\n '
error = (roll_comm - self.sim[prp.roll_rad])
kp = 0.2
ki = (kp * 0.0)
kd = 0... | Maintains a commanded roll attitude [radians] using a PID controller
:param roll_comm: commanded roll attitude [radians]
:return: None | src/autopilot.py | roll_hold | nkbeebe/FW-Airsim | 16 | python | def roll_hold(self, roll_comm: float) -> None:
'\n Maintains a commanded roll attitude [radians] using a PID controller\n\n :param roll_comm: commanded roll attitude [radians]\n :return: None\n '
error = (roll_comm - self.sim[prp.roll_rad])
kp = 0.2
ki = (kp * 0.0)
kd = 0... | def roll_hold(self, roll_comm: float) -> None:
'\n Maintains a commanded roll attitude [radians] using a PID controller\n\n :param roll_comm: commanded roll attitude [radians]\n :return: None\n '
error = (roll_comm - self.sim[prp.roll_rad])
kp = 0.2
ki = (kp * 0.0)
kd = 0... |
e8433a3a1ed4b01af6a3e3bdc86938363c29276911c41379143847248b3a5686 | def heading_hold(self, heading_comm: float) -> None:
'\n Maintains a commanded heading [degrees] using a PI controller\n\n :param heading_comm: commanded heading [degrees]\n :return: None\n '
error = (heading_comm - self.sim[prp.heading_deg])
if (error < (- 180)):
error =... | Maintains a commanded heading [degrees] using a PI controller
:param heading_comm: commanded heading [degrees]
:return: None | src/autopilot.py | heading_hold | nkbeebe/FW-Airsim | 16 | python | def heading_hold(self, heading_comm: float) -> None:
'\n Maintains a commanded heading [degrees] using a PI controller\n\n :param heading_comm: commanded heading [degrees]\n :return: None\n '
error = (heading_comm - self.sim[prp.heading_deg])
if (error < (- 180)):
error =... | def heading_hold(self, heading_comm: float) -> None:
'\n Maintains a commanded heading [degrees] using a PI controller\n\n :param heading_comm: commanded heading [degrees]\n :return: None\n '
error = (heading_comm - self.sim[prp.heading_deg])
if (error < (- 180)):
error =... |
0a08674e6c06d563ad9ca317ce10c8c7ea652fb3561b962a365abf2054c54f09 | def airspeed_hold_w_throttle(self, airspeed_comm: float) -> None:
'\n Maintains a commanded airspeed [KTAS] using throttle_cmd and a PI controller\n\n :param airspeed_comm: commanded airspeed [KTAS]\n :return: None\n '
error = (airspeed_comm - (self.sim[prp.airspeed] * 0.5925))
k... | Maintains a commanded airspeed [KTAS] using throttle_cmd and a PI controller
:param airspeed_comm: commanded airspeed [KTAS]
:return: None | src/autopilot.py | airspeed_hold_w_throttle | nkbeebe/FW-Airsim | 16 | python | def airspeed_hold_w_throttle(self, airspeed_comm: float) -> None:
'\n Maintains a commanded airspeed [KTAS] using throttle_cmd and a PI controller\n\n :param airspeed_comm: commanded airspeed [KTAS]\n :return: None\n '
error = (airspeed_comm - (self.sim[prp.airspeed] * 0.5925))
k... | def airspeed_hold_w_throttle(self, airspeed_comm: float) -> None:
'\n Maintains a commanded airspeed [KTAS] using throttle_cmd and a PI controller\n\n :param airspeed_comm: commanded airspeed [KTAS]\n :return: None\n '
error = (airspeed_comm - (self.sim[prp.airspeed] * 0.5925))
k... |
9de472f5bbfa0fc9b286c812d05a3b0a4455055e6d55240875b8d64dba58eddf | def altitude_hold(self, altitude_comm) -> None:
'\n Maintains a demanded altitude [feet] using pitch attitude\n\n :param altitude_comm: demanded altitude [feet]\n :return: None\n '
error = (altitude_comm - self.sim[prp.altitude_sl_ft])
kp = 0.1
ki = 0.6
altitude_controlle... | Maintains a demanded altitude [feet] using pitch attitude
:param altitude_comm: demanded altitude [feet]
:return: None | src/autopilot.py | altitude_hold | nkbeebe/FW-Airsim | 16 | python | def altitude_hold(self, altitude_comm) -> None:
'\n Maintains a demanded altitude [feet] using pitch attitude\n\n :param altitude_comm: demanded altitude [feet]\n :return: None\n '
error = (altitude_comm - self.sim[prp.altitude_sl_ft])
kp = 0.1
ki = 0.6
altitude_controlle... | def altitude_hold(self, altitude_comm) -> None:
'\n Maintains a demanded altitude [feet] using pitch attitude\n\n :param altitude_comm: demanded altitude [feet]\n :return: None\n '
error = (altitude_comm - self.sim[prp.altitude_sl_ft])
kp = 0.1
ki = 0.6
altitude_controlle... |
ff352ce535db160e1be3c8bebdf8ab9f08467498758a13158b95b31c5c81608d | def home_to_target(self, target_northing: float, target_easting: float, target_alt: float) -> bool:
'\n Homes towards a 2D (lat, long) point in space and uses altitude_hold to maintain an altitude\n\n :param target_northing: latitude of target relative to current position [m]\n :param target_ea... | Homes towards a 2D (lat, long) point in space and uses altitude_hold to maintain an altitude
:param target_northing: latitude of target relative to current position [m]
:param target_easting: longitude of target relative to current position [m]
:param target_alt: demanded altitude for this path segment [feet]
:return:... | src/autopilot.py | home_to_target | nkbeebe/FW-Airsim | 16 | python | def home_to_target(self, target_northing: float, target_easting: float, target_alt: float) -> bool:
'\n Homes towards a 2D (lat, long) point in space and uses altitude_hold to maintain an altitude\n\n :param target_northing: latitude of target relative to current position [m]\n :param target_ea... | def home_to_target(self, target_northing: float, target_easting: float, target_alt: float) -> bool:
'\n Homes towards a 2D (lat, long) point in space and uses altitude_hold to maintain an altitude\n\n :param target_northing: latitude of target relative to current position [m]\n :param target_ea... |
9ea8f6beb643fdf8efb5a63b171e6b9e122aed0e6a8def69cb434d6fe96d62d4 | def track_to_target(self, target_northing: float, target_easting: float, target_alt: float) -> bool:
'\n Maintains a track from the point the simulation started at to the target point\n\n ...\n\n This ensures the aircraft does not fly a curved homing path if displaced from track but instead aim... | Maintains a track from the point the simulation started at to the target point
...
This ensures the aircraft does not fly a curved homing path if displaced from track but instead aims to
re-establish the track to the pre-defined target point in space. The method terminates when the aircraft arrives
at a point within ... | src/autopilot.py | track_to_target | nkbeebe/FW-Airsim | 16 | python | def track_to_target(self, target_northing: float, target_easting: float, target_alt: float) -> bool:
'\n Maintains a track from the point the simulation started at to the target point\n\n ...\n\n This ensures the aircraft does not fly a curved homing path if displaced from track but instead aim... | def track_to_target(self, target_northing: float, target_easting: float, target_alt: float) -> bool:
'\n Maintains a track from the point the simulation started at to the target point\n\n ...\n\n This ensures the aircraft does not fly a curved homing path if displaced from track but instead aim... |
fa3c18cbed56e7f68c433a86b19c9eb818b8ff55573ebf65c42a9a9e44ab737f | def track_to_profile(self, profile: list) -> bool:
'\n Maintains a track along a series of points in the simulation and the defined altitude along each path segment\n\n ...\n\n This ensures the aircraft does not fly a curved homing path if displaced from track but instead aims to\n re-es... | Maintains a track along a series of points in the simulation and the defined altitude along each path segment
...
This ensures the aircraft does not fly a curved homing path if displaced from track but instead aims to
re-establish the track to the pre-defined target point in space. The method switches to the next tar... | src/autopilot.py | track_to_profile | nkbeebe/FW-Airsim | 16 | python | def track_to_profile(self, profile: list) -> bool:
'\n Maintains a track along a series of points in the simulation and the defined altitude along each path segment\n\n ...\n\n This ensures the aircraft does not fly a curved homing path if displaced from track but instead aims to\n re-es... | def track_to_profile(self, profile: list) -> bool:
'\n Maintains a track along a series of points in the simulation and the defined altitude along each path segment\n\n ...\n\n This ensures the aircraft does not fly a curved homing path if displaced from track but instead aims to\n re-es... |
968f9f5b550bca636b16eedbd7c0bb66fbc732ab79043bfd01fd749caf601292 | def arc_path(self, profile, radius) -> bool:
"\n Maintains a track along a series of points in the simulation and the defined altitude along each path segment,\n ensures a smooth turn by flying an arc/filet with radius=radius at each point\n\n ...\n\n The aircraft maintains a track based... | Maintains a track along a series of points in the simulation and the defined altitude along each path segment,
ensures a smooth turn by flying an arc/filet with radius=radius at each point
...
The aircraft maintains a track based on the bearing from the location the target was instantiated to the target.
When within ... | src/autopilot.py | arc_path | nkbeebe/FW-Airsim | 16 | python | def arc_path(self, profile, radius) -> bool:
"\n Maintains a track along a series of points in the simulation and the defined altitude along each path segment,\n ensures a smooth turn by flying an arc/filet with radius=radius at each point\n\n ...\n\n The aircraft maintains a track based... | def arc_path(self, profile, radius) -> bool:
"\n Maintains a track along a series of points in the simulation and the defined altitude along each path segment,\n ensures a smooth turn by flying an arc/filet with radius=radius at each point\n\n ...\n\n The aircraft maintains a track based... |
0f629bb9e992183f2bb7bcaad229e71218086d6d3f60d9c3d03e043bb5f3368d | @app.cli.command()
def test() -> None:
'Run the unittests.'
os.system('pytest -v') | Run the unittests. | flog/commands.py | test | rice0208/Flog | 14 | python | @app.cli.command()
def test() -> None:
os.system('pytest -v') | @app.cli.command()
def test() -> None:
os.system('pytest -v')<|docstring|>Run the unittests.<|endoftext|> |
c47d91eb378c62e64859eaa4be2213c6cc752ee1865badbe0a564e1c32e0d120 | @app.cli.command()
def create_admin():
'Create administrator account'
from .models import Role, User
admin_role = Role.query.filter_by(name='Administrator').first()
username = app.config['FLOG_ADMIN']
email = app.config['FLOG_ADMIN_EMAIL']
password = app.config['FLOG_ADMIN_PASSWORD']
if (Use... | Create administrator account | flog/commands.py | create_admin | rice0208/Flog | 14 | python | @app.cli.command()
def create_admin():
from .models import Role, User
admin_role = Role.query.filter_by(name='Administrator').first()
username = app.config['FLOG_ADMIN']
email = app.config['FLOG_ADMIN_EMAIL']
password = app.config['FLOG_ADMIN_PASSWORD']
if (User.query.filter_by(email=email)... | @app.cli.command()
def create_admin():
from .models import Role, User
admin_role = Role.query.filter_by(name='Administrator').first()
username = app.config['FLOG_ADMIN']
email = app.config['FLOG_ADMIN_EMAIL']
password = app.config['FLOG_ADMIN_PASSWORD']
if (User.query.filter_by(email=email)... |
a6edc8d54f7e74e02e29811bc7e693f36f735393995fc30d4f7011b31f36fad3 | @app.cli.command()
@click.option('--users', default=20, help='Generates fake users')
@click.option('--posts', default=20, help='Generates fake posts')
@click.option('--feedbacks', default=20, help='Generates fake feedbacks')
@click.option('--follows', default=20, help='Generates fake follows')
@click.option('--comments... | Generates fake data | flog/commands.py | forge | rice0208/Flog | 14 | python | @app.cli.command()
@click.option('--users', default=20, help='Generates fake users')
@click.option('--posts', default=20, help='Generates fake posts')
@click.option('--feedbacks', default=20, help='Generates fake feedbacks')
@click.option('--follows', default=20, help='Generates fake follows')
@click.option('--comments... | @app.cli.command()
@click.option('--users', default=20, help='Generates fake users')
@click.option('--posts', default=20, help='Generates fake posts')
@click.option('--feedbacks', default=20, help='Generates fake feedbacks')
@click.option('--follows', default=20, help='Generates fake follows')
@click.option('--comments... |
f655b39f6a45c66fb47a08a71c1e44935046cb3c3d8c32134ba5de11e2b8c094 | @app.cli.command()
@click.option('--drop/--no-drop', help='Drop database or not')
def init_db(drop: bool=False) -> None:
'Initialize database on a new machine.'
if drop:
db.drop_all(app=app)
db.create_all(app=app) | Initialize database on a new machine. | flog/commands.py | init_db | rice0208/Flog | 14 | python | @app.cli.command()
@click.option('--drop/--no-drop', help='Drop database or not')
def init_db(drop: bool=False) -> None:
if drop:
db.drop_all(app=app)
db.create_all(app=app) | @app.cli.command()
@click.option('--drop/--no-drop', help='Drop database or not')
def init_db(drop: bool=False) -> None:
if drop:
db.drop_all(app=app)
db.create_all(app=app)<|docstring|>Initialize database on a new machine.<|endoftext|> |
ac8ea8e756ce113df693f46e45a71f83a5d621390190991fcf69d33b9b57b8a7 | @app.cli.command()
def deploy():
'Run deployment tasks'
from flask_migrate import upgrade, stamp
try:
upgrade()
except:
db.create_all()
stamp()
from .models import User, Role
Role.insert_roles()
for user in User.query.all():
user.follow(user)
if os.system(... | Run deployment tasks | flog/commands.py | deploy | rice0208/Flog | 14 | python | @app.cli.command()
def deploy():
from flask_migrate import upgrade, stamp
try:
upgrade()
except:
db.create_all()
stamp()
from .models import User, Role
Role.insert_roles()
for user in User.query.all():
user.follow(user)
if os.system('pybabel compile -d fl... | @app.cli.command()
def deploy():
from flask_migrate import upgrade, stamp
try:
upgrade()
except:
db.create_all()
stamp()
from .models import User, Role
Role.insert_roles()
for user in User.query.all():
user.follow(user)
if os.system('pybabel compile -d fl... |
9a6562e98406e426969ec33ced4f77016db1be56a2690bc40e5a2745b8b028fb | @app.cli.group()
def translate():
'Translation and localization commands.'
pass | Translation and localization commands. | flog/commands.py | translate | rice0208/Flog | 14 | python | @app.cli.group()
def translate():
pass | @app.cli.group()
def translate():
pass<|docstring|>Translation and localization commands.<|endoftext|> |
5ef8d2fb0dd4c95f6a6758cf997db7898ec2858ea0c1e333210288f90f37a183 | @translate.command()
@click.argument('locale')
def init(locale):
'Initialize a new language.'
if os.system('pybabel extract -F babel.cfg -k _l -o messages.pot .'):
raise RuntimeError('Error: Extracting the config file failed.')
if os.system(('pybabel init -i messages.pot -d flog`/translations -l ' +... | Initialize a new language. | flog/commands.py | init | rice0208/Flog | 14 | python | @translate.command()
@click.argument('locale')
def init(locale):
if os.system('pybabel extract -F babel.cfg -k _l -o messages.pot .'):
raise RuntimeError('Error: Extracting the config file failed.')
if os.system(('pybabel init -i messages.pot -d flog`/translations -l ' + locale)):
raise Run... | @translate.command()
@click.argument('locale')
def init(locale):
if os.system('pybabel extract -F babel.cfg -k _l -o messages.pot .'):
raise RuntimeError('Error: Extracting the config file failed.')
if os.system(('pybabel init -i messages.pot -d flog`/translations -l ' + locale)):
raise Run... |
d33c40bc4c392f1db6353e0dc3e4bf289a3e32948a75d5d6f422388be58311ab | @translate.command()
def update():
'Update all languages.'
if os.system('pybabel extract -F babel.cfg -k _l -o messages.pot .'):
raise RuntimeError('Error: Extracting the config file failed.')
if os.system('pybabel update -i messages.pot -d flog/translations'):
raise RuntimeError('Error: Upd... | Update all languages. | flog/commands.py | update | rice0208/Flog | 14 | python | @translate.command()
def update():
if os.system('pybabel extract -F babel.cfg -k _l -o messages.pot .'):
raise RuntimeError('Error: Extracting the config file failed.')
if os.system('pybabel update -i messages.pot -d flog/translations'):
raise RuntimeError('Error: Updating the .po file fail... | @translate.command()
def update():
if os.system('pybabel extract -F babel.cfg -k _l -o messages.pot .'):
raise RuntimeError('Error: Extracting the config file failed.')
if os.system('pybabel update -i messages.pot -d flog/translations'):
raise RuntimeError('Error: Updating the .po file fail... |
d17cf7bdbaa1c0a172dc3c8f418fc2c44a0b7a2d07f5d42d7cb21f2c300d0128 | @translate.command()
def compile():
'Compile all languages to .mo file.'
if os.system('pybabel compile -d flog/translations'):
raise RuntimeError('Error: Compiling failed.') | Compile all languages to .mo file. | flog/commands.py | compile | rice0208/Flog | 14 | python | @translate.command()
def compile():
if os.system('pybabel compile -d flog/translations'):
raise RuntimeError('Error: Compiling failed.') | @translate.command()
def compile():
if os.system('pybabel compile -d flog/translations'):
raise RuntimeError('Error: Compiling failed.')<|docstring|>Compile all languages to .mo file.<|endoftext|> |
f958dcd7aa605404050f42e95cd3e59ed919fe91dc4bf86218cc82abc99e1f1e | @property
def DceNodeIpv4Groups(self):
'\n Returns\n -------\n - obj(ixnetwork_restpy.testplatform.sessions.ixnetwork.vport.protocols.dcenodeipv4groups_45c069e4f39be165e2266b91bc876a78.DceNodeIpv4Groups): An instance of the DceNodeIpv4Groups class\n\n Raises\n ------\n - Se... | Returns
-------
- obj(ixnetwork_restpy.testplatform.sessions.ixnetwork.vport.protocols.dcenodeipv4groups_45c069e4f39be165e2266b91bc876a78.DceNodeIpv4Groups): An instance of the DceNodeIpv4Groups class
Raises
------
- ServerError: The server has encountered an uncategorized error condition | ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/dcenetworkrange_de592cf3e2529092f28b2f14e5282a24.py | DceNodeIpv4Groups | OpenIxia/ixnetwork_restpy | 20 | python | @property
def DceNodeIpv4Groups(self):
'\n Returns\n -------\n - obj(ixnetwork_restpy.testplatform.sessions.ixnetwork.vport.protocols.dcenodeipv4groups_45c069e4f39be165e2266b91bc876a78.DceNodeIpv4Groups): An instance of the DceNodeIpv4Groups class\n\n Raises\n ------\n - Se... | @property
def DceNodeIpv4Groups(self):
'\n Returns\n -------\n - obj(ixnetwork_restpy.testplatform.sessions.ixnetwork.vport.protocols.dcenodeipv4groups_45c069e4f39be165e2266b91bc876a78.DceNodeIpv4Groups): An instance of the DceNodeIpv4Groups class\n\n Raises\n ------\n - Se... |
21fe83275d1ae309a4199b1d1c879a9e31b8808b460df1517f2dfcd3cb3e3f0a | @property
def DceNodeIpv6Groups(self):
'\n Returns\n -------\n - obj(ixnetwork_restpy.testplatform.sessions.ixnetwork.vport.protocols.dcenodeipv6groups_b1c5a6a36b8a89171fe4ff9773ebcf11.DceNodeIpv6Groups): An instance of the DceNodeIpv6Groups class\n\n Raises\n ------\n - Se... | Returns
-------
- obj(ixnetwork_restpy.testplatform.sessions.ixnetwork.vport.protocols.dcenodeipv6groups_b1c5a6a36b8a89171fe4ff9773ebcf11.DceNodeIpv6Groups): An instance of the DceNodeIpv6Groups class
Raises
------
- ServerError: The server has encountered an uncategorized error condition | ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/dcenetworkrange_de592cf3e2529092f28b2f14e5282a24.py | DceNodeIpv6Groups | OpenIxia/ixnetwork_restpy | 20 | python | @property
def DceNodeIpv6Groups(self):
'\n Returns\n -------\n - obj(ixnetwork_restpy.testplatform.sessions.ixnetwork.vport.protocols.dcenodeipv6groups_b1c5a6a36b8a89171fe4ff9773ebcf11.DceNodeIpv6Groups): An instance of the DceNodeIpv6Groups class\n\n Raises\n ------\n - Se... | @property
def DceNodeIpv6Groups(self):
'\n Returns\n -------\n - obj(ixnetwork_restpy.testplatform.sessions.ixnetwork.vport.protocols.dcenodeipv6groups_b1c5a6a36b8a89171fe4ff9773ebcf11.DceNodeIpv6Groups): An instance of the DceNodeIpv6Groups class\n\n Raises\n ------\n - Se... |
718a7b4ee815e8dac9164815938cb973a2e74646474dbfcb187f929024587f04 | @property
def DceNodeMacGroups(self):
'\n Returns\n -------\n - obj(ixnetwork_restpy.testplatform.sessions.ixnetwork.vport.protocols.dcenodemacgroups_1bea0f65691a805b1d1d4bad054594d3.DceNodeMacGroups): An instance of the DceNodeMacGroups class\n\n Raises\n ------\n - Server... | Returns
-------
- obj(ixnetwork_restpy.testplatform.sessions.ixnetwork.vport.protocols.dcenodemacgroups_1bea0f65691a805b1d1d4bad054594d3.DceNodeMacGroups): An instance of the DceNodeMacGroups class
Raises
------
- ServerError: The server has encountered an uncategorized error condition | ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/dcenetworkrange_de592cf3e2529092f28b2f14e5282a24.py | DceNodeMacGroups | OpenIxia/ixnetwork_restpy | 20 | python | @property
def DceNodeMacGroups(self):
'\n Returns\n -------\n - obj(ixnetwork_restpy.testplatform.sessions.ixnetwork.vport.protocols.dcenodemacgroups_1bea0f65691a805b1d1d4bad054594d3.DceNodeMacGroups): An instance of the DceNodeMacGroups class\n\n Raises\n ------\n - Server... | @property
def DceNodeMacGroups(self):
'\n Returns\n -------\n - obj(ixnetwork_restpy.testplatform.sessions.ixnetwork.vport.protocols.dcenodemacgroups_1bea0f65691a805b1d1d4bad054594d3.DceNodeMacGroups): An instance of the DceNodeMacGroups class\n\n Raises\n ------\n - Server... |
7f7964452dc0f1b992aff91fd7faedda93a01f4b6bdf3e2339fd87cdf13e731e | @property
def DceNodeTopologyRange(self):
'\n Returns\n -------\n - obj(ixnetwork_restpy.testplatform.sessions.ixnetwork.vport.protocols.dcenodetopologyrange_34374b8565456318538178dbf3a92ccb.DceNodeTopologyRange): An instance of the DceNodeTopologyRange class\n\n Raises\n ------\n... | Returns
-------
- obj(ixnetwork_restpy.testplatform.sessions.ixnetwork.vport.protocols.dcenodetopologyrange_34374b8565456318538178dbf3a92ccb.DceNodeTopologyRange): An instance of the DceNodeTopologyRange class
Raises
------
- ServerError: The server has encountered an uncategorized error condition | ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/dcenetworkrange_de592cf3e2529092f28b2f14e5282a24.py | DceNodeTopologyRange | OpenIxia/ixnetwork_restpy | 20 | python | @property
def DceNodeTopologyRange(self):
'\n Returns\n -------\n - obj(ixnetwork_restpy.testplatform.sessions.ixnetwork.vport.protocols.dcenodetopologyrange_34374b8565456318538178dbf3a92ccb.DceNodeTopologyRange): An instance of the DceNodeTopologyRange class\n\n Raises\n ------\n... | @property
def DceNodeTopologyRange(self):
'\n Returns\n -------\n - obj(ixnetwork_restpy.testplatform.sessions.ixnetwork.vport.protocols.dcenodetopologyrange_34374b8565456318538178dbf3a92ccb.DceNodeTopologyRange): An instance of the DceNodeTopologyRange class\n\n Raises\n ------\n... |
32b505c706d120ade9cc505a1d0c1f4b9f63dc51c77e895af0c9c52998aedb4e | @property
def DceOutsideLinks(self):
'\n Returns\n -------\n - obj(ixnetwork_restpy.testplatform.sessions.ixnetwork.vport.protocols.dceoutsidelinks_c8ff484de41176eecca6e12142cde237.DceOutsideLinks): An instance of the DceOutsideLinks class\n\n Raises\n ------\n - ServerErro... | Returns
-------
- obj(ixnetwork_restpy.testplatform.sessions.ixnetwork.vport.protocols.dceoutsidelinks_c8ff484de41176eecca6e12142cde237.DceOutsideLinks): An instance of the DceOutsideLinks class
Raises
------
- ServerError: The server has encountered an uncategorized error condition | ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/dcenetworkrange_de592cf3e2529092f28b2f14e5282a24.py | DceOutsideLinks | OpenIxia/ixnetwork_restpy | 20 | python | @property
def DceOutsideLinks(self):
'\n Returns\n -------\n - obj(ixnetwork_restpy.testplatform.sessions.ixnetwork.vport.protocols.dceoutsidelinks_c8ff484de41176eecca6e12142cde237.DceOutsideLinks): An instance of the DceOutsideLinks class\n\n Raises\n ------\n - ServerErro... | @property
def DceOutsideLinks(self):
'\n Returns\n -------\n - obj(ixnetwork_restpy.testplatform.sessions.ixnetwork.vport.protocols.dceoutsidelinks_c8ff484de41176eecca6e12142cde237.DceOutsideLinks): An instance of the DceOutsideLinks class\n\n Raises\n ------\n - ServerErro... |
4ffe44883e3f871819071be0f16d4577d3ffb0e07ccae962480bb3a5bcd9d978 | @property
def TrillNodeMacRanges(self):
'\n Returns\n -------\n - obj(ixnetwork_restpy.testplatform.sessions.ixnetwork.vport.protocols.trillnodemacranges_4f6b90623cca463478f04a7f774acbab.TrillNodeMacRanges): An instance of the TrillNodeMacRanges class\n\n Raises\n ------\n ... | Returns
-------
- obj(ixnetwork_restpy.testplatform.sessions.ixnetwork.vport.protocols.trillnodemacranges_4f6b90623cca463478f04a7f774acbab.TrillNodeMacRanges): An instance of the TrillNodeMacRanges class
Raises
------
- ServerError: The server has encountered an uncategorized error condition | ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/dcenetworkrange_de592cf3e2529092f28b2f14e5282a24.py | TrillNodeMacRanges | OpenIxia/ixnetwork_restpy | 20 | python | @property
def TrillNodeMacRanges(self):
'\n Returns\n -------\n - obj(ixnetwork_restpy.testplatform.sessions.ixnetwork.vport.protocols.trillnodemacranges_4f6b90623cca463478f04a7f774acbab.TrillNodeMacRanges): An instance of the TrillNodeMacRanges class\n\n Raises\n ------\n ... | @property
def TrillNodeMacRanges(self):
'\n Returns\n -------\n - obj(ixnetwork_restpy.testplatform.sessions.ixnetwork.vport.protocols.trillnodemacranges_4f6b90623cca463478f04a7f774acbab.TrillNodeMacRanges): An instance of the TrillNodeMacRanges class\n\n Raises\n ------\n ... |
fb83e64b1793c9022e9fc1b287a2745d1741828f26add541edaa1ad88c03d562 | @property
def AdvertiseNetworkRange(self):
'\n Returns\n -------\n - bool: If true, this DCE ISIS Network Range is advertised.\n '
return self._get_attribute(self._SDM_ATT_MAP['AdvertiseNetworkRange']) | Returns
-------
- bool: If true, this DCE ISIS Network Range is advertised. | ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/dcenetworkrange_de592cf3e2529092f28b2f14e5282a24.py | AdvertiseNetworkRange | OpenIxia/ixnetwork_restpy | 20 | python | @property
def AdvertiseNetworkRange(self):
'\n Returns\n -------\n - bool: If true, this DCE ISIS Network Range is advertised.\n '
return self._get_attribute(self._SDM_ATT_MAP['AdvertiseNetworkRange']) | @property
def AdvertiseNetworkRange(self):
'\n Returns\n -------\n - bool: If true, this DCE ISIS Network Range is advertised.\n '
return self._get_attribute(self._SDM_ATT_MAP['AdvertiseNetworkRange'])<|docstring|>Returns
-------
- bool: If true, this DCE ISIS Network Range is advert... |
2add1bc191346c5e91a9cd2c616e5daaf103e238e6a87c3b9be5a64971463f69 | @property
def BroadcastRootPriorityStep(self):
'DEPRECATED \n Returns\n -------\n - number: The increment step of the Broadcast Root Priority of this emulated DCE ISIS router.\n '
return self._get_attribute(self._SDM_ATT_MAP['BroadcastRootPriorityStep']) | DEPRECATED
Returns
-------
- number: The increment step of the Broadcast Root Priority of this emulated DCE ISIS router. | ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/dcenetworkrange_de592cf3e2529092f28b2f14e5282a24.py | BroadcastRootPriorityStep | OpenIxia/ixnetwork_restpy | 20 | python | @property
def BroadcastRootPriorityStep(self):
'DEPRECATED \n Returns\n -------\n - number: The increment step of the Broadcast Root Priority of this emulated DCE ISIS router.\n '
return self._get_attribute(self._SDM_ATT_MAP['BroadcastRootPriorityStep']) | @property
def BroadcastRootPriorityStep(self):
'DEPRECATED \n Returns\n -------\n - number: The increment step of the Broadcast Root Priority of this emulated DCE ISIS router.\n '
return self._get_attribute(self._SDM_ATT_MAP['BroadcastRootPriorityStep'])<|docstring|>DEPRECATED
Retur... |
e48aef3a55448cc44bbfbd97b2bf144b861b9c74705baca973c52fd38a2eb894 | @property
def CapabilityRouterId(self):
'\n Returns\n -------\n - str: The IP address format of Capability Router.\n '
return self._get_attribute(self._SDM_ATT_MAP['CapabilityRouterId']) | Returns
-------
- str: The IP address format of Capability Router. | ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/dcenetworkrange_de592cf3e2529092f28b2f14e5282a24.py | CapabilityRouterId | OpenIxia/ixnetwork_restpy | 20 | python | @property
def CapabilityRouterId(self):
'\n Returns\n -------\n - str: The IP address format of Capability Router.\n '
return self._get_attribute(self._SDM_ATT_MAP['CapabilityRouterId']) | @property
def CapabilityRouterId(self):
'\n Returns\n -------\n - str: The IP address format of Capability Router.\n '
return self._get_attribute(self._SDM_ATT_MAP['CapabilityRouterId'])<|docstring|>Returns
-------
- str: The IP address format of Capability Router.<|endoftext|> |
aedc88e9f89cf5dfbff7c4e14feb884ac4283233e6a11efd89f19fd5d8fd7c46 | @property
def EnableHostName(self):
'\n Returns\n -------\n - bool: If true, the given dynamic host name is transmitted in all the packets sent from this router.\n '
return self._get_attribute(self._SDM_ATT_MAP['EnableHostName']) | Returns
-------
- bool: If true, the given dynamic host name is transmitted in all the packets sent from this router. | ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/dcenetworkrange_de592cf3e2529092f28b2f14e5282a24.py | EnableHostName | OpenIxia/ixnetwork_restpy | 20 | python | @property
def EnableHostName(self):
'\n Returns\n -------\n - bool: If true, the given dynamic host name is transmitted in all the packets sent from this router.\n '
return self._get_attribute(self._SDM_ATT_MAP['EnableHostName']) | @property
def EnableHostName(self):
'\n Returns\n -------\n - bool: If true, the given dynamic host name is transmitted in all the packets sent from this router.\n '
return self._get_attribute(self._SDM_ATT_MAP['EnableHostName'])<|docstring|>Returns
-------
- bool: If true, the given... |
f9a6d18d70e8036c6a66c9f4f7ee218eb6b93a041b34481bdec8c4c2acf17ce9 | @property
def EnableMultiTopology(self):
'\n Returns\n -------\n - bool: Enables more than one topology (distribution tree) corresponding to the given R bridge.\n '
return self._get_attribute(self._SDM_ATT_MAP['EnableMultiTopology']) | Returns
-------
- bool: Enables more than one topology (distribution tree) corresponding to the given R bridge. | ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/dcenetworkrange_de592cf3e2529092f28b2f14e5282a24.py | EnableMultiTopology | OpenIxia/ixnetwork_restpy | 20 | python | @property
def EnableMultiTopology(self):
'\n Returns\n -------\n - bool: Enables more than one topology (distribution tree) corresponding to the given R bridge.\n '
return self._get_attribute(self._SDM_ATT_MAP['EnableMultiTopology']) | @property
def EnableMultiTopology(self):
'\n Returns\n -------\n - bool: Enables more than one topology (distribution tree) corresponding to the given R bridge.\n '
return self._get_attribute(self._SDM_ATT_MAP['EnableMultiTopology'])<|docstring|>Returns
-------
- bool: Enables more t... |
97b6bbe900451b6bbf01b0e1585317895228fab0657ca832deb99bc26443679d | @property
def EntryCol(self):
"\n Returns\n -------\n - number: The value in this field is used in combination with entry row to specify which 'virtual' router in the Network Range is connected to the current ISIS L2/L3 Router.\n "
return self._get_attribute(self._SDM_ATT_MAP['EntryC... | Returns
-------
- number: The value in this field is used in combination with entry row to specify which 'virtual' router in the Network Range is connected to the current ISIS L2/L3 Router. | ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/dcenetworkrange_de592cf3e2529092f28b2f14e5282a24.py | EntryCol | OpenIxia/ixnetwork_restpy | 20 | python | @property
def EntryCol(self):
"\n Returns\n -------\n - number: The value in this field is used in combination with entry row to specify which 'virtual' router in the Network Range is connected to the current ISIS L2/L3 Router.\n "
return self._get_attribute(self._SDM_ATT_MAP['EntryC... | @property
def EntryCol(self):
"\n Returns\n -------\n - number: The value in this field is used in combination with entry row to specify which 'virtual' router in the Network Range is connected to the current ISIS L2/L3 Router.\n "
return self._get_attribute(self._SDM_ATT_MAP['EntryC... |
558c6b53e75779e0ffcfcede308597c5f22a1e1306d14d9d4228ffac98e8fa4a | @property
def EntryRow(self):
"\n Returns\n -------\n - number: The value in this field is used in combination with entry column to specify which 'virtual' router in the Network Range is connected to the current ISIS L2/L3 Router.\n "
return self._get_attribute(self._SDM_ATT_MAP['Ent... | Returns
-------
- number: The value in this field is used in combination with entry column to specify which 'virtual' router in the Network Range is connected to the current ISIS L2/L3 Router. | ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/dcenetworkrange_de592cf3e2529092f28b2f14e5282a24.py | EntryRow | OpenIxia/ixnetwork_restpy | 20 | python | @property
def EntryRow(self):
"\n Returns\n -------\n - number: The value in this field is used in combination with entry column to specify which 'virtual' router in the Network Range is connected to the current ISIS L2/L3 Router.\n "
return self._get_attribute(self._SDM_ATT_MAP['Ent... | @property
def EntryRow(self):
"\n Returns\n -------\n - number: The value in this field is used in combination with entry column to specify which 'virtual' router in the Network Range is connected to the current ISIS L2/L3 Router.\n "
return self._get_attribute(self._SDM_ATT_MAP['Ent... |
eae6355ea631e0b09e948be82850c441d9ee3dd0ca1e36a8833daa866cd640d4 | @property
def HostNamePrefix(self):
'\n Returns\n -------\n - str: Allows to add a prefix to the generated host name of this router. When host name prefix is provided, the generated host name is appended by -1 for the first router and subsequently increased by 1 for each router.\n '
... | Returns
-------
- str: Allows to add a prefix to the generated host name of this router. When host name prefix is provided, the generated host name is appended by -1 for the first router and subsequently increased by 1 for each router. | ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/dcenetworkrange_de592cf3e2529092f28b2f14e5282a24.py | HostNamePrefix | OpenIxia/ixnetwork_restpy | 20 | python | @property
def HostNamePrefix(self):
'\n Returns\n -------\n - str: Allows to add a prefix to the generated host name of this router. When host name prefix is provided, the generated host name is appended by -1 for the first router and subsequently increased by 1 for each router.\n '
... | @property
def HostNamePrefix(self):
'\n Returns\n -------\n - str: Allows to add a prefix to the generated host name of this router. When host name prefix is provided, the generated host name is appended by -1 for the first router and subsequently increased by 1 for each router.\n '
... |
4070fce53c7065e083f385236f6cfd9fc99127669505cd1c9a6ece6931e8d75b | @property
def InterfaceMetric(self):
'\n Returns\n -------\n - number: The metric cost associated with this emulated DCE ISIS router.\n '
return self._get_attribute(self._SDM_ATT_MAP['InterfaceMetric']) | Returns
-------
- number: The metric cost associated with this emulated DCE ISIS router. | ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/dcenetworkrange_de592cf3e2529092f28b2f14e5282a24.py | InterfaceMetric | OpenIxia/ixnetwork_restpy | 20 | python | @property
def InterfaceMetric(self):
'\n Returns\n -------\n - number: The metric cost associated with this emulated DCE ISIS router.\n '
return self._get_attribute(self._SDM_ATT_MAP['InterfaceMetric']) | @property
def InterfaceMetric(self):
'\n Returns\n -------\n - number: The metric cost associated with this emulated DCE ISIS router.\n '
return self._get_attribute(self._SDM_ATT_MAP['InterfaceMetric'])<|docstring|>Returns
-------
- number: The metric cost associated with this emulat... |
5069c637ee94f3849791fc961a13d86699635004175b853d250cda9667526d69 | @property
def LinkType(self):
'\n Returns\n -------\n - str(pointToPoint | broadcast): For DCE ISIS emulation type, the type of network link is set to Point-Point and made read-only.\n '
return self._get_attribute(self._SDM_ATT_MAP['LinkType']) | Returns
-------
- str(pointToPoint | broadcast): For DCE ISIS emulation type, the type of network link is set to Point-Point and made read-only. | ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/dcenetworkrange_de592cf3e2529092f28b2f14e5282a24.py | LinkType | OpenIxia/ixnetwork_restpy | 20 | python | @property
def LinkType(self):
'\n Returns\n -------\n - str(pointToPoint | broadcast): For DCE ISIS emulation type, the type of network link is set to Point-Point and made read-only.\n '
return self._get_attribute(self._SDM_ATT_MAP['LinkType']) | @property
def LinkType(self):
'\n Returns\n -------\n - str(pointToPoint | broadcast): For DCE ISIS emulation type, the type of network link is set to Point-Point and made read-only.\n '
return self._get_attribute(self._SDM_ATT_MAP['LinkType'])<|docstring|>Returns
-------
- str(point... |
4b71f3f5de588b76d21cadce8d3f78fa1583c18b121a3eb8febea21397644d1c | @property
def NoOfCols(self):
'\n Returns\n -------\n - number: The value in this field is used in combination with number of rows to create a matrix (grid) for a network range.\n '
return self._get_attribute(self._SDM_ATT_MAP['NoOfCols']) | Returns
-------
- number: The value in this field is used in combination with number of rows to create a matrix (grid) for a network range. | ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/dcenetworkrange_de592cf3e2529092f28b2f14e5282a24.py | NoOfCols | OpenIxia/ixnetwork_restpy | 20 | python | @property
def NoOfCols(self):
'\n Returns\n -------\n - number: The value in this field is used in combination with number of rows to create a matrix (grid) for a network range.\n '
return self._get_attribute(self._SDM_ATT_MAP['NoOfCols']) | @property
def NoOfCols(self):
'\n Returns\n -------\n - number: The value in this field is used in combination with number of rows to create a matrix (grid) for a network range.\n '
return self._get_attribute(self._SDM_ATT_MAP['NoOfCols'])<|docstring|>Returns
-------
- number: The va... |
2e659dd06fac2a90ff60a31366ca7294e2fac49a174f2f0c9e01264cf688cccc | @property
def NoOfRows(self):
'\n Returns\n -------\n - number: The value in this field is used in combination with number of columns to create a matrix (grid) for a network range.\n '
return self._get_attribute(self._SDM_ATT_MAP['NoOfRows']) | Returns
-------
- number: The value in this field is used in combination with number of columns to create a matrix (grid) for a network range. | ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/dcenetworkrange_de592cf3e2529092f28b2f14e5282a24.py | NoOfRows | OpenIxia/ixnetwork_restpy | 20 | python | @property
def NoOfRows(self):
'\n Returns\n -------\n - number: The value in this field is used in combination with number of columns to create a matrix (grid) for a network range.\n '
return self._get_attribute(self._SDM_ATT_MAP['NoOfRows']) | @property
def NoOfRows(self):
'\n Returns\n -------\n - number: The value in this field is used in combination with number of columns to create a matrix (grid) for a network range.\n '
return self._get_attribute(self._SDM_ATT_MAP['NoOfRows'])<|docstring|>Returns
-------
- number: The... |
2b88ab5a8e6f77ff4d189445d4c5c39a6e2ddcbcc399494df09023b1a909c40e | @property
def NumberOfMultiDestinationTrees(self):
'DEPRECATED \n Returns\n -------\n - number: The number of Multi-Destination Trees for the DCE ISIS router.\n '
return self._get_attribute(self._SDM_ATT_MAP['NumberOfMultiDestinationTrees']) | DEPRECATED
Returns
-------
- number: The number of Multi-Destination Trees for the DCE ISIS router. | ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/dcenetworkrange_de592cf3e2529092f28b2f14e5282a24.py | NumberOfMultiDestinationTrees | OpenIxia/ixnetwork_restpy | 20 | python | @property
def NumberOfMultiDestinationTrees(self):
'DEPRECATED \n Returns\n -------\n - number: The number of Multi-Destination Trees for the DCE ISIS router.\n '
return self._get_attribute(self._SDM_ATT_MAP['NumberOfMultiDestinationTrees']) | @property
def NumberOfMultiDestinationTrees(self):
'DEPRECATED \n Returns\n -------\n - number: The number of Multi-Destination Trees for the DCE ISIS router.\n '
return self._get_attribute(self._SDM_ATT_MAP['NumberOfMultiDestinationTrees'])<|docstring|>DEPRECATED
Returns
-------
- ... |
d622e440cc9dbe6a450cbeb9bd165d6757560060fd38236988951ac52778efc3 | @property
def StartBroadcastRootPriority(self):
'DEPRECATED \n Returns\n -------\n - number: The starting value of the Broadcast Root Priority of this DCE ISIS router.\n '
return self._get_attribute(self._SDM_ATT_MAP['StartBroadcastRootPriority']) | DEPRECATED
Returns
-------
- number: The starting value of the Broadcast Root Priority of this DCE ISIS router. | ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/dcenetworkrange_de592cf3e2529092f28b2f14e5282a24.py | StartBroadcastRootPriority | OpenIxia/ixnetwork_restpy | 20 | python | @property
def StartBroadcastRootPriority(self):
'DEPRECATED \n Returns\n -------\n - number: The starting value of the Broadcast Root Priority of this DCE ISIS router.\n '
return self._get_attribute(self._SDM_ATT_MAP['StartBroadcastRootPriority']) | @property
def StartBroadcastRootPriority(self):
'DEPRECATED \n Returns\n -------\n - number: The starting value of the Broadcast Root Priority of this DCE ISIS router.\n '
return self._get_attribute(self._SDM_ATT_MAP['StartBroadcastRootPriority'])<|docstring|>DEPRECATED
Returns
----... |
29e224da4f13ab2f8a60fb483bce7dd5966b4576fbb9788f737344516b287e1e | @property
def StartSwitchId(self):
'DEPRECATED \n Returns\n -------\n - number: The Switch ID of this emulated DCE ISIS router.\n '
return self._get_attribute(self._SDM_ATT_MAP['StartSwitchId']) | DEPRECATED
Returns
-------
- number: The Switch ID of this emulated DCE ISIS router. | ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/dcenetworkrange_de592cf3e2529092f28b2f14e5282a24.py | StartSwitchId | OpenIxia/ixnetwork_restpy | 20 | python | @property
def StartSwitchId(self):
'DEPRECATED \n Returns\n -------\n - number: The Switch ID of this emulated DCE ISIS router.\n '
return self._get_attribute(self._SDM_ATT_MAP['StartSwitchId']) | @property
def StartSwitchId(self):
'DEPRECATED \n Returns\n -------\n - number: The Switch ID of this emulated DCE ISIS router.\n '
return self._get_attribute(self._SDM_ATT_MAP['StartSwitchId'])<|docstring|>DEPRECATED
Returns
-------
- number: The Switch ID of this emulated DCE ISIS... |
505a373eb4d72ed0a2c9aa80fa707d946d0f1e236980b9123115f505fee0a25c | @property
def StartSystemId(self):
'\n Returns\n -------\n - str: The System ID assigned to the starting DCE ISIS router in this network range.\n '
return self._get_attribute(self._SDM_ATT_MAP['StartSystemId']) | Returns
-------
- str: The System ID assigned to the starting DCE ISIS router in this network range. | ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/dcenetworkrange_de592cf3e2529092f28b2f14e5282a24.py | StartSystemId | OpenIxia/ixnetwork_restpy | 20 | python | @property
def StartSystemId(self):
'\n Returns\n -------\n - str: The System ID assigned to the starting DCE ISIS router in this network range.\n '
return self._get_attribute(self._SDM_ATT_MAP['StartSystemId']) | @property
def StartSystemId(self):
'\n Returns\n -------\n - str: The System ID assigned to the starting DCE ISIS router in this network range.\n '
return self._get_attribute(self._SDM_ATT_MAP['StartSystemId'])<|docstring|>Returns
-------
- str: The System ID assigned to the starting... |
20a82cf4fe6c56ac83725e07835d1fd46d327d92395192ca7751d10fcc302664 | @property
def SwitchIdPriority(self):
'DEPRECATED \n Returns\n -------\n - number: The Switch ID priority of this DCE ISIS router.\n '
return self._get_attribute(self._SDM_ATT_MAP['SwitchIdPriority']) | DEPRECATED
Returns
-------
- number: The Switch ID priority of this DCE ISIS router. | ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/dcenetworkrange_de592cf3e2529092f28b2f14e5282a24.py | SwitchIdPriority | OpenIxia/ixnetwork_restpy | 20 | python | @property
def SwitchIdPriority(self):
'DEPRECATED \n Returns\n -------\n - number: The Switch ID priority of this DCE ISIS router.\n '
return self._get_attribute(self._SDM_ATT_MAP['SwitchIdPriority']) | @property
def SwitchIdPriority(self):
'DEPRECATED \n Returns\n -------\n - number: The Switch ID priority of this DCE ISIS router.\n '
return self._get_attribute(self._SDM_ATT_MAP['SwitchIdPriority'])<|docstring|>DEPRECATED
Returns
-------
- number: The Switch ID priority of this DC... |
1466a7f3b9f3b789fb0c89dbb00510d5c429410114a49adf360e05d26ebd2106 | @property
def SwitchIdStep(self):
'DEPRECATED \n Returns\n -------\n - number: The increment value by which the Switch ID of the DCE ISIS router increases.\n '
return self._get_attribute(self._SDM_ATT_MAP['SwitchIdStep']) | DEPRECATED
Returns
-------
- number: The increment value by which the Switch ID of the DCE ISIS router increases. | ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/dcenetworkrange_de592cf3e2529092f28b2f14e5282a24.py | SwitchIdStep | OpenIxia/ixnetwork_restpy | 20 | python | @property
def SwitchIdStep(self):
'DEPRECATED \n Returns\n -------\n - number: The increment value by which the Switch ID of the DCE ISIS router increases.\n '
return self._get_attribute(self._SDM_ATT_MAP['SwitchIdStep']) | @property
def SwitchIdStep(self):
'DEPRECATED \n Returns\n -------\n - number: The increment value by which the Switch ID of the DCE ISIS router increases.\n '
return self._get_attribute(self._SDM_ATT_MAP['SwitchIdStep'])<|docstring|>DEPRECATED
Returns
-------
- number: The incremen... |
dc3a134fdd524a4ea95f6ec0fadaed10927ee50daa63b9d99b488f89b850ede8 | @property
def SystemIdIncrementBy(self):
'\n Returns\n -------\n - str: The incremented System ID used when more than one router is emulated. The increment value is added to the previous System ID for each additional emulated router in this network range.\n '
return self._get_attribu... | Returns
-------
- str: The incremented System ID used when more than one router is emulated. The increment value is added to the previous System ID for each additional emulated router in this network range. | ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/dcenetworkrange_de592cf3e2529092f28b2f14e5282a24.py | SystemIdIncrementBy | OpenIxia/ixnetwork_restpy | 20 | python | @property
def SystemIdIncrementBy(self):
'\n Returns\n -------\n - str: The incremented System ID used when more than one router is emulated. The increment value is added to the previous System ID for each additional emulated router in this network range.\n '
return self._get_attribu... | @property
def SystemIdIncrementBy(self):
'\n Returns\n -------\n - str: The incremented System ID used when more than one router is emulated. The increment value is added to the previous System ID for each additional emulated router in this network range.\n '
return self._get_attribu... |
41c0ab0fc1a1feb48b6dad9e36f023d5b8042a2a6872c8d765a4cd73468972a5 | def update(self, AdvertiseNetworkRange=None, BroadcastRootPriorityStep=None, CapabilityRouterId=None, EnableHostName=None, EnableMultiTopology=None, EntryCol=None, EntryRow=None, HostNamePrefix=None, InterfaceMetric=None, NoOfCols=None, NoOfRows=None, NumberOfMultiDestinationTrees=None, StartBroadcastRootPriority=None,... | Updates dceNetworkRange resource on the server.
Args
----
- AdvertiseNetworkRange (bool): If true, this DCE ISIS Network Range is advertised.
- BroadcastRootPriorityStep (number): The increment step of the Broadcast Root Priority of this emulated DCE ISIS router.
- CapabilityRouterId (str): The IP address format of Ca... | ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/dcenetworkrange_de592cf3e2529092f28b2f14e5282a24.py | update | OpenIxia/ixnetwork_restpy | 20 | python | def update(self, AdvertiseNetworkRange=None, BroadcastRootPriorityStep=None, CapabilityRouterId=None, EnableHostName=None, EnableMultiTopology=None, EntryCol=None, EntryRow=None, HostNamePrefix=None, InterfaceMetric=None, NoOfCols=None, NoOfRows=None, NumberOfMultiDestinationTrees=None, StartBroadcastRootPriority=None,... | def update(self, AdvertiseNetworkRange=None, BroadcastRootPriorityStep=None, CapabilityRouterId=None, EnableHostName=None, EnableMultiTopology=None, EntryCol=None, EntryRow=None, HostNamePrefix=None, InterfaceMetric=None, NoOfCols=None, NoOfRows=None, NumberOfMultiDestinationTrees=None, StartBroadcastRootPriority=None,... |
78eef01f31f89b3ee5d521315d83d5a317993aa1a3ef604e45c999be5d0e6dd6 | def add(self, AdvertiseNetworkRange=None, BroadcastRootPriorityStep=None, CapabilityRouterId=None, EnableHostName=None, EnableMultiTopology=None, EntryCol=None, EntryRow=None, HostNamePrefix=None, InterfaceMetric=None, NoOfCols=None, NoOfRows=None, NumberOfMultiDestinationTrees=None, StartBroadcastRootPriority=None, St... | Adds a new dceNetworkRange resource on the server and adds it to the container.
Args
----
- AdvertiseNetworkRange (bool): If true, this DCE ISIS Network Range is advertised.
- BroadcastRootPriorityStep (number): The increment step of the Broadcast Root Priority of this emulated DCE ISIS router.
- CapabilityRouterId (s... | ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/dcenetworkrange_de592cf3e2529092f28b2f14e5282a24.py | add | OpenIxia/ixnetwork_restpy | 20 | python | def add(self, AdvertiseNetworkRange=None, BroadcastRootPriorityStep=None, CapabilityRouterId=None, EnableHostName=None, EnableMultiTopology=None, EntryCol=None, EntryRow=None, HostNamePrefix=None, InterfaceMetric=None, NoOfCols=None, NoOfRows=None, NumberOfMultiDestinationTrees=None, StartBroadcastRootPriority=None, St... | def add(self, AdvertiseNetworkRange=None, BroadcastRootPriorityStep=None, CapabilityRouterId=None, EnableHostName=None, EnableMultiTopology=None, EntryCol=None, EntryRow=None, HostNamePrefix=None, InterfaceMetric=None, NoOfCols=None, NoOfRows=None, NumberOfMultiDestinationTrees=None, StartBroadcastRootPriority=None, St... |
d4829426e4b066ed6a8c1598b99ec6dee746d6f74c6c6ff61338752aceb6c0db | def remove(self):
'Deletes all the contained dceNetworkRange resources in this instance from the server.\n\n Raises\n ------\n - NotFoundError: The requested resource does not exist on the server\n - ServerError: The server has encountered an uncategorized error condition\n '
... | Deletes all the contained dceNetworkRange resources in this instance from the server.
Raises
------
- NotFoundError: The requested resource does not exist on the server
- ServerError: The server has encountered an uncategorized error condition | ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/dcenetworkrange_de592cf3e2529092f28b2f14e5282a24.py | remove | OpenIxia/ixnetwork_restpy | 20 | python | def remove(self):
'Deletes all the contained dceNetworkRange resources in this instance from the server.\n\n Raises\n ------\n - NotFoundError: The requested resource does not exist on the server\n - ServerError: The server has encountered an uncategorized error condition\n '
... | def remove(self):
'Deletes all the contained dceNetworkRange resources in this instance from the server.\n\n Raises\n ------\n - NotFoundError: The requested resource does not exist on the server\n - ServerError: The server has encountered an uncategorized error condition\n '
... |
3a050f74399f80b3e45461bf3b756aff8dd10f52d35f98abb33faf1093e325e4 | def find(self, AdvertiseNetworkRange=None, BroadcastRootPriorityStep=None, CapabilityRouterId=None, EnableHostName=None, EnableMultiTopology=None, EntryCol=None, EntryRow=None, HostNamePrefix=None, InterfaceMetric=None, LinkType=None, NoOfCols=None, NoOfRows=None, NumberOfMultiDestinationTrees=None, StartBroadcastRootP... | Finds and retrieves dceNetworkRange resources from the server.
All named parameters are evaluated on the server using regex. The named parameters can be used to selectively retrieve dceNetworkRange resources from the server.
To retrieve an exact match ensure the parameter value starts with ^ and ends with $
By default... | ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/dcenetworkrange_de592cf3e2529092f28b2f14e5282a24.py | find | OpenIxia/ixnetwork_restpy | 20 | python | def find(self, AdvertiseNetworkRange=None, BroadcastRootPriorityStep=None, CapabilityRouterId=None, EnableHostName=None, EnableMultiTopology=None, EntryCol=None, EntryRow=None, HostNamePrefix=None, InterfaceMetric=None, LinkType=None, NoOfCols=None, NoOfRows=None, NumberOfMultiDestinationTrees=None, StartBroadcastRootP... | def find(self, AdvertiseNetworkRange=None, BroadcastRootPriorityStep=None, CapabilityRouterId=None, EnableHostName=None, EnableMultiTopology=None, EntryCol=None, EntryRow=None, HostNamePrefix=None, InterfaceMetric=None, LinkType=None, NoOfCols=None, NoOfRows=None, NumberOfMultiDestinationTrees=None, StartBroadcastRootP... |
c0bb1063636b99ce46a78bfbf68bd4c0a9c2e21da1934e1af959723875e168e2 | def read(self, href):
'Retrieves a single instance of dceNetworkRange data from the server.\n\n Args\n ----\n - href (str): An href to the instance to be retrieved\n\n Returns\n -------\n - self: This instance with the dceNetworkRange resources from the server available thr... | Retrieves a single instance of dceNetworkRange data from the server.
Args
----
- href (str): An href to the instance to be retrieved
Returns
-------
- self: This instance with the dceNetworkRange resources from the server available through an iterator or index
Raises
------
- NotFoundError: The requested resource do... | ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/dcenetworkrange_de592cf3e2529092f28b2f14e5282a24.py | read | OpenIxia/ixnetwork_restpy | 20 | python | def read(self, href):
'Retrieves a single instance of dceNetworkRange data from the server.\n\n Args\n ----\n - href (str): An href to the instance to be retrieved\n\n Returns\n -------\n - self: This instance with the dceNetworkRange resources from the server available thr... | def read(self, href):
'Retrieves a single instance of dceNetworkRange data from the server.\n\n Args\n ----\n - href (str): An href to the instance to be retrieved\n\n Returns\n -------\n - self: This instance with the dceNetworkRange resources from the server available thr... |
c9f25d6cd75e830cebcfd456cca66f8bc42c29acd20d640822f133ad59505866 | def add_classpaths(self, *args):
'\n Add additional entries to the classpath when starting the JVM\n '
self.class_path += args | Add additional entries to the classpath when starting the JVM | pyhidra/launcher.py | add_classpaths | Defense-Cyber-Crime-Center/pyhidra | 10 | python | def add_classpaths(self, *args):
'\n \n '
self.class_path += args | def add_classpaths(self, *args):
'\n \n '
self.class_path += args<|docstring|>Add additional entries to the classpath when starting the JVM<|endoftext|> |
619330008a174bfb5695e8ecbd1f78d8ddd25d4fc681d905499a521fb46956e9 | def add_vmargs(self, *args):
'\n Add additional vmargs for launching the JVM\n '
self.vm_args += args | Add additional vmargs for launching the JVM | pyhidra/launcher.py | add_vmargs | Defense-Cyber-Crime-Center/pyhidra | 10 | python | def add_vmargs(self, *args):
'\n \n '
self.vm_args += args | def add_vmargs(self, *args):
'\n \n '
self.vm_args += args<|docstring|>Add additional vmargs for launching the JVM<|endoftext|> |
0a345e9c63d06da8650215bb2c9e3b560af2419b03fed1aac2bacc560445d7e7 | @classmethod
def check_ghidra_version(cls):
'\n Checks if the currently installed Ghidra version is supported.\n The launcher will report the problem and terminate if it is not supported.\n '
if (CURRENT_GHIDRA_VERSION < MINIMUM_GHIDRA_VERSION):
cls._report_fatal_error('Unsupported ... | Checks if the currently installed Ghidra version is supported.
The launcher will report the problem and terminate if it is not supported. | pyhidra/launcher.py | check_ghidra_version | Defense-Cyber-Crime-Center/pyhidra | 10 | python | @classmethod
def check_ghidra_version(cls):
'\n Checks if the currently installed Ghidra version is supported.\n The launcher will report the problem and terminate if it is not supported.\n '
if (CURRENT_GHIDRA_VERSION < MINIMUM_GHIDRA_VERSION):
cls._report_fatal_error('Unsupported ... | @classmethod
def check_ghidra_version(cls):
'\n Checks if the currently installed Ghidra version is supported.\n The launcher will report the problem and terminate if it is not supported.\n '
if (CURRENT_GHIDRA_VERSION < MINIMUM_GHIDRA_VERSION):
cls._report_fatal_error('Unsupported ... |
0edf7fc7e38e8c41e7e816cc45e00b35782c2da8cf04ae1faebf8c74f32d7568 | def start(self):
'\n Starts Jpype connection to Ghidra (if not already started).\n '
if (not jpype.isJVMStarted()):
self.check_ghidra_version()
if (self.java_home is None):
java_home = subprocess.check_output(_GET_JAVA_HOME, encoding='utf-8', shell=True)
sel... | Starts Jpype connection to Ghidra (if not already started). | pyhidra/launcher.py | start | Defense-Cyber-Crime-Center/pyhidra | 10 | python | def start(self):
'\n \n '
if (not jpype.isJVMStarted()):
self.check_ghidra_version()
if (self.java_home is None):
java_home = subprocess.check_output(_GET_JAVA_HOME, encoding='utf-8', shell=True)
self.java_home = Path(java_home.rstrip())
jvm = _get_l... | def start(self):
'\n \n '
if (not jpype.isJVMStarted()):
self.check_ghidra_version()
if (self.java_home is None):
java_home = subprocess.check_output(_GET_JAVA_HOME, encoding='utf-8', shell=True)
self.java_home = Path(java_home.rstrip())
jvm = _get_l... |
6fe8bd2f910ae57516a780f574c800f2efd816e4dd3f1c5fc1d504a9b581d1fc | @staticmethod
def has_launched() -> bool:
'\n Checks if jpype has started and if Ghidra has been fully initialized.\n '
if (not jpype.isJVMStarted()):
return False
from ghidra.framework import Application
return Application.isInitialized() | Checks if jpype has started and if Ghidra has been fully initialized. | pyhidra/launcher.py | has_launched | Defense-Cyber-Crime-Center/pyhidra | 10 | python | @staticmethod
def has_launched() -> bool:
'\n \n '
if (not jpype.isJVMStarted()):
return False
from ghidra.framework import Application
return Application.isInitialized() | @staticmethod
def has_launched() -> bool:
'\n \n '
if (not jpype.isJVMStarted()):
return False
from ghidra.framework import Application
return Application.isInitialized()<|docstring|>Checks if jpype has started and if Ghidra has been fully initialized.<|endoftext|> |
448896cecf032606eee9d06546798fb52900936a897fba5ccd78a8b44a55c69e | def initialize_ghidra(self, headless=True):
'\n Finished Ghidra initialization\n\n :param headless: whether or not to initialize Ghidra in headless mode.\n (Defaults to True)\n '
from ghidra import GhidraRun
from ghidra.framework import Application, HeadlessGhidraApplicationC... | Finished Ghidra initialization
:param headless: whether or not to initialize Ghidra in headless mode.
(Defaults to True) | pyhidra/launcher.py | initialize_ghidra | Defense-Cyber-Crime-Center/pyhidra | 10 | python | def initialize_ghidra(self, headless=True):
'\n Finished Ghidra initialization\n\n :param headless: whether or not to initialize Ghidra in headless mode.\n (Defaults to True)\n '
from ghidra import GhidraRun
from ghidra.framework import Application, HeadlessGhidraApplicationC... | def initialize_ghidra(self, headless=True):
'\n Finished Ghidra initialization\n\n :param headless: whether or not to initialize Ghidra in headless mode.\n (Defaults to True)\n '
from ghidra import GhidraRun
from ghidra.framework import Application, HeadlessGhidraApplicationC... |
4c7ed2d170e81945b53f5bc801976beaeb7933916e9f73037d931fe90d59d2d0 | def arrows(xstart, ystart, xend, yend, *args, ax=None, vertical=False, **kwargs):
" Utility wrapper around matplotlib.axes.Axes.quiver.\n Quiver uses locations and direction vectors usually.\n Here these are instead calculated automatically\n from the start and endpoints of the arrow.\n The function als... | Utility wrapper around matplotlib.axes.Axes.quiver.
Quiver uses locations and direction vectors usually.
Here these are instead calculated automatically
from the start and endpoints of the arrow.
The function also automatically flips the x and y coordinates if the pitch is vertical.
Plot a 2D field of arrows.
See: htt... | mplsoccer/quiver.py | arrows | MalreddyNitin/mplsoccer | 157 | python | def arrows(xstart, ystart, xend, yend, *args, ax=None, vertical=False, **kwargs):
" Utility wrapper around matplotlib.axes.Axes.quiver.\n Quiver uses locations and direction vectors usually.\n Here these are instead calculated automatically\n from the start and endpoints of the arrow.\n The function als... | def arrows(xstart, ystart, xend, yend, *args, ax=None, vertical=False, **kwargs):
" Utility wrapper around matplotlib.axes.Axes.quiver.\n Quiver uses locations and direction vectors usually.\n Here these are instead calculated automatically\n from the start and endpoints of the arrow.\n The function als... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.