-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #195 from neutrons/remove_webref_link
Remove link to webref from run page
- Loading branch information
Showing
14 changed files
with
52 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,6 +26,8 @@ if [[ "$DJANGO_SETTINGS_MODULE" != *".prod" ]]; then | |
>&2 echo "Not in Production, setting up test users InstrumentScientist, and GeneralUser" | ||
python $MANAGE_PY_WEBMON ensure_adminuser --username="InstrumentScientist" --email='[email protected]' --password="InstrumentScientist" | ||
python $MANAGE_PY_WEBMON ensure_user --username="${GENERAL_USER_USERNAME}" --email='[email protected]' --password="${GENERAL_USER_PASSWORD}" | ||
>&2 echo "Not in Production, updating certificates to add self-signed certificate" | ||
update-ca-certificates | ||
fi | ||
|
||
# start up web-service | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
#!/usr/bin/env python | ||
import os | ||
import sys | ||
from datetime import datetime | ||
from postprocessing.publish_plot import publish_plot | ||
|
||
plot_div = """ | ||
<div> | ||
<div id="plot"></div> | ||
<script> | ||
// Layout configuration | ||
// Render the plot | ||
Plotly.newPlot('plot', | ||
[ | ||
{ | ||
"x": [1, 2, 3, 4, 5], | ||
"y": [10, 15, 13, 17, 20], | ||
"type": 'scatter', | ||
"mode": 'lines+markers', | ||
"marker": { "color": 'red' } | ||
} | ||
], | ||
{ | ||
"title": 'My First Plot', | ||
"xaxis": { "title": 'X Axis Label' }, | ||
"yaxis": { "title": 'Y Axis Label' } | ||
} | ||
); | ||
</script> | ||
</div> | ||
""" | ||
|
||
if __name__ == "__main__": | ||
time = datetime.isoformat(datetime.now()) | ||
filename = sys.argv[1] | ||
print("Running reduction for " + filename + " at " + time) | ||
|
||
publish_plot( | ||
"REF_L", | ||
os.path.basename(filename).split(".")[0].split("_")[-1], | ||
files={"file": f"<div>{plot_div}</div>"}, | ||
) |
Empty file.
Empty file.