Skip to content

Commit

Permalink
Exposing finish method of PythonEventHandler and PythonEventDetector
Browse files Browse the repository at this point in the history
  • Loading branch information
petrushy committed Oct 19, 2024
1 parent 1d82b31 commit 4139730
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 8 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,3 +93,11 @@ More detailed information is available in the
Orekit is licensed by [CS GROUP](https://www.c-s.fr/) under
the [Apache License, version 2.0](http://www.apache.org/licenses/LICENSE-2.0.html).
A copy of this license is provided in the [LICENSE.txt](LICENSE.txt) file.

# Orekit-python-wrapper release checklist

* Merge released upstream branch into orekit-python develop branch
* Check if any new classes, interfaces
* Create new wrapper classes if needed
* Compile and check for warnings
*
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

package org.orekit.forces.gravity.potential;

;
import org.orekit.time.AbsoluteDate;

public class PythonRawSphericalHarmonicsProvider implements RawSphericalHarmonicsProvider {
Expand Down
2 changes: 0 additions & 2 deletions src/main/java/org/orekit/propagation/PythonPropagator.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,9 @@
import org.orekit.propagation.events.EventDetector;
import org.orekit.propagation.sampling.OrekitStepHandler;
import org.orekit.propagation.sampling.StepHandlerMultiplexer;
;
import org.orekit.time.AbsoluteDate;
import org.orekit.utils.DoubleArrayDictionary;
import org.orekit.utils.TimeStampedPVCoordinates;
import org.orekit.utils.PVCoordinates;

import java.util.Collection;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,9 @@ public long pythonExtension() {
@Override
public native EventHandler getHandler();

/** {@inheritDoc} */
@Override
public native void finish(SpacecraftState state);

}

Original file line number Diff line number Diff line change
Expand Up @@ -95,5 +95,7 @@ public long pythonExtension() {
@Override
public native FieldEventHandler<T> getHandler();


//** {@inheritDoc} */
@Override
public native void finish(FieldSpacecraftState<T> state);
}
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,9 @@ public void finalize() throws Throwable {

@Override
public native SpacecraftState resetState(EventDetector detector, SpacecraftState oldState);
}

@Override
public native void finish(final SpacecraftState finalState, final EventDetector detector);

}

Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,9 @@ public void finalize()
/** {@inheritDoc} */
@Override
public native FieldSpacecraftState<T> resetState(FieldEventDetector<T> detector, FieldSpacecraftState<T> oldState);
}

/** {@inheritDoc} */
@Override
public native void finish(final FieldSpacecraftState<T> finalState, final FieldEventDetector<T> detector);

}
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@

import org.hipparchus.CalculusFieldElement;
import org.orekit.propagation.FieldSpacecraftState;
import org.orekit.propagation.SpacecraftState;
;
import org.orekit.time.FieldAbsoluteDate;

public class PythonFieldAdditionalDerivativesProvider<T extends CalculusFieldElement<T>> implements FieldAdditionalDerivativesProvider<T> {
Expand Down

0 comments on commit 4139730

Please sign in to comment.