aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* webui: ProductsAJAXHandler: implement the "open" GET actionAaron LI2016-11-231-3/+59
| | | | | The new method "_open_hpx()" is added to open the requested the HPX FITS image using the Python subprocess.
* products.py: Add new method "get_product_abspath()"Aaron LI2016-11-231-0/+34
| | | | | This new method will be used by the "ProductsAJAXHandler" for the "open" and "download" actions.
* webui: configs.js: Trigger "Enter" after page load on "common/nside"Aaron LI2016-11-231-14/+15
| | | | | Refactor the "click" event handler on "common/nside" to avoid the duplicated code on resolution calculation.
* webui: products: Implement GET action "which"Aaron LI2016-11-232-1/+37
| | | | | | | | The "which" GET action try to locate the given executable name/path, in order to check whether the executable callable. This function will be used to check the validity of the specified FITS viewer, which opens the HPX FITS images.
* webui: Add "from_localhost" to IndexHandler and products templateAaron LI2016-11-232-1/+15
|
* webui: utils: Remove three unused functionsAaron LI2016-11-231-97/+0
|
* webui: WSHandler: remove "check_origin()" and "hosts_allowed" optionAaron LI2016-11-232-59/+0
|
* webui: products: Implement HPX conversion functionAaron LI2016-11-223-18/+71
|
* Update the MIT license URLAaron LI2016-11-222-2/+2
|
* webui: products.js: Convert file size from bytes to MBAaron LI2016-11-221-4/+5
|
* webui: main.js: Add new styles for "products.html"Aaron LI2016-11-221-1/+19
| | | | Also update the ".btn" rule and add the ".btn.btn-small" rule
* products: Support frequency unit; Add "reset()" methodAaron LI2016-11-222-4/+26
|
* webui: products: Implement client-side AJAX interactionsAaron LI2016-11-222-0/+290
|
* webui: Add "ProductsAJAXHandler" to manipulate the products manifestAaron LI2016-11-223-0/+180
| | | | TODO: some actions currently not implemented yet
* webui: Finish the "products.html" pageAaron LI2016-11-221-4/+37
|
* webui: Update against the improved "showModal()"Aaron LI2016-11-222-16/+16
|
* webui: main.js: Extend "showModal()" with "title" and "contents"Aaron LI2016-11-221-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 LI2016-11-222-0/+10
|
* webui: Move several generic functions from "configs.js" to "main.js"Aaron LI2016-11-222-47/+47
|
* webui: configs: Some minor fixesAaron LI2016-11-223-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 LI2016-11-221-0/+6
|
* products.py: Implement method "convert_hpx()" and other fixesAaron LI2016-11-211-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 connectedAaron LI2016-11-212-0/+18
|
* Update the "process time" to "CPU process time"Aaron LI2016-11-212-3/+3
|
* products.py: Fix three bugs.Aaron LI2016-11-211-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 LI2016-11-211-3/+3
|
* utils: Add "hashutil.py" with function "md5()"Aaron LI2016-11-211-0/+40
| | | | | | md5(): Calculate the MD5 checksum of the file. Credit: https://stackoverflow.com/a/3431838/4856091
* Fix two bugs and change one variable nameAaron LI2016-11-212-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 LI2016-11-211-1/+1
|
* galactic/snr.py: Change a logging levelAaron LI2016-11-211-1/+2
|
* Add logging message on backing up old fileAaron LI2016-11-212-0/+2
|
* foregrounds.py: Import "Products" to build the manifestAaron LI2016-11-211-9/+22
|
* extragalactic/pointsources: Return "None" file path and add a TODOAaron LI2016-11-211-2/+4
|
* Update "simulate_frequency()" to also return the output file pathAaron LI2016-11-215-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 LI2016-11-211-11/+45
| | | | Also update the "add_component()" method to use "add_product()"
* configs: Add new option "output/manifest"Aaron LI2016-11-201-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 productsAaron LI2016-11-202-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 LI2016-11-192-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 LI2016-11-194-16/+16
|
* foregrounds.py: Fix import and COMPONENTS_ALLAaron LI2016-11-191-11/+10
|
* webui: Minor update the docstring.Aaron LI2016-11-192-2/+6
|
* Bump version to 0.3.0v0.3.0Aaron LI2016-11-181-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 usedAaron LI2016-11-183-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 filenameAaron LI2016-11-182-1/+1
|
* utils/draw.py: Remove the "Modified BSD" license; Update creditAaron LI2016-11-181-40/+4
|
* webui: console.py: Fix the wrong import path for "Foregrounds"Aaron LI2016-11-181-1/+1
|
* webui: configs.js: Fix two bugsAaron LI2016-11-181-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 LI2016-11-182-21/+21
|
* webui: console.js: Disable the "Start" button when task startedAaron LI2016-11-181-0/+7
|
* webui: main.js: Extend jQuery with ".disable()"Aaron LI2016-11-181-1/+16
|