Skip to content
Snippets Groups Projects
Commit 0fc305aa authored by Alexander Rose's avatar Alexander Rose
Browse files

fix linting issues

parent bf67546a
Branches
No related tags found
No related merge requests found
...@@ -47,11 +47,10 @@ const ParseCellPack = PluginStateTransform.BuiltIn({ ...@@ -47,11 +47,10 @@ const ParseCellPack = PluginStateTransform.BuiltIn({
let comp_counter = 0; let comp_counter = 0;
const packings: CellPacking[] = []; const packings: CellPacking[] = [];
const { compartments, cytoplasme } = cell; const { compartments, cytoplasme } = cell;
let iName = '';
if (!cell.mapping_ids) cell.mapping_ids = {}; if (!cell.mapping_ids) cell.mapping_ids = {};
if (cytoplasme) { if (cytoplasme) {
packings.push({ name: 'Cytoplasme', location: 'cytoplasme', ingredients: cytoplasme.ingredients }); packings.push({ name: 'Cytoplasme', location: 'cytoplasme', ingredients: cytoplasme.ingredients });
for (iName in cytoplasme.ingredients){ for (const iName in cytoplasme.ingredients) {
if (cytoplasme.ingredients[iName].ingtype === 'fiber') { if (cytoplasme.ingredients[iName].ingtype === 'fiber') {
cell.mapping_ids[-(fiber_counter_id + 1)] = [comp_counter, iName]; cell.mapping_ids[-(fiber_counter_id + 1)] = [comp_counter, iName];
if (!cytoplasme.ingredients[iName].nbCurve) cytoplasme.ingredients[iName].nbCurve = 0; if (!cytoplasme.ingredients[iName].nbCurve) cytoplasme.ingredients[iName].nbCurve = 0;
...@@ -69,7 +68,7 @@ const ParseCellPack = PluginStateTransform.BuiltIn({ ...@@ -69,7 +68,7 @@ const ParseCellPack = PluginStateTransform.BuiltIn({
const { surface, interior } = compartments[name]; const { surface, interior } = compartments[name];
if (surface) { if (surface) {
packings.push({ name, location: 'surface', ingredients: surface.ingredients, geom: compartments[name].geom, geom_type: compartments[name].geom_type, mb: compartments[name].mb }); packings.push({ name, location: 'surface', ingredients: surface.ingredients, geom: compartments[name].geom, geom_type: compartments[name].geom_type, mb: compartments[name].mb });
for (iName in surface.ingredients){ for (const iName in surface.ingredients) {
if (surface.ingredients[iName].ingtype === 'fiber') { if (surface.ingredients[iName].ingtype === 'fiber') {
cell.mapping_ids[-(fiber_counter_id + 1)] = [comp_counter, iName]; cell.mapping_ids[-(fiber_counter_id + 1)] = [comp_counter, iName];
if (!surface.ingredients[iName].nbCurve) surface.ingredients[iName].nbCurve = 0; if (!surface.ingredients[iName].nbCurve) surface.ingredients[iName].nbCurve = 0;
...@@ -84,7 +83,7 @@ const ParseCellPack = PluginStateTransform.BuiltIn({ ...@@ -84,7 +83,7 @@ const ParseCellPack = PluginStateTransform.BuiltIn({
} }
if (interior) { if (interior) {
packings.push({ name, location: 'interior', ingredients: interior.ingredients }); packings.push({ name, location: 'interior', ingredients: interior.ingredients });
for (iName in interior.ingredients){ for (const iName in interior.ingredients) {
if (interior.ingredients[iName].ingtype === 'fiber') { if (interior.ingredients[iName].ingtype === 'fiber') {
cell.mapping_ids[-(fiber_counter_id + 1)] = [comp_counter, iName]; cell.mapping_ids[-(fiber_counter_id + 1)] = [comp_counter, iName];
if (!interior.ingredients[iName].nbCurve) interior.ingredients[iName].nbCurve = 0; if (!interior.ingredients[iName].nbCurve) interior.ingredients[iName].nbCurve = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment