Skip to content

Commit e6ac13d

Browse files
authored
Merge pull request #496 from 3dgeo-heidelberg/dev
HELIOS++ v2.0.1
2 parents a3014fb + 43c819b commit e6ac13d

File tree

9 files changed

+97
-273
lines changed

9 files changed

+97
-273
lines changed

.github/workflows/docker.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Publish Docker image
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v?[0-9]+.[0-9]+.[0-9]+'
7+
workflow_dispatch:
8+
inputs:
9+
version:
10+
description: 'Version to publish'
11+
required: true
12+
13+
jobs:
14+
build_and_push:
15+
name: Build and push Docker image
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- uses: docker/login-action@v3
21+
with:
22+
username: ${{ secrets.DOCKER_USERNAME }}
23+
password: ${{ secrets.DOCKER_PASSWORD }}
24+
25+
- name: Build Docker image
26+
uses: docker/build-push-action@v6
27+
if: github.event_name == 'workflow_dispatch'
28+
with:
29+
context: .
30+
file: ./Dockerfile
31+
push: true
32+
tags: ${{ secrets.DOCKER_USERNAME }}/helios:${{ github.event.inputs.version }}
33+
34+
- name: Set tag as output
35+
if: github.event_name == 'push'
36+
run: echo "tag=${GITHUB_REF##*/}" >> "$GITHUB_ENV"
37+
38+
- name: Build Docker image
39+
uses: docker/build-push-action@v6
40+
if: github.event_name == 'push'
41+
with:
42+
context: .
43+
file: ./Dockerfile
44+
push: true
45+
tags: ${{ secrets.DOCKER_USERNAME }}/helios:${{ env.tag }}

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ if(SKBUILD)
1515
set(HELIOS_VERSION ${SKBUILD_PROJECT_VERSION})
1616
set(HELIOS_VERSION_FULL ${SKBUILD_PROJECT_VERSION_FULL})
1717
else()
18-
set(HELIOS_VERSION "2.0.0")
19-
set(HELIOS_VERSION_FULL "2.0.0")
18+
set(HELIOS_VERSION "2.0.1")
19+
set(HELIOS_VERSION_FULL "2.0.1")
2020
endif()
2121

2222
project(Helios++

Docker/Dockerfile

Lines changed: 0 additions & 69 deletions
This file was deleted.

Docker/image-builder/Dockerfile

Lines changed: 0 additions & 120 deletions
This file was deleted.

Docker/image-builder/build-image.sh

Lines changed: 0 additions & 74 deletions
This file was deleted.

Dockerfile

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
FROM quay.io/jupyter/base-notebook:latest
2+
3+
# Install git to make setuptools_scm work
4+
USER root
5+
RUN apt update && \
6+
apt install --no-install-recommends --yes \
7+
build-essential \
8+
git && \
9+
apt clean && \
10+
rm -rf /var/lib/apt/lists/*
11+
USER ${NB_USER}
12+
13+
# Install compiler toolchain into the environment
14+
RUN mamba install -c conda-forge gcc gxx
15+
16+
# Pull in the Conda environment first to avoid unnecessary rebuilds
17+
COPY --chown=${NB_UID} environment-dev.yml ${HOME}/
18+
19+
# Install packages into the conda environment
20+
RUN mamba env update -n base --file ${HOME}/environment-dev.yml && \
21+
mamba clean -a -q -y && \
22+
rm ${HOME}/environment-dev.yml
23+
24+
# Copy the rest of the files
25+
COPY --chown=${NB_UID} . ${HOME}/helios
26+
27+
# Install the Helios package
28+
RUN conda run -n base python -m pip install -v ${HOME}/helios

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ conda install -c conda-forge helios
2626

2727
### Standalone Installer
2828

29-
You can also install HELOIOS++ via the standalone installers available for Windows, Linux and MacOS. They will not only install HELIOS++ but also add shortcuts for a) a H++ terminal session and b) a H++ Jupyter session.
29+
You can also install HELIOS++ via the standalone installers available for Windows, Linux and MacOS. They will not only install HELIOS++ but also add shortcuts for a) a H++ terminal session and b) a H++ Jupyter session.
3030

3131
Download the correct installer for your operating system from the [release page](https://github.com/3dgeo-heidelberg/helios/releases) and run it (under Windows, this is a setup wizard, under Linux and MacOS, it is a shell script).
3232

python/pyhelios/live.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,12 @@ def helios_live():
115115
import numpy as np
116116
import time
117117

118+
# Check that numpy is major version 1
119+
np_major = int(np.__version__.split('.')[0])
120+
if np_major > 1:
121+
print("WARNING: You are using Open3d together with numpy > 1. To our knowledge this is currently incompatible.")
122+
print("Consider downgrading with 'pip install \"numpy<2\"'")
123+
118124
# Create instance of Scene class, generate scene, print scene (if logging v2), and visualize.
119125
scene = Scene(args.survey_file, args.loggingv2)
120126
scene.gen_from_xml()

0 commit comments

Comments
 (0)