pyCAPS
pyCAPS: A Python Extension Module for CAPS
problem.py

Basic example use case of the initiation (pyCAPS.capsProblem.__init__) and termination (pyCAPS.capsProblem.closeCAPS)

1 # Use: Initiate/close problem and review analysis intentions dictionary.
2 
3 # Import pyCAPS module (Linux and OSx = pyCAPS.so file; Windows = pyCAPS.pyd file)
4 import pyCAPS
5 
6 # Instantiate our CAPS problem "myProblem"
7 print("Initiating capsProblem")
8 myProblem = pyCAPS.capsProblem()
9 
10 # Available capFidelities may viewed at any time with:
11 print("capsIntent = ")
12 for intent, value in zip(myProblem.analysisIntent.keys(), myProblem.analysisIntent.values()):
13  print ("\tName = " + intent + ", Value = " + str(value))
14 
15 # Close our problem
16 print("Closing our problem")
17 myProblem.closeCAPS()