Skip to content
Snippets Groups Projects
Commit 69c5bf00 authored by JonStargaryen's avatar JonStargaryen
Browse files

lint

parent 6c112f83
No related branches found
No related tags found
No related merge requests found
......@@ -120,7 +120,7 @@ namespace Membrane {
exposed: exposed,
centroid: centroid,
extent: extent
}
};
}
export async function calculate(runtime: RuntimeContext, structure: Structure, params: ANVILProps): Promise<Membrane> {
......@@ -177,7 +177,7 @@ namespace Membrane {
planePoint1: c1,
planePoint2: c2,
stats: stats
}
};
}
export function scored(spherePoint: Vec3, c1: Vec3, c2: Vec3, stats: HphobHphil, qmax: number, centroid: Vec3): MembraneCandidate {
......@@ -192,7 +192,7 @@ namespace Membrane {
centroid: centroid,
qmax: qmax,
membraneAtoms: []
}
};
}
}
......@@ -237,7 +237,7 @@ namespace Membrane {
let total = 0;
for (let j = 0; j < jmax; j++) {
const ij = qvartemp[i + j];
if (j == 0 || j === jmax - 1) {
if (j === 0 || j === jmax - 1) {
hphob += 0.5 * ij.stats.hphob;
hphil += 0.5 * ij.stats.hphil;
} else {
......@@ -258,7 +258,7 @@ namespace Membrane {
}
}
jmax++;
width = (jmax + 1) * stepSize
width = (jmax + 1) * stepSize;
}
}
......@@ -294,7 +294,7 @@ namespace Membrane {
for(let k = 1, kl = numberOfSpherePoints + 1; k < kl; k++) {
h = -1 + 2 * (k - 1) / (numberOfSpherePoints - 1);
theta = Math.acos(h);
phi = (k == 1 || k == numberOfSpherePoints) ? 0 : (oldPhi + 3.6 / Math.sqrt(numberOfSpherePoints * (1 - h * h))) % (2 * Math.PI);
phi = (k === 1 || k === numberOfSpherePoints) ? 0 : (oldPhi + 3.6 / Math.sqrt(numberOfSpherePoints * (1 - h * h))) % (2 * Math.PI);
const point = Vec3.create(
extent * Math.sin(phi) * Math.sin(theta) + centroid[0],
......@@ -340,7 +340,7 @@ namespace Membrane {
hphob: hphob,
hphil: hphil,
total: !!total ? total : hphob + hphil
}
};
}
const testPoint = Vec3();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment