xtc block filtering, GO

8dff355d5d7cc54933642ac347e15a71ec296abc

RossAscends <124905043+RossAscends@users.noreply.github.com>

1 files changed, +14 -0Ignore whitespace
public/scripts/samplerSelect.js+14 -0
@@ -90,6 +90,11 @@ function setSamplerListListeners() {
9090 targetDisplayType = 'block';
9191 }
9292
93+ if (samplerName === 'xtc_probability') {
94+ relatedDOMElement = $('#xtc_block');
95+ targetDisplayType = 'block';
96+ }
97+
9398 if (samplerName === 'dynatemp') {
9499 relatedDOMElement = $('#dynatemp_block_ooba');
95100 targetDisplayType = 'block';
@@ -248,6 +253,10 @@ async function listSamplers(main_api, arrayOnly = false) {
248253 targetDOMelement = $('#dryBlock');
249254 displayname = 'DRY Rep Pen Block';
250255 }
256+ if (sampler === 'xtc_probability') {
257+ targetDOMelement = $('#xtc_block');
258+ displayname = 'XTC Block';
259+ }
251260
252261 if (sampler === 'dynatemp') {
253262 targetDOMelement = $('#dynatemp_block_ooba');
@@ -374,6 +383,11 @@ export async function validateDisabledSamplers(redraw = false) {
374383 targetDisplayType = 'block';
375384 }
376385
386+ if (sampler === 'xtc_probability') {
387+ relatedDOMElement = $('#xtc_block');
388+ targetDisplayType = 'block';
389+ }
390+
377391 if (sampler === 'penalty_alpha') { //contrastive search only has one sampler, does it need its own block?
378392 relatedDOMElement = $('#contrastiveSearchBlock');
379393 }