Skip to content

Commit

Permalink
Enable interpolation setting in volume mode (#2089)
Browse files Browse the repository at this point in the history
* enable interpolation setting in volume mode

* fix linter
  • Loading branch information
daniel-wer authored Nov 3, 2017
1 parent c6b1abd commit b7b91b3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import {
ColorSetting,
} from "oxalis/view/settings/setting_input_views";
import Utils from "libs/utils";
import Constants from "oxalis/constants";

const Panel = Collapse.Panel;
const Option = Select.Option;
Expand Down Expand Up @@ -97,13 +96,11 @@ class DatasetSettings extends React.PureComponent<DatasetSettingsProps> {
value={this.props.datasetConfiguration.fourBit}
onChange={_.partial(this.props.onChange, "fourBit")}
/>
{this.props.viewMode === Constants.MODE_PLANE_TRACING ? (
<SwitchSetting
label="Interpolation"
value={this.props.datasetConfiguration.interpolation}
onChange={_.partial(this.props.onChange, "interpolation")}
/>
) : null}
<SwitchSetting
label="Interpolation"
value={this.props.datasetConfiguration.interpolation}
onChange={_.partial(this.props.onChange, "interpolation")}
/>
<DropdownSetting
label="Quality"
value={this.props.datasetConfiguration.quality}
Expand Down
13 changes: 7 additions & 6 deletions tools/extractReleaseNotes.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,21 @@ const RELEASE_NOTES_REGEX = /Mailable description[^:]*:\r?\n([^]*)/;
parsedJSON = require(CACHED_RESPONSE_PATH);
} else {
// This fetches at most the last 100 closed PRs to avoid additional complexity, which should be enough
const res = await fetch("https://api.github.com/repos/scalableminds/webknossos/pulls?state=closed&per_page=100");
const res = await fetch(
"https://api.github.com/repos/scalableminds/webknossos/pulls?state=closed&per_page=100",
);
parsedJSON = await res.json();
if (parsedJSON.message) {
console.log(`Error while fetching from the Github API: ${parsedJSON.message}`);
process.exit();
}
}

// Sort PRs by merge date
parsedJSON.sort((a, b) => Date.parse(b.merged_at) - Date.parse(a.merged_at));

const releaseNotes = parsedJSON
// Filter PRs that were merged into master and have a PR description
.filter(pr => pr.merged_at != null && pr.base.ref === "master" && pr.body.length > 0)
// Sort PRs by merge date
.sort((a, b) => Date.parse(b.merged_at) - Date.parse(a.merged_at))
// Extract the Mailable description
.map(pr => {
const sections = pr.body.split("###");
Expand All @@ -45,8 +46,8 @@ const RELEASE_NOTES_REGEX = /Mailable description[^:]*:\r?\n([^]*)/;
.reduce((result, pr) => `${result}${pr.description}\n(${pr.url})\n\n`, "");

// Write the release notes to a file
fs.writeFile("./release_notes.txt", releaseNotes, (err) => {
if(err) {
fs.writeFile("./release_notes.txt", releaseNotes, err => {
if (err) {
console.log(`Error while saving the release notes: ${err}`);
}
console.log("Release notes were saved to release_notes.txt");
Expand Down

0 comments on commit b7b91b3

Please sign in to comment.