updated graphs for BNN code, removed phiflow warnings via json-cleanup script
This commit is contained in:
parent
410454d156
commit
e24d1b3ecc
File diff suppressed because one or more lines are too long
@ -14,11 +14,12 @@ if len(sys.argv)>1:
|
|||||||
|
|
||||||
fileList = [
|
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
|
||||||
]
|
]
|
||||||
|
|
||||||
#fileList = [ "diffphys-code-burgers.ipynb"] # debug
|
#fileList = [ "diffphys-code-burgers.ipynb"] # debug, only 1 file
|
||||||
#fileList = [ "diffphys-code-ns.ipynb"] # debug
|
#fileList = [ "diffphys-code-ns.ipynb"] # debug, only 1 file
|
||||||
|
|
||||||
|
|
||||||
# main
|
# main
|
||||||
@ -28,8 +29,7 @@ for fnOut in fileList:
|
|||||||
fn0 = fnOut[:-5] + "bak"
|
fn0 = fnOut[:-5] + "bak"
|
||||||
fn = fn0 + "0"; cnt = 0
|
fn = fn0 + "0"; cnt = 0
|
||||||
while os.path.isfile(fn):
|
while os.path.isfile(fn):
|
||||||
#print("Error: "+fn+" already exists!")
|
#print("Error: "+fn+" already exists!"); exit(1)
|
||||||
#exit(1)
|
|
||||||
print("Warning: "+fn+" already exists!")
|
print("Warning: "+fn+" already exists!")
|
||||||
fn = fn0 + format(cnt); cnt=cnt+1
|
fn = fn0 + format(cnt); cnt=cnt+1
|
||||||
|
|
||||||
@ -52,6 +52,7 @@ for fnOut in fileList:
|
|||||||
res.append( re.compile(r"DeprecationWarning:") )
|
res.append( re.compile(r"DeprecationWarning:") )
|
||||||
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
|
||||||
# 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"
|
||||||
|
@ -5,7 +5,7 @@ echo WARNING - still requires one manual quit of first pdf/latex pass, use shift
|
|||||||
echo
|
echo
|
||||||
|
|
||||||
# do clean git checkout for changes from json-cleanup-for-pdf.py?
|
# do clean git checkout for changes from json-cleanup-for-pdf.py?
|
||||||
# git checkout diffphys-code-burgers.ipynb diffphys-code-ns.ipynb diffphys-code-sol.ipynb physicalloss-code.ipynb bayesian-code.ipynb supervised-airfoils.ipynb
|
# git checkout diffphys-code-burgers.ipynb diffphys-code-ns.ipynb diffphys-code-sol.ipynb physicalloss-code.ipynb bayesian-code.ipynb supervised-airfoils.ipynb reinflearn-code.ipynb
|
||||||
|
|
||||||
# warning - modifies notebooks!
|
# warning - modifies notebooks!
|
||||||
python3.7 json-cleanup-for-pdf.py
|
python3.7 json-cleanup-for-pdf.py
|
||||||
|
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user