Skip to content
Snippets Groups Projects

TupleTool Search Functionality

Merged Franz Ludwig Kramer requested to merge ttoolsearch into master
All threads resolved!
Files
14
@@ -29,20 +29,10 @@ import {
Spinner,
Tooltip,
} from "react-bootstrap";
import {
Download,
ExclamationCircle,
FileEarmarkCode,
PencilSquare,
PlusLg,
QuestionCircle,
Send,
Upload,
} from "react-bootstrap-icons";
import {Download, ExclamationCircle, PencilSquare, PlusLg, QuestionCircle, Send, Upload} from "react-bootstrap-icons";
import {Route} from "react-router-dom";
import Select from "react-select";
import Creatable from "react-select/creatable";
import config from "../config";
import MetadataContext from "../contexts/MetadataContext";
import BKPath from "../lib/BKPath";
import DTTConfig from "../lib/DTTConfig";
@@ -541,15 +531,6 @@ class LinesTable extends React.Component {
});
};
createPyOpts = (row) => {
const subdirectory = this.state.productionName;
const filename = row.dtt.getSafeName();
return Array(...config.pyOptsTemplate)
.join("\n")
.replace("{subdirectory}", subdirectory)
.replace("{filename}", filename);
};
processSubmission = () => {
if (this.state.submitLocation) {
this.setState({showReasonForRequestModal: true});
@@ -567,7 +548,6 @@ class LinesTable extends React.Component {
generateAllFiles = () => {
return [
...this.state.rows.map((row) => [`${row.dtt.getSafeName()}.yaml`, yaml.dump(row.dtt.config)]),
...this.state.rows.map((row) => [`${row.dtt.getSafeName()}.py`, this.createPyOpts(row)]),
["info.yaml", yaml.dump(this.createInfoYaml())],
];
};
@@ -752,28 +732,6 @@ class LinesTable extends React.Component {
<Download />
</Button>
</OverlayTrigger>
<OverlayTrigger
overlay={
<Tooltip>
Download python options file to load this DecayTreeTuple
from YAML
</Tooltip>
}
>
<Button
className="ms-auto"
type="button"
onClick={() =>
download(
this.createPyOpts(row),
`${row.dtt.getSafeName()}.py`
)
}
disabled={!this.state.productionName || !hasValidName}
>
<FileEarmarkCode />
</Button>
</OverlayTrigger>
</>
)}
Loading