Skip to content

Commit 696cd0d

Browse files
author
Cyrille Favreau
authored
Merge pull request #383 from favreau/master
Version 2.0.0
2 parents 2302d24 + 08b6c94 commit 696cd0d

File tree

5,390 files changed

+1086
-618636
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

5,390 files changed

+1086
-618636
lines changed

.github/workflows/deploy.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Build and Deploy Jekyll Site
2+
3+
on:
4+
push:
5+
branches:
6+
- main # Remplace par ta branche principale si nécessaire
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v2
15+
16+
- name: Setup Ruby
17+
uses: ruby/setup-ruby@v1
18+
with:
19+
ruby-version: '2.7'
20+
21+
- name: Install dependencies
22+
run: |
23+
gem install bundler
24+
bundle install
25+
26+
- name: Build site
27+
run: bundle exec jekyll build
28+
29+
- name: Deploy to GitHub Pages
30+
uses: peaceiris/actions-gh-pages@v3
31+
with:
32+
github_token: ${{ secrets.GITHUB_TOKEN }}
33+
publish_dir: ./_site

.gitmodules

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,9 @@
1-
[submodule "platorm/deps/uvw"]
2-
path = platorm/deps/uvw
3-
url = https://github.com/skypjack/uvw.git
4-
[submodule "platform/deps/perceptualdiff"]
5-
path = platform/deps/perceptualdiff
6-
url = https://github.com/myint/perceptualdiff.git
7-
[submodule "platform/deps/rapidjson"]
8-
path = platform/deps/rapidjson
9-
url = https://github.com/Tencent/rapidjson.git
101
[submodule "platform/deps/uvw"]
11-
path = platform/deps/uvw
12-
url = https://github.com/skypjack/uvw.git
2+
path = platform/deps/uvw
3+
url = https://github.com/skypjack/uvw.git
4+
[submodule "platform/deps/rapidjson"]
5+
path = platform/deps/rapidjson
6+
url = https://github.com/Tencent/rapidjson.git
137
[submodule "common/deps/async++"]
14-
path = common/deps/async++
15-
url = https://github.com/Amanieu/asyncplusplus.git
8+
path = common/deps/async++
9+
url = https://github.com/Amanieu/asyncplusplus.git

CMake/FindFreeImage.cmake

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

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ cmake_minimum_required(VERSION 3.1 FATAL_ERROR)
1616
set(NAME BIOEXPLORER)
1717

1818
set(PACKAGE_VERSION_ABI 1)
19-
set(PACKAGE_VERSION_MAJOR 1)
20-
set(PACKAGE_VERSION_MINOR 8)
19+
set(PACKAGE_VERSION_MAJOR 2)
20+
set(PACKAGE_VERSION_MINOR 0)
2121
set(PACKAGE_VERSION_PATCH 0)
2222

2323
# Get the Git revision using the git command

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ be.add_sars_cov_2(name=name, resource_folder=resource_folder)
477477

478478
# License
479479

480-
_BBBE_ is available to download and use under the GNU General Public License ([GPL](https://www.gnu.org/licenses/gpl.html), or “free software”). The code is open sourced with approval from the open sourcing committee and principal coordinators of the Blue Brain Project in February 2022.
480+
_BBBE_ is available to download and use under the [Apache 2.0](https://www.apache.org/licenses/LICENSE-2.0). The code is open sourced with approval from the open sourcing committee and principal coordinators of the Blue Brain Project in February 2022.
481481

482482

483483
# Contact

bioexplorer/backend/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ include_directories(
248248
set(${NAME}_LINK_LIBRARIES
249249
PUBLIC ${${NAME}_PUBLIC_MODULE_LIBRARIES}
250250
PRIVATE CoreParameters CoreCommon CoreEngine CoreIO mpfr stdc++fs
251-
${${NAME}_PRIVATE_MODULE_LIBRARIES} ${FreeImage_LIBRARIES} ${PQXX_LIBRARIES} ${OpenMP_CXX_LIBRARIES}
251+
${${NAME}_PRIVATE_MODULE_LIBRARIES} ${PQXX_LIBRARIES} ${OpenMP_CXX_LIBRARIES}
252252
)
253253

254254
if(${CGAL_FOUND})

bioexplorer/backend/doc/metadata.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ maintainers: Cyrille Favreau
99
name: BioExplorer
1010
license: Apache 2.0
1111
issuesurl: https://github.com/BlueBrain/BioExplorer/issues
12-
version: 1.8.0
12+
version: 2.0.0
1313
contributors: Cyrille Favreau
1414
minor: 1
1515
---

bioexplorer/pythonsdk/Dockerfile

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,16 @@
1-
2-
# The Blue Brain BioExplorer is a tool for scientists to extract and analyse
3-
# scientific data from visualization
1+
# Copyright 2020 - 2023 Blue Brain Project / EPFL
42
#
5-
# Copyright 2020-2023 Blue BrainProject / EPFL
6-
#
7-
# This program is free software: you can redistribute it and/or modify it under
8-
# the terms of the GNU General Public License as published by the Free Software
9-
# Foundation, either version 3 of the License, or (at your option) any later
10-
# version.
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
116
#
12-
# This program is distributed in the hope that it will be useful, but WITHOUT
13-
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
14-
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
15-
# details.
7+
# http://www.apache.org/licenses/LICENSE-2.0
168
#
17-
# You should have received a copy of the GNU General Public License along with
18-
# this program. If not, see <https://www.gnu.org/licenses/>.
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
1914

2015
FROM debian:buster-slim as builder
2116
LABEL maintainer="cyrille.favreau@epfl.ch"

bioexplorer/pythonsdk/Makefile

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,28 @@
1-
# Copyright (c) 2020-2023, Blue Brain Project
2-
# Cyrille Favreau <cyrille.favreau@epfl.ch>
1+
# Copyright 2020 - 2023 Blue Brain Project / EPFL
32
#
4-
# This file is part of BioExplorer <https://github.com/BlueBrain/BioExplorer>
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
56
#
6-
# This library is free software; you can redistribute it and/or modify it under
7-
# the terms of the GNU Lesser General Public License version 3.0 as published
8-
# by the Free Software Foundation.
7+
# http://www.apache.org/licenses/LICENSE-2.0
98
#
10-
# This library is distributed in the hope that it will be useful, but WITHOUT
11-
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12-
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
13-
# details.
14-
#
15-
# You should have received a copy of the GNU Lesser General Public License
16-
# along with this library; if not, write to the Free Software Foundation, Inc.,
17-
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18-
# All rights reserved. Do not distribute without further notice.
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
1914

2015
ROOT_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
2116

22-
#see if we're in a virtualenv, and use that, otherwise use the default
17+
# See if we're in a virtualenv, and use that, otherwise use the default
2318
ifdef VIRTUAL_ENV
2419
VENV=$(VIRTUAL_ENV)
2520
else
2621
VENV:=venv
2722
endif
2823
VENV_BIN:=$(VENV)/bin
2924

30-
# simulate running in headless mode
25+
# Simulate running in headless mode
3126
unexport DISPLAY
3227

3328
# Test coverage pass threshold (percent)

bioexplorer/pythonsdk/bioexplorer/__init__.py

Lines changed: 32 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#!/usr/bin/env python3
2+
13
# Copyright 2020 - 2024 Blue Brain Project / EPFL
24
#
35
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -12,15 +14,37 @@
1214
# See the License for the specific language governing permissions and
1315
# limitations under the License.
1416

17+
"""
18+
BioExplorer module
19+
20+
This package provides tools for exploring biological data, including utilities for molecular system
21+
animations, displacement parameters for eurons and astrocytes, report parameters, movie making, and
22+
more.
23+
24+
Modules included:
25+
- Vector2, Vector3, Quaternion, Bounds, Transformation
26+
- MolecularSystemAnimationParams, CellAnimationParams
27+
- NeuronDisplacementParams, AstrocyteDisplacementParams, VasculatureDisplacementParams,
28+
SynapseDisplacementParams
29+
- Volume, Membrane, Protein, Sugar, RNASequence, Cell, Surfactant, Virus, EnzymeReaction
30+
- NeuronReportParams
31+
- MovieMaker, MovieScenario
32+
- Metabolism
33+
- SonataExplorer
34+
- Widgets
35+
- TransferFunction
36+
- BioExplorer
37+
38+
For more information, please refer to the individual module docstrings.
39+
"""
40+
1541
from .version import VERSION as __version__
1642
from .math_utils import (Vector2, Vector3, Quaternion, Bounds, Transformation)
17-
from .animation_parameters import (
18-
MolecularSystemAnimationParams, CellAnimationParams)
19-
from .displacement_parameters import (
20-
NeuronDisplacementParams, AstrocyteDisplacementParams, VasculatureDisplacementParams,
21-
SynapseDisplacementParams)
22-
from .molecular_systems import (Volume, Membrane, Protein, Sugar, RNASequence,
23-
Cell, Surfactant, Virus, EnzymeReaction)
43+
from .animation_parameters import (MolecularSystemAnimationParams, CellAnimationParams)
44+
from .displacement_parameters import (NeuronDisplacementParams, AstrocyteDisplacementParams,
45+
VasculatureDisplacementParams, SynapseDisplacementParams)
46+
from .molecular_systems import (Volume, Membrane, Protein, Sugar, RNASequence, Cell, Surfactant,
47+
Virus, EnzymeReaction)
2448
from .report_parameters import NeuronReportParams
2549
from .movie_maker import MovieMaker
2650
from .movie_scenario import MovieScenario
@@ -35,6 +59,7 @@
3559
"BioExplorer",
3660
"Vector2",
3761
"Vector3",
62+
"Quaternion",
3863
"Bounds",
3964
"Transformation",
4065
"Membrane",

bioexplorer/pythonsdk/bioexplorer/animation_parameters.py

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#!/usr/bin/env
2+
13
# Copyright 2020 - 2024 Blue Brain Project / EPFL
24
#
35
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -12,10 +14,19 @@
1214
# See the License for the specific language governing permissions and
1315
# limitations under the License.
1416

17+
"""
18+
Module animation_parameters
19+
20+
This module provides classes to define animation parameters for molecular systems and cells.
21+
These parameters are used to introduce randomness and sinusoidal motion to make animations appear
22+
more realistic.
23+
"""
24+
1525

1626
class MolecularSystemAnimationParams:
1727
"""
1828
Parameters used to introduce some randomness in the position and orientation of the protein.
29+
1930
This approach is used to make assemblies appear more realistic and for animation purposes.
2031
"""
2132

@@ -33,9 +44,11 @@ def __init__(
3344
3445
:param seed: int, optional: Randomization seed for initial setup. Defaults to 0.
3546
:param position_seed: int, optional: Seed for position randomization. Defaults to 0.
36-
:param position_strength: float, optional: Strength of position randomization. Defaults to 0.0.
47+
:param position_strength: float, optional: Strength of position randomization. Defaults to
48+
0.0.
3749
:param rotation_seed: int, optional: Seed for rotation randomization. Defaults to 0.
38-
:param rotation_strength: float, optional: Strength of rotation randomization. Defaults to 0.0.
50+
:param rotation_strength: float, optional: Strength of rotation randomization. Defaults to
51+
0.0.
3952
:param morphing_step: float, optional: Step for morphing between shapes. Defaults to 0.0.
4053
"""
4154
self.components = {
@@ -74,15 +87,15 @@ def copy(self):
7487
return MolecularSystemAnimationParams(**self.components)
7588

7689
def __repr__(self):
77-
"""
78-
Return the official string representation of the object for debugging and logging purposes.
79-
"""
80-
return f"MolecularSystemAnimationParams({', '.join(f'{k}={v}' for k, v in self.components.items())})"
90+
"""Return the string representation of the object for debugging and logging purposes."""
91+
return f"MolecularSystemAnimationParams(\
92+
{', '.join(f'{k}={v}' for k, v in self.components.items())})"
8193

8294

8395
class CellAnimationParams:
8496
"""
8597
Parameters used to introduce some sinusoidal function in a cell structure.
98+
8699
This class is used to define how cells should be animated using sinusoidal motion.
87100
"""
88101

@@ -129,7 +142,5 @@ def copy(self):
129142
return CellAnimationParams(**self.components)
130143

131144
def __repr__(self):
132-
"""
133-
Return the official string representation of the object for debugging and logging purposes.
134-
"""
145+
"""Return the string representation of the object for debugging and logging purposes."""
135146
return f"CellAnimationParams({', '.join(f'{k}={v}' for k, v in self.components.items())})"

0 commit comments

Comments
 (0)