Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue with fast delete of field content #763

Merged
merged 3 commits into from
Nov 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions tests/frontend/e2e/tests/RxD.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,11 +230,7 @@ describe('RxD testing', () => {

await page.waitForSelector('button[aria-selected="true"][id = "simple-tab-1"]')

const no_regions_text = await page.$$eval('#simple-tabpanel-1', no_regions_text => {
return no_regions_text.map(no_regions_text => no_regions_text.innerText)
})

expect(no_regions_text).toContain('There are no Species yet.')
await page.waitForSelector('#ip3')
console.log('Species tab opened')
await page.waitForTimeout(PAGE_WAIT)

Expand Down
6 changes: 5 additions & 1 deletion webapp/components/general/NetPyNEField.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,11 @@ export default class NetPyNEField extends Component {
!this.model.split('.')[0].startsWith('simConfig')
|| this.model.split('.')[1].startsWith('analysis')
) {
Utils.execPythonMessage(`del netpyne_geppetto.${this.model}`);
Utils.execPythonMessage(`
try:
del netpyne_geppetto.${this.model}
except KeyError:
...`);
}
}
return value;
Expand Down
Loading