Skip to content

Commit 93a277c

Browse files
authored
Merge pull request #245 from Tronald/develop
3.1.1.1
2 parents 8d77b0c + 31e5340 commit 93a277c

22 files changed

+586
-728
lines changed

CoordinateSharp.Magnetic/CoordinateSharp.Magnetic.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,24 +44,24 @@ For more information, please contact Signature Group, LLC at this address: sales
4444
-->
4545
<Project Sdk="Microsoft.NET.Sdk">
4646
<PropertyGroup>
47-
<TargetFrameworks>net40; netstandard1.3; netstandard1.4; netstandard2.0; netstandard2.1; net50; net60; net70; net80</TargetFrameworks>
47+
<TargetFrameworks>net40; netstandard1.3; netstandard1.4; netstandard2.0; netstandard2.1; net50; net60; net70; net80; net90</TargetFrameworks>
4848
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
4949
<GenerateDocumentationFile>true</GenerateDocumentationFile>
50-
<Version>1.1.15.0</Version>
50+
<Version>1.1.16.0</Version>
5151
<Authors>Signature Group, LLC</Authors>
5252
<Company />
5353
<PackageProjectUrl>https://github.com/Tronald/CoordinateSharp</PackageProjectUrl>
5454
<PackageLicenseUrl></PackageLicenseUrl>
5555
<Copyright>Copyright 2024</Copyright>
5656
<Description>CoordinateSharp magnetic data extensions.</Description>
57-
<PackageReleaseNotes>-Maps to latest CoordinateSharp version.</PackageReleaseNotes>
57+
<PackageReleaseNotes>-Adds .NET 9 support</PackageReleaseNotes>
5858
<PackageTags>CoordinateSharp Latitude Longitude Coordinates Geography Magnetic Declination</PackageTags>
5959
<!-- <PackageLicenseExpression>AGPL-3.0-or-later</PackageLicenseExpression>-->
6060
<PackageLicenseFile>License.txt</PackageLicenseFile>
6161
<PackageIconUrl></PackageIconUrl>
6262
<PackageId>CoordinateSharp.Magnetic</PackageId>
6363
<Title>CoordinateSharp.Magnetic</Title>
64-
<AssemblyVersion>1.1.15.0</AssemblyVersion>
64+
<AssemblyVersion>1.1.16.0</AssemblyVersion>
6565
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
6666
<SignAssembly>true</SignAssembly>
6767
<PackageIcon>128x128.png</PackageIcon>

CoordinateSharp/Celestial/Celestial.Methods.cs

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,7 @@ internal Celestial(bool hasCalcs)
167167

168168
//Creates empty properties
169169
private void Create_Properties()
170-
{
171-
astrologicalSigns = new AstrologicalSigns(); //REMOVE WITH ZODIAC REMOVAL
170+
{
172171
almanacMoonName = new AlmanacMoonName();
173172
lunarEclipse = new LunarEclipse();
174173
solarEclipse = new SolarEclipse();
@@ -222,16 +221,10 @@ internal void CalculateCelestialTime(double lat, double longi, DateTime date, Ea
222221
}
223222
}
224223

225-
if (el.Extensions.Lunar_Cycle || el.Extensions.Zodiac || el.Extensions.Lunar_Eclipse)
224+
if (el.Extensions.Lunar_Cycle || el.Extensions.Lunar_Eclipse)
226225
{
227226
MoonCalc.GetMoonIllumination(date, this, lat, longi, el, offset);
228-
}
229-
230-
if (el.Extensions.Zodiac)
231-
{
232-
SunCalc.CalculateZodiacSign(date, this);
233-
MoonCalc.GetMoonSign(date, this);
234-
}
227+
}
235228

236229
if (el.Extensions.Lunar_Cycle || el.Extensions.Solar_Cycle)
237230
{
@@ -266,8 +259,7 @@ private void Local_Convert(Coordinate c, double offset, Celestial_EagerLoad el)
266259

267260
Perigee.ConvertTo_Local_Time(offset);
268261
Apogee.ConvertTo_Local_Time(offset);
269-
LunarEclipse.ConvertTo_LocalTime(offset);
270-
MoonCalc.GetMoonSign(c.GeoDate.AddHours(offset), this);
262+
LunarEclipse.ConvertTo_LocalTime(offset);
271263
}
272264

273265
////Solar
@@ -278,8 +270,7 @@ private void Local_Convert(Coordinate c, double offset, Celestial_EagerLoad el)
278270
AdditionalSolarTimes.Convert_To_Local_Time(offset);
279271

280272
//Eclipse
281-
SolarEclipse.ConvertTo_LocalTime(offset);
282-
SunCalc.CalculateZodiacSign(c.GeoDate.AddHours(offset), this);
273+
SolarEclipse.ConvertTo_LocalTime(offset);
283274
}
284275
}
285276

CoordinateSharp/Celestial/Celestial.Model.cs

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public partial class Celestial
8383
internal Perigee perigee;
8484
internal Apogee apogee;
8585
internal AdditionalSolarTimes additionalSolarTimes;
86-
internal AstrologicalSigns astrologicalSigns;
86+
8787
internal AlmanacMoonName almanacMoonName;
8888
internal SolarEclipse solarEclipse;
8989
internal LunarEclipse lunarEclipse;
@@ -262,15 +262,7 @@ public partial class Celestial
262262
/// <remarks>Contains dawn, dusk and twilight times.</remarks>
263263
public AdditionalSolarTimes AdditionalSolarTimes { get { return additionalSolarTimes; } }
264264

265-
/// <summary>
266-
/// Astrological signs based on the provided date.
267-
/// </summary>
268-
/// <remarks>
269-
/// Contains zodiac, moon sign and moon name during full moon events.
270-
/// </remarks>
271-
[Obsolete("Astrological sign calculations have been deprecated and are being removed from CoordinateSharp. Moon names will still be available via the " +
272-
"AlmanacMoonName class contained within the CelestialInfo class.")]
273-
public AstrologicalSigns AstrologicalSigns { get { return astrologicalSigns; } }
265+
274266

275267
/// <summary>
276268
/// Farmers Almanac moon names

0 commit comments

Comments
 (0)