예제 #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
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