コード例 #1
0
ファイル: canutils.py プロジェクト: amunoz1/idh
def readTensors(name):
  """
  Reads tensors from file with specified basename; e.g., "tpet".
  """
  fis = FileInputStream(seismicDir+name+".dat")
  ois = PythonObjectInputStream(fis)
  tensors = ois.readObject()
  ois.close()
  return tensors
コード例 #2
0
ファイル: canutils.py プロジェクト: xuewengeophysics/idh
def readTensors(name):
  """
  Reads tensors from file with specified basename; e.g., "tpet".
  """
  fis = FileInputStream(seismicDir+name+".dat")
  ois = PythonObjectInputStream(fis)
  tensors = ois.readObject()
  ois.close()
  return tensors
コード例 #3
0
ファイル: utils.py プロジェクト: Jookai/xmw
def readObject(name):
  fis = FileInputStream(seismicDir+name+".dat")
  ois = PythonObjectInputStream(fis)
  obj = ois.readObject()
  ois.close()
  return obj
コード例 #4
0
def readObject(name):
    fis = FileInputStream(seismicDir + name + ".dat")
    ois = PythonObjectInputStream(fis)
    obj = ois.readObject()
    ois.close()
    return obj