change style to SOLARIS
This commit is contained in:
parent
56c1d0f9f3
commit
306789a0e1
BIN
SOLARIS_logo.png
Normal file
BIN
SOLARIS_logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 215 KiB |
|
@ -63,7 +63,7 @@ else:
|
|||
fileitem = form['filename4']
|
||||
if fileitem.filename:
|
||||
fn4 = os.path.basename(fileitem.filename)
|
||||
if fn4.endswith('') :
|
||||
if fn4.endswith('') or fn4.endswith('.txt') :
|
||||
open('files/' + fn4, 'wb').write(fileitem.file.read())
|
||||
message4 = 'The file "' + fn4 + '" was uploaded successfully'
|
||||
else:
|
||||
|
@ -79,7 +79,7 @@ if fileitem.filename:
|
|||
open('files/' + fn4a, 'wb').write(fileitem.file.read())
|
||||
message4a = 'The file "' + fn4a + '" was uploaded successfully'
|
||||
else:
|
||||
message4a = 'Need to be in extension file'
|
||||
message4a = 'Need to be *.in file'
|
||||
fn4a = ""
|
||||
else:
|
||||
message4a = 'No file was uploaded'
|
||||
|
@ -130,7 +130,6 @@ if fn4!="" or fn4a!="":
|
|||
os.system(cmd)
|
||||
isPtolemy = True
|
||||
if os.path.exists(outFile) :
|
||||
dwba_2 = outFile
|
||||
dwba_3 = subprocess.run(["../Cleopatra/ExtractXSec", outFile, "1"], stdout=subprocess.PIPE).stdout.decode('utf-8')
|
||||
dwbaRootFile = fn4 + ".root"
|
||||
dwbaExFile = fn4 + ".Ex.txt"
|
||||
|
@ -139,7 +138,7 @@ if fn4!="" or fn4a!="":
|
|||
isDWBA = True
|
||||
|
||||
if fn1=="" or fn2=="":
|
||||
result = "imcomplete input files for kinematocs Simulation"
|
||||
result = "imcomplete input files for Kinematics Simulation"
|
||||
pngName = ""
|
||||
haha = ""
|
||||
else:
|
||||
|
@ -165,6 +164,7 @@ print ("Content-Type: text/html\r\n\r\n")
|
|||
print ("<html>")
|
||||
print ("<style> img {max-width: 100%} </style>")
|
||||
print ("<style> body { font-family: courier, courier new, serif;} </style>")
|
||||
print ("<style> a { color: #F7CF3C;} </style>")
|
||||
print ("<body>")
|
||||
|
||||
if dwbaPNG != "" :
|
||||
|
@ -176,14 +176,16 @@ if dwbaPNG != "" :
|
|||
if pngName != "" :
|
||||
print ("<img src=\"files/%s\">" % pngName)
|
||||
|
||||
print ("<br>Reaction File : %s" % message1)
|
||||
print ("<br>DetectorGeo File : %s" % message2)
|
||||
print ("<br>Ex File : %s" % message3)
|
||||
print ("<br>DWBA File : %s" % message4)
|
||||
print ("<br>DWBA.in File : %s" % message4a)
|
||||
print ("<br>Plot Config File : %s" % message5)
|
||||
print ("<br><br><br>#################################### programs text output")
|
||||
print ("<table>")
|
||||
print ("<tr><td style=\"text-align:right\">Reaction File :</td><td>%s<td></tr>" % message1)
|
||||
print ("<tr><td style=\"text-align:right\">DetectorGeo File :</td><td>%s<td></tr>" % message2)
|
||||
print ("<tr><td style=\"text-align:right\">Ex File :</td><td>%s<td></tr>" % message3)
|
||||
print ("<tr><td style=\"text-align:right\">DWBA File :</td><td>%s<td></tr>" % message4)
|
||||
print ("<tr><td style=\"text-align:right\">DEBA.in File :</td><td>%s<td></tr>" % message4a)
|
||||
print ("<tr><td style=\"text-align:right\">Plot Config File :</td><td>%s<td></tr>" % message5)
|
||||
print ("</table>")
|
||||
print ("<br><span style=\"white-space: pre-line\"> %s </span>" % dwba_1)
|
||||
print ("<br><span style=\"white-space: pre-line\"> %s </span>" % dwba_2)
|
||||
print ("<br><span style=\"white-space: pre-line\"> %s </span>" % dwba_3)
|
||||
print ("<br><span style=\"white-space: pre-line\"> %s </span>" % dwba_4)
|
||||
print ("<br><span style=\"white-space: pre-line\"> %s </span>" % result)
|
||||
|
|
23
index.html
23
index.html
|
@ -12,9 +12,13 @@
|
|||
table, th, td {
|
||||
//border: 1px solid black;
|
||||
}
|
||||
table.center{
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
header {
|
||||
background-color: #DF0;
|
||||
padding: 30px;
|
||||
background-color: #F7CF3C;
|
||||
padding: 10px;
|
||||
text-align: center;
|
||||
font-size: 35px;
|
||||
color: black;
|
||||
|
@ -23,7 +27,7 @@
|
|||
float: left;
|
||||
width : 400px;
|
||||
height: 100vh;
|
||||
background: #ccc;
|
||||
background: #6DB33E;
|
||||
padding: 0px;
|
||||
}
|
||||
article {
|
||||
|
@ -31,7 +35,7 @@
|
|||
padding: 0px;
|
||||
margin-left: 400px;
|
||||
height : 100vh;
|
||||
background: #F6F6FF;
|
||||
background: #1363A7;
|
||||
}
|
||||
@media (max-width: 1000px) {
|
||||
nav {
|
||||
|
@ -49,7 +53,14 @@
|
|||
</style>
|
||||
<body>
|
||||
|
||||
<header><h1>SOLARIS Simulation</h1></header>
|
||||
<header>
|
||||
<table class="center">
|
||||
<tr>
|
||||
<td><img src="SOLARIS_logo.png"'''' width="300"></td>
|
||||
<td><span style="font-size:70px;">Simulation</span></td>
|
||||
</tr>
|
||||
</table>
|
||||
</header>
|
||||
|
||||
<section>
|
||||
|
||||
|
@ -160,7 +171,7 @@
|
|||
|
||||
<!-- ////////////////////////////////////////// -->
|
||||
<article>
|
||||
<iframe name="uploaded" style="border:none" width="100%" height= "100%"></iframe>
|
||||
<iframe name="uploaded" style="border:none;" width="100%" height= "100%"></iframe>
|
||||
</article>
|
||||
</section>
|
||||
|
||||
|
|
|
@ -1,14 +1,32 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<body>
|
||||
<style>
|
||||
body{
|
||||
//color : #767A4C;
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
}
|
||||
a {
|
||||
color : #F7CF3C;
|
||||
}
|
||||
|
||||
</style>
|
||||
<h1>Intructions:</h1>
|
||||
<p>
|
||||
<ul>
|
||||
<li>The kenimatic calculation is documented in <a href="https://wiki.anl.gov/wiki_heliosdaq/images/3/3f/Kinematics_of_HELIOS.pdf" >Here</a>.</li>
|
||||
<li>The DWBA calucation is using Ptolemy. <a href="https://www.phy.anl.gov/theory/research/ptolemy/">Here</a> for more detail. </li>
|
||||
<li>The kenimatic calculation is documented in <a href="https://wiki.anl.gov/wiki_heliosdaq/images/3/3f/Kinematics_of_HELIOS.pdf" target="_blank" >Here</a>.</li>
|
||||
<li>The DWBA calucation is using Ptolemy. <a href="https://www.phy.anl.gov/theory/research/ptolemy/" target="_blank">Here</a> for more detail. </li>
|
||||
<li>File name can be customized.</li>
|
||||
<li>For kinematic simulation, only the reactionConfig.txt, detectorGeo.txt, and Ex.txt are needed.</li>
|
||||
<li>For DWBA calculation, only the DWBA file is needed.</li>
|
||||
<li>When the DWBA file is presented, the kinematic simulation will use the DWBA result and also the excitation energy. i.e. the user provide Ex.txt will not be used.</li>
|
||||
<li>User can use a customs in File for DWBA calculation. Once the in File exist, it ignores the DWBA file.</li>
|
||||
<li>This page is created and hosted by FSU</li>
|
||||
<li>To change DWBA angular range, download the in file, edit it. But becareful, DWBA for kinematic simulation must be 0 -180 deg.</li>
|
||||
<li>Past calculations can be found <a href="files/" target="uploaded">Here</a></li>
|
||||
</ul>
|
||||
</p>
|
||||
|
||||
<h4>This page is created and hosted by FSU</h4>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -4,6 +4,13 @@
|
|||
</head>
|
||||
<body>
|
||||
|
||||
<style>
|
||||
body {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<h1> I am working on it. </h1>
|
||||
|
||||
<form action = "simpleInput.py" method = "POST" target = "uploaded">
|
||||
|
@ -96,7 +103,5 @@
|
|||
|
||||
</form>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Reference in New Issue
Block a user