Skip to content

Commit

Permalink
Merge pull request #3 from CNES/patrius-4.14.1
Browse files Browse the repository at this point in the history
Tutorials update for Patrius v4.14.1
  • Loading branch information
cloe-alcaria authored Sep 23, 2024
2 parents 63febbc + d8dc949 commit 6a37995
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# PATRIUS Tutorials

This project contains a list of tutorials to learn how to use the PATRIUS library. These tutorials are compatible with **Patrius v4.13.5**, currently the latest version available on [Connect by CNES](https://www.connectbycnes.fr/patrius).
This project contains a list of tutorials to learn how to use the PATRIUS library. These tutorials are compatible with **Patrius v4.14.1**, currently the latest version available on the [Maven Central repositories](https://mvnrepository.com/artifact/fr.cnes.sirius.patrius/patrius).


## ABOUT

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<dependency>
<groupId>fr.cnes.sirius.patrius</groupId>
<artifactId>patrius</artifactId>
<version>4.13.5</version>
<version>4.14.1</version>
</dependency>
</dependencies>
<properties>
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/ephemeris/LoadingSunEphemeris.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import fr.cnes.sirius.patrius.bodies.CelestialBody;
import fr.cnes.sirius.patrius.bodies.CelestialBodyFactory;
import fr.cnes.sirius.patrius.bodies.JPLCelestialBodyLoader;
import fr.cnes.sirius.patrius.bodies.EphemerisType;
import fr.cnes.sirius.patrius.bodies.PredefinedEphemerisType;
import fr.cnes.sirius.patrius.frames.Frame;
import fr.cnes.sirius.patrius.frames.FramesFactory;
import fr.cnes.sirius.patrius.orbits.pvcoordinates.PVCoordinates;
Expand All @@ -33,7 +33,7 @@ public static void main(final String[] args) throws PatriusException, IOExceptio

for (int i = 0; i < fileNames.length; i++) {

final JPLCelestialBodyLoader loader = new JPLCelestialBodyLoader(fileNames[i], EphemerisType.SUN);
final JPLCelestialBodyLoader loader = new JPLCelestialBodyLoader(fileNames[i], PredefinedEphemerisType.SUN);

CelestialBodyFactory.clearCelestialBodyLoaders();
CelestialBodyFactory.addCelestialBodyLoader(CelestialBodyFactory.SUN, loader);
Expand Down

0 comments on commit 6a37995

Please sign in to comment.