Skip to content

Commit

Permalink
Rename property
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Oscarsson committed Dec 4, 2020
1 parent 30880ec commit d16067c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Bars/BarPart.cs
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ public Eccentricity[] Eccentricities
}

// get eccentricities from complex section
else if (EccentricitiesAreNull)
else if (AnyEccentricityIsNull)
{
this._eccentricities = this.ComplexSection.Section.Select(x => x.Eccentricity).ToArray();
}
Expand Down Expand Up @@ -213,13 +213,13 @@ public Eccentricity[] Eccentricities
}

/// <summary>
/// Check if sections are null
/// Check if one or both eccentricities are null
/// </summary>
public bool EccentricitiesAreNull
public bool AnyEccentricityIsNull
{
get
{
return (this._eccentricities[0] == null & this._eccentricities[1] == null);
return (this._eccentricities[0] == null || this._eccentricities[1] == null);
}
}

Expand Down Expand Up @@ -677,7 +677,7 @@ public ModelEccentricity ModelEccentricity
// create new model eccentricity
this._modelEccentricity = new ModelEccentricity(this.Eccentricities[0], this.Eccentricities.Last(), true);
}
else if (!this.EccentricitiesAreNull)
else if (!this.AnyEccentricityIsNull)
{
// update model eccentricity
this._modelEccentricity.StartAnalytical = this.Eccentricities[0];
Expand Down

0 comments on commit d16067c

Please sign in to comment.