Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | products: Support frequency unit; Add "reset()" method | Aaron LI | 2016-11-22 | 2 | -4/+26 | |
| | ||||||
* | webui: products: Implement client-side AJAX interactions | Aaron LI | 2016-11-22 | 2 | -0/+290 | |
| | ||||||
* | webui: Add "ProductsAJAXHandler" to manipulate the products manifest | Aaron LI | 2016-11-22 | 3 | -0/+180 | |
| | | | | TODO: some actions currently not implemented yet | |||||
* | webui: Finish the "products.html" page | Aaron LI | 2016-11-22 | 1 | -4/+37 | |
| | ||||||
* | webui: Update against the improved "showModal()" | Aaron LI | 2016-11-22 | 2 | -16/+16 | |
| | ||||||
* | webui: main.js: Extend "showModal()" with "title" and "contents" | Aaron LI | 2016-11-22 | 1 | -4/+15 | |
| | | | | | * Change original "message" attribute to "title" * Add new attribute "contents" which allow multiple paragraphs | |||||
* | webui: Add "/debug" handler when in debug mode. | Aaron LI | 2016-11-22 | 2 | -0/+10 | |
| | ||||||
* | webui: Move several generic functions from "configs.js" to "main.js" | Aaron LI | 2016-11-22 | 2 | -47/+47 | |
| | ||||||
* | webui: configs: Some minor fixes | Aaron LI | 2016-11-22 | 3 | -14/+28 | |
| | | | | | | | | * configs.py/_set_configs(): Also return the original data if the input values failed the validation; * setServerConfigs(): Success callback also reset value if the input value failed pass the server-side validation; * getServerConfigs(): Return "undefined" if key does not exists. | |||||
* | webui: configs.html: Add field "output/manifest" | Aaron LI | 2016-11-22 | 1 | -0/+6 | |
| | ||||||
* | products.py: Implement method "convert_hpx()" and other fixes | Aaron LI | 2016-11-21 | 1 | -5/+41 | |
| | | | | | | * Fix "load()" to assign the "self.manifestfile" attribute * Add and use the simple method "get_product()"; * Make parameters of "checksum()" are required; | |||||
* | webui: websocket.py: Also push current task status when connected | Aaron LI | 2016-11-21 | 2 | -0/+18 | |
| | ||||||
* | Update the "process time" to "CPU process time" | Aaron LI | 2016-11-21 | 2 | -3/+3 | |
| | ||||||
* | products.py: Fix three bugs. | Aaron LI | 2016-11-21 | 1 | -5/+5 | |
| | | | | | | * Convert "range()" to list, also make sure "value" is a Python list * Parameter "outfile" of "dump()" is optional * Correct the wrong "self.userconfig" to "self.manifestfile" | |||||
* | products.py: Use "utils.hashutil.md5()" | Aaron LI | 2016-11-21 | 1 | -3/+3 | |
| | ||||||
* | utils: Add "hashutil.py" with function "md5()" | Aaron LI | 2016-11-21 | 1 | -0/+40 | |
| | | | | | | md5(): Calculate the MD5 checksum of the file. Credit: https://stackoverflow.com/a/3431838/4856091 | |||||
* | Fix two bugs and change one variable name | Aaron LI | 2016-11-21 | 2 | -8/+8 | |
| | | | | | | | | * foregrounds.py: Use "configs.get_path()" to get the manifest file path; * foregrounds.py: Use "min()" and "max()" since "self.frequencies" has been changed to be a plain Python list instead of a Numpy array; * foregrounds.py: Change the variable "freqid" to "freq_id"; * products.py: Assign the attribute "self.manifestfile" | |||||
* | configs: Change default logging level to "DEBUG" | Aaron LI | 2016-11-21 | 1 | -1/+1 | |
| | ||||||
* | galactic/snr.py: Change a logging level | Aaron LI | 2016-11-21 | 1 | -1/+2 | |
| | ||||||
* | Add logging message on backing up old file | Aaron LI | 2016-11-21 | 2 | -0/+2 | |
| | ||||||
* | foregrounds.py: Import "Products" to build the manifest | Aaron LI | 2016-11-21 | 1 | -9/+22 | |
| | ||||||
* | extragalactic/pointsources: Return "None" file path and add a TODO | Aaron LI | 2016-11-21 | 1 | -2/+4 | |
| | ||||||
* | Update "simulate_frequency()" to also return the output file path | Aaron LI | 2016-11-21 | 5 | -20/+108 | |
| | | | | | * Update "output()" method to return the output file path * Update "simulate()" to also return the list of output file paths | |||||
* | products.py: Add method "add_product()" to add one single product. | Aaron LI | 2016-11-21 | 1 | -11/+45 | |
| | | | | Also update the "add_component()" method to use "add_product()" | |||||
* | configs: Add new option "output/manifest" | Aaron LI | 2016-11-20 | 1 | -0/+3 | |
| | | | | | The option "output/manifest" is the filename of the output manifest for the simulation products. | |||||
* | Add "products.py" to manager and manipulate the simulation products | Aaron LI | 2016-11-20 | 2 | -0/+280 | |
| | | | | | The class "Products" may build the manifest for the simulation products, and can manage/manipulate this manifest. | |||||
* | webui: configs: Add pixel resolution note for "common/nside" | Aaron LI | 2016-11-19 | 2 | -6/+33 | |
| | | | | | | * Calculate pixel resolution note on pressing "Enter" in "common/nside" * Update the pixel resolution note as well as "common/lmax" when "common/nside" changed. | |||||
* | webui: Rename "Results" to "Products" | Aaron LI | 2016-11-19 | 4 | -16/+16 | |
| | ||||||
* | foregrounds.py: Fix import and COMPONENTS_ALL | Aaron LI | 2016-11-19 | 1 | -11/+10 | |
| | ||||||
* | webui: Minor update the docstring. | Aaron LI | 2016-11-19 | 2 | -2/+6 | |
| | ||||||
* | Bump version to 0.3.0v0.3.0 | Aaron LI | 2016-11-18 | 1 | -1/+1 | |
| | | | | | | | | | | | | | | | | | * Major change to the Web UI. + The WebSocket is only used to push configurations and logging messages to the client; + The configuration manipulations and console operations are implemented using the AJAX techniques; + Modal box is used to notify the AJAX request results, therefore much better user experience. * Several bug fixes to the Web UI. * Minor improvements to the simulation parts. * TODO/problems: + The console task currently still blocks the Tornado IO loop! | |||||
* | Add "LICENSE-3RDPARTY" for 3rd-party code/products used | Aaron LI | 2016-11-18 | 3 | -3/+168 | |
| | | | | | | | Credit: What is the best practice for arranging third-party library licenses “paperwork”? https://softwareengineering.stackexchange.com/a/234526 | |||||
* | webui: Remove jQuery version from its filename | Aaron LI | 2016-11-18 | 2 | -1/+1 | |
| | ||||||
* | utils/draw.py: Remove the "Modified BSD" license; Update credit | Aaron LI | 2016-11-18 | 1 | -40/+4 | |
| | ||||||
* | webui: console.py: Fix the wrong import path for "Foregrounds" | Aaron LI | 2016-11-18 | 1 | -1/+1 | |
| | ||||||
* | webui: configs.js: Fix two bugs | Aaron LI | 2016-11-18 | 1 | -2/+2 | |
| | | | | | * Fix the wrong "action=reset" in "setServerConfigs()" * Add the missing "return" in the jQuery AJAX chain | |||||
* | webui: Rename jQuery ".fail()" callback argument "error" to "jqxhr" | Aaron LI | 2016-11-18 | 2 | -21/+21 | |
| | ||||||
* | webui: console.js: Disable the "Start" button when task started | Aaron LI | 2016-11-18 | 1 | -0/+7 | |
| | ||||||
* | webui: main.js: Extend jQuery with ".disable()" | Aaron LI | 2016-11-18 | 1 | -1/+16 | |
| | ||||||
* | MANIFEST.in: Install the Web UI templates and static files | Aaron LI | 2016-11-18 | 1 | -0/+2 | |
| | ||||||
* | webui: Redirect to login page if not authenticated on POST request | Aaron LI | 2016-11-18 | 4 | -12/+14 | |
| | | | | | | * Remove the authentication requirement on GET operation * "main.js": Redirect to the login page if POST response 403 forbidden * "main.js": Use global AJAX events handling instead of `$.ajaxSetup()` | |||||
* | webui: console.py: Add timing reports | Aaron LI | 2016-11-18 | 1 | -2/+16 | |
| | ||||||
* | bin/fg21sim: Import "Foregrounds" when using; Add timing | Aaron LI | 2016-11-18 | 1 | -3/+18 | |
| | ||||||
* | webui: Fix a bug for "showModal()"; Cleanup ".onmessage()" | Aaron LI | 2016-11-17 | 2 | -16/+6 | |
| | ||||||
* | configs: Update logging message format | Aaron LI | 2016-11-17 | 2 | -3/+9 | |
| | | | | | * Also update the logging messages styles for the Web UI * Show a modal notification when the task finished. | |||||
* | webui: console.js: Change to use AJAX instead of WebSocket messages | Aaron LI | 2016-11-17 | 2 | -42/+65 | |
| | | | | Also support modal dialog for confirmation and operation results. | |||||
* | webui: console.py: Change to request/response instead of WebSocket | Aaron LI | 2016-11-17 | 1 | -198/+145 | |
| | | | | | | | | * Rename to "ConsoleAJAXHandler" * Change to use the request/response model, which accepts the AJAX request and then response. * Update logging handler to push messages to all connected clients * Many simplifications and rewrites. | |||||
* | webui: WebSocketLogHandler: Support push to multiple websockets | Aaron LI | 2016-11-17 | 1 | -13/+15 | |
| | | | | Also change the pushed messages to have "action=push" and "subtype=log" | |||||
* | webui: app.py: Add new attributes and an option for ConsoleAJAXHandler | Aaron LI | 2016-11-17 | 2 | -10/+24 | |
| | | | | | | | * Add new attributes "executor" and "task_status" for "console.py" * Define an option for the "executor" * Rename attribute "ws_clients" to "websockets" * Update docstring and comments | |||||
* | webui: login.html: Auto focus the password input | Aaron LI | 2016-11-17 | 1 | -1/+1 | |
| |