updated PG simple example

This commit is contained in:
NT 2022-03-18 13:57:00 +08:00
parent e5b3776c3b
commit 10d2815754
2 changed files with 40 additions and 52 deletions

View File

@ -16,6 +16,7 @@ fileList = [
"diffphys-code-burgers.ipynb", "diffphys-code-ns.ipynb", "diffphys-code-sol.ipynb", "physicalloss-code.ipynb", # TF "diffphys-code-burgers.ipynb", "diffphys-code-ns.ipynb", "diffphys-code-sol.ipynb", "physicalloss-code.ipynb", # TF
"bayesian-code.ipynb", "supervised-airfoils.ipynb", # pytorch "bayesian-code.ipynb", "supervised-airfoils.ipynb", # pytorch
"reinflearn-code.ipynb", # phiflow "reinflearn-code.ipynb", # phiflow
"physgrad-comparison.ipynb", # jax
] ]
#fileList = [ "diffphys-code-burgers.ipynb"] # debug, only 1 file #fileList = [ "diffphys-code-burgers.ipynb"] # debug, only 1 file
@ -53,6 +54,7 @@ for fnOut in fileList:
res.append( re.compile(r"InsecureRequestWarning") ) # for https download res.append( re.compile(r"InsecureRequestWarning") ) # for https download
res.append( re.compile(r"Building wheel") ) # phiflow install, also gives weird unicode characters res.append( re.compile(r"Building wheel") ) # phiflow install, also gives weird unicode characters
res.append( re.compile(r"warnings.warn") ) # phiflow warnings res.append( re.compile(r"warnings.warn") ) # phiflow warnings
res.append( re.compile(r"WARNING:absl") ) # jax warnings
# remove all "warnings.warn" from phiflow? # remove all "warnings.warn" from phiflow?
# shorten data line: "0.008612174447657694, 0.02584669669548606, 0.043136357266407785" # shorten data line: "0.008612174447657694, 0.02584669669548606, 0.043136357266407785"

File diff suppressed because one or more lines are too long