Skip to content

Commit

Permalink
Merge pull request #38 from open-space-collective/users/remy/bump-phy…
Browse files Browse the repository at this point in the history
…sics-version

Bump Physics Version
  • Loading branch information
Derollez authored Feb 12, 2021
2 parents acb08ff + e0b5078 commit fe2d9a4
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export jupyter_notebook_port := 9005
export open_space_toolkit_core_version := 0.4.2
export open_space_toolkit_io_version := 0.4.0
export open_space_toolkit_mathematics_version := 0.4.0
export open_space_toolkit_physics_version := 0.5.1
export open_space_toolkit_physics_version := 0.5.2

export open_space_toolkit_core_directory := $(project_directory)/../open-space-toolkit-core
export open_space_toolkit_io_directory := $(project_directory)/../open-space-toolkit-io
Expand Down
2 changes: 1 addition & 1 deletion bindings/python/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@

################################################################################################################################################################

open-space-toolkit-physics==0.5.1
open-space-toolkit-physics==0.5.2

################################################################################################################################################################
22 changes: 15 additions & 7 deletions bindings/python/test/access/test_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,13 @@
Access = astrodynamics.Access
Generator = astrodynamics.access.Generator

environment: Environment = Environment.default()

################################################################################################################################################################

def test_access_generator_constructors ():

# Contruction with environment and no filters
environment: Environment = Environment.default()

generator: Generator = Generator(environment)

Expand Down Expand Up @@ -81,7 +82,6 @@ def access_filter (access):
def test_access_generator_compute_accesses ():

# Contruction with environment and no filters
environment: Environment = Environment.default()

generator: Generator = Generator(environment)

Expand Down Expand Up @@ -136,8 +136,6 @@ def generate_second_trajectory ():

def test_access_generator_setters ():

environment: Environment = Environment.default()

generator: Generator = Generator(environment)

# set_step
Expand Down Expand Up @@ -180,8 +178,6 @@ def test_access_generator_aer_ranges ():
elevation_interval = RealInterval.closed(0.0, 90.0)
range_interval = RealInterval.closed(0.0, 7000e3)

environment = Environment.default()

generator: Generator = Generator.aer_ranges(azimuth_interval, elevation_interval, range_interval, environment)

assert generator is not None
Expand All @@ -190,6 +186,18 @@ def test_access_generator_aer_ranges ():

################################################################################################################################################################

# def test_access_generator_aer_mask ():
def test_access_generator_aer_mask ():

# Construct arbitrary anAzimuthElevationMask using python dict
an_azimuth_elevation_mask = {0.0: 30.0, 90.0: 60.0, 180.0: 60.0, 270.0: 30.0, 359.0: 30.0}

# Construct arbitrary aRangerange
a_range_range = RealInterval(0.0, 10e4, RealInterval.Type.Closed)

generator: Generator = Generator.aer_mask(an_azimuth_elevation_mask, a_range_range, environment)

assert generator is not None
assert isinstance(generator, Generator)
assert generator.is_defined()

################################################################################################################################################################
2 changes: 1 addition & 1 deletion docker/development/debian/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ RUN mkdir -p /tmp/open-space-toolkit-mathematics \

## Open Space Toolkit ▸ Physics

ARG OSTK_PHYSICS_VERSION=0.5.1
ARG OSTK_PHYSICS_VERSION=0.5.2

RUN mkdir -p /tmp/open-space-toolkit-physics \
&& cd /tmp/open-space-toolkit-physics \
Expand Down
2 changes: 1 addition & 1 deletion docker/development/fedora/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ RUN mkdir -p /tmp/open-space-toolkit-mathematics \

## Open Space Toolkit ▸ Physics

ARG OSTK_PHYSICS_VERSION=0.5.1
ARG OSTK_PHYSICS_VERSION=0.5.2

RUN mkdir -p /tmp/open-space-toolkit-physics \
&& cd /tmp/open-space-toolkit-physics \
Expand Down

0 comments on commit fe2d9a4

Please sign in to comment.