Spaces:
Running
Running
Commit History
-
Show the cmuts error of a failed step, and keep tracebacks out of the job log
Each pipeline step passes the runner a description of itself. When a step fails, the runner raises StepFailed with that description and the lines of the error output that start with the name of the cmuts subcommand. If cmuts wrote no such line, the message gives the exit code. A step that runs past the time limit reports that it did not finish. Any other exception writes its traceback to the server log only. The job log and the results page then show a short message about a server error. One function records a failure for both cases and for a server restart. The results page keeps the line breaks of an error message.71ec4ec -
Load a bundled example into the form instead of running it
The example buttons posted a job description straight to /run, so a user saw a report without seeing what produced it. One "Load example" button now fills the form with the example: the reference, one row per condition with its reads, and the options it runs with. The run is left for the user to start, so any of it can be changed first. The run button is disabled until the form holds a reference, at least one condition, a name for every condition, treated reads in every condition, and a value for every required option. The tooltip of the button names what is missing. A condition is no longer dropped in the page for want of treated reads, so an incomplete one reaches the server and is reported. The multi-reference example is three references of the Ribonanza PDB library, each with a 2A3 and a DMS condition and the matched no-modification background. It replaces one condition of 6000 sparse references that named neither its chemistry nor a background. The page titles name the page, th…6d5917c -
Group each condition's downloads under one button
The results header showed two buttons per condition, one for the HDF5 file and one for the CSV. It now shows one button per condition, named after the condition, which opens a panel holding the two files. The button is a details element, so the browser handles opening, closing and the keyboard. A click outside an open panel closes it, which also keeps two panels from standing open at once.ec934a6 -
Add option dependencies to the run form
An option that cmuts marks with applies_when now appears only while the option it depends on is set to a choice it needs. The wrapper is a fieldset, so a field outside its dependency is disabled as well as hidden, and neither the browser nor the run carries a value cmuts would refuse. A dump whose dependency names an option with no choices stops the app at startup. A settings file that sets an option outside its dependency is refused as it is read. A value equal to the default reaches no command line, so it passes whatever the dependency holds, which is what lets a settings file list every option the form holds. The page drops the heading that repeated the title bar. The docstrings of options.py and pipeline.py are rewritten where they read as noun phrases rather than as descriptions of what the function does. The prose of CONTRIBUTING.md is rewritten where one sentence held several ideas.ef94e94
-
Tidy the form controls and move the example runs into the intro
The Log heading sat high because the rule that strips the top padding from the first accordion also matched the Log card. The selector now skips cards, and the content that starts a card drops its top margin, so the card padding alone sets the gap under a heading. A select with no default greys its placeholder text, and hides the placeholder from the open list, which leaves only the real choices. The select also draws its own arrow, because the arrow the platform draws takes the text color and would grey with it. The example runs move from the Conditions card to a button row under the intro. Each button submits its hidden form through the form attribute, which replaces the click handler. Hints take the body text size, and the options hint drops the sentence about the installed cmuts.831c966
-
Rebuild the space on the cmuts 2 command line
The option form derives from each subcommand's --dump-options, the pipeline runs as subprocess calls to cmuts align, hmm, sub, div, norm, and csv, and each results page proxies a live cmuts plot server. The Sync HF Space workflow deploys main to Hugging Face, and the pin workflow in DasLab/cmuts keeps the Dockerfile's CMUTS_SHA current. The previous space lives on the v1 branch.3b54ff3