Skip to content

Commit

Permalink
Merge branch 'main' into fix-definitions-in-requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
CodyCBakerPhD authored Apr 11, 2024
2 parents 70d610c + f0a5de8 commit 7ec10c0
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 8 deletions.
10 changes: 9 additions & 1 deletion guide_testing_suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ pipelines:
CellExplorerRecordingInterface:
folder_path: ephy_testing_data/cellexplorer/dataset_4/Peter_MS22_180629_110319_concat_stubbed


CellExplorerUnits:
CellExplorerRecordingInterface:
folder_path: ephy_testing_data/cellexplorer/dataset_4/Peter_MS22_180629_110319_concat_stubbed
Expand All @@ -48,3 +47,12 @@ pipelines:
IntanSingleFileRecording:
IntanRecordingInterface:
file_path: ephy_testing_data/intan/intan_rhd_test_1.rhd

BrukerTiffMultiChannelSinglePlane:
BrukerTiffSinglePlaneConverter:
folder_path: ophys_testing_data/imaging_datasets/BrukerTif/NCCR32_2023_02_20_Into_the_void_t_series_baseline-000

DeepLabCut:
DeepLabCutInterface:
file_path: behavior_testing_data/DLC/m3v1mp4DLC_resnet50_openfieldAug20shuffle1_30000.h5
config_file_path: behavior_testing_data/DLC/config.yaml
3 changes: 2 additions & 1 deletion nwb-guide.spec
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ tmp_ret = collect_all('tifffile')
datas += tmp_ret[0]; binaries += tmp_ret[1]; hiddenimports += tmp_ret[2]
tmp_ret = collect_all('dlc2nwb')
datas += tmp_ret[0]; binaries += tmp_ret[1]; hiddenimports += tmp_ret[2]

tmp_ret = collect_all('ndx-pose')
datas += tmp_ret[0]; binaries += tmp_ret[1]; hiddenimports += tmp_ret[2]

block_cipher = None

Expand Down
2 changes: 2 additions & 0 deletions src/renderer/src/stories/Dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,8 @@ export class Dashboard extends LitElement {
}

setMain(page) {
window.getSelection().empty(); // Remove user selection before transitioning

// Update Previous Page
const info = page.info;
const previous = this.page;
Expand Down
4 changes: 3 additions & 1 deletion src/renderer/src/stories/table/Cell.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,9 @@ export class TableCell extends LitElement {
else if (this.schema.format === "date-time") {
cls = DateTimeCell
this.type = "date-time"
} else if (this.schema.type === "object") {
}

else if (this.schema.type === "object") {
cls = NestedInputCell
this.type = "table"
}
Expand Down
24 changes: 20 additions & 4 deletions src/renderer/src/stories/table/cells/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,17 +201,33 @@ export class TableCellBase extends LitElement {

set(value: any, runOnChange = true) {

if (document.execCommand) {
// Ensure all operations are undoable
if (typeof InputEvent === 'function') {
this.#editable.setAttribute('contenteditable', '')
this.#editable.focus();
document.execCommand('selectAll');
document.execCommand('insertText', false, value);

const range = document.createRange();
range.selectNodeContents(this.#editable);
const sel = window.getSelection()!;
sel.removeAllRanges();
sel.addRange(range);

const inputEvent = new InputEvent('input', {
bubbles: true,
cancelable: false,
data: value,
inputType: 'insertText',
});

this.#editable.dispatchEvent(inputEvent);

this.setText(value, undefined, runOnChange)
this.#editable.blur();
this.#editable.removeAttribute('contenteditable')
}

else this.setText(value, undefined, runOnChange) // Ensure value is still set

else this.setText(value, undefined, runOnChange) // Just set value
}

#render(property: 'renderer' | 'editor') {
Expand Down
1 change: 0 additions & 1 deletion tests/e2e/workflow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,6 @@ export default async function runWorkflow(name, workflow, identifier) {
const page = dashboard.page
const firstSessionForm = page.forms[0].form
firstSessionForm.accordions["NWBFile"].toggle(true)
window.getSelection().empty() // Remove annoying user-select highlight
})

await takeScreenshot(join(identifier, 'metadata-nwbfile'), 100)
Expand Down

0 comments on commit 7ec10c0

Please sign in to comment.