diff --git a/src/mol-model/structure/structure/unit/accessible-surface-area/compute.ts b/src/mol-model/structure/structure/unit/accessible-surface-area/compute.ts index c973238e9022f11d524780fdcd5091d84cf71b35..dbd6801595ba1024062fb68afdaed54c820430c3 100644 --- a/src/mol-model/structure/structure/unit/accessible-surface-area/compute.ts +++ b/src/mol-model/structure/structure/unit/accessible-surface-area/compute.ts @@ -206,34 +206,34 @@ function initialize(unit: Unit.Atomic, params: AccessibleSurfaceAreaComputationP } } -class Count { - static count = 10; - get count(): number { - return Count.count; - } - set count(v: number) { - Count.count = v; - } -} +// class Count { +// static count = 10; +// get count(): number { +// return Count.count; +// } +// set count(v: number) { +// Count.count = v; +// } +// } function computeAccessibleSurfaceArea(unit: Unit.Atomic, params?: Partial<AccessibleSurfaceAreaComputationParameters>): AccessibleSurfaceArea { - const count = new Count(); - count.count = count.count - 1; - if (count.count > 0) { - console.log(`computing accessible surface area for unit #${ unit.id + 1 }`); - return _computeAccessibleSurfaceArea(unit, { - numberOfSpherePoints: (params && params.numberOfSpherePoints) || 92 /* original value Shrake, A. & Rupley, J. A. (1973) J. Mol. Biol. 79: 92, BioJava: 960, EPPIC: 3000 */ , - /** 92: 1600ms, 960: 5000ms, 3000: 13000ms */ - probeSize: (params && params.probeSize) || 1.4 - }); - } else { - return { - atomRadius: [], - accessibleSurfaceArea: [], - relativeAccessibleSurfaceArea: [], - buried: void 0 - } - } + // const count = new Count(); + // count.count = count.count - 1; + // if (count.count > 0) { + console.log(`computing accessible surface area for unit #${ unit.id + 1 }`); + return _computeAccessibleSurfaceArea(unit, { + numberOfSpherePoints: (params && params.numberOfSpherePoints) || 92 /* original value Shrake, A. & Rupley, J. A. (1973) J. Mol. Biol. 79: 92, BioJava: 960, EPPIC: 3000 */ , + /** 92: 1600ms, 960: 5000ms, 3000: 13000ms */ + probeSize: (params && params.probeSize) || 1.4 + }); + // } else { + // return { + // atomRadius: [], + // accessibleSurfaceArea: [], + // relativeAccessibleSurfaceArea: [], + // buried: void 0 + // } + // } } /** Creates a collection of points on a sphere by the Golden Section Spiral algorithm. */ diff --git a/src/tests/browser/render-structure.ts b/src/tests/browser/render-structure.ts index 82beabb016329277cd8f60de5102cd17baed8666..de485a63ee5808b20b530551e41ef6f581ac10b6 100644 --- a/src/tests/browser/render-structure.ts +++ b/src/tests/browser/render-structure.ts @@ -61,7 +61,7 @@ function getCartoonRepr() { } async function init() { - const cif = await downloadFromPdb('3j3q') + const cif = await downloadFromPdb(/*'3j3q'*/'3j3q') const models = await getModels(cif) const structure = await getStructure(models[0])