本文整理汇总了Python中Acspy.Clients.SimpleClient.PySimpleClient.findComponents方法的典型用法代码示例。如果您正苦于以下问题:Python PySimpleClient.findComponents方法的具体用法?Python PySimpleClient.findComponents怎么用?Python PySimpleClient.findComponents使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Acspy.Clients.SimpleClient.PySimpleClient
的用法示例。
在下文中一共展示了PySimpleClient.findComponents方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: PySimpleClient
# 需要导入模块: from Acspy.Clients.SimpleClient import PySimpleClient [as 别名]
# 或者: from Acspy.Clients.SimpleClient.PySimpleClient import findComponents [as 别名]
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# "@(#) $Id$"
#
# who when what
# -------- -------- ----------------------------------------------
# nsaez 2011-03-20 created
#
from CCL.Cryostat import Cryostat
from Acspy.Clients.SimpleClient import PySimpleClient
c = PySimpleClient()
cry_list = c.findComponents(curl_wildcard='*', type_wildcard='*Cryostat*', activated=1)
antennas = []
for i in cry_list:
antennas.append(i.split('/')[1])
for antenna in antennas:
try:
cry = Cryostat(antenna)
print "Antenna: %s , GET_SERIAL_NUMBER %s " % (antenna,str(cry.GET_SERIAL_NUMBER()[0]))
except:
pass
#
# ___oOo___