Skip to content

Commit 23d59c2

Browse files
Versioning.
1 parent feba054 commit 23d59c2

File tree

7 files changed

+11
-9
lines changed

7 files changed

+11
-9
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Excluded files
22
*.db
3+
*.csv
4+
*.json
35

46
# Excluded folders
57
.idea

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
![logo](docs/src/_static/images/logo.svg)
44

55
The **SSD** project provides Python3 tools allowing users to easily develop **data storage** and **visualization**
6-
strategies for their **numerical simulations** with az minimal lines of code.
6+
strategies for their **numerical simulations** with a minimal lines of code.
77

88
This project has two main objectives:
99
* Easy **storage** management system for **any data** from a numerical simulation;

examples/Core/rendering/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@ It is recommended to inspect and run the python scripts following this order:
88
* ``replay.py``: how to replay a simulation from a *Database*.
99
* ``offscreen.py``: an example of off-screen rendering.
1010
* ``several_factories.py``: how to manage several *Factories* with a single *Visualizer*.
11+
* ``several_factories_offsceen.py``: how to manage several *Factories* with a single *Visualizer* in off-screen mode.
1112

1213
Run the examples using ``python3 <example_name>.py <backend>`` with backend being either 'vedo' (by default) or 'open3d'.

examples/Core/storage/utils_db.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import os
2-
from os import chdir
32
from numpy.random import uniform
43

54
from SSD.Core.Storage import Database, merge, rename_tables, rename_fields, remove_table, remove_field, export

setup.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
# Installation
2929
setup(name='SimulationSimpleDatabase',
30-
version='22.12.4',
30+
version='24.1',
3131
description='A simplified API to use SQL Databases with numerical simulation.',
3232
long_description=long_description,
3333
long_description_content_type='text/markdown',
@@ -37,9 +37,9 @@
3737
packages=packages,
3838
package_dir=packages_dir,
3939
package_data={f'{PROJECT}.examples.Core.rendering': ['armadillo.obj']},
40-
install_requires=['numpy >= 1.26.3',
40+
install_requires=['numpy >= 1.26.4',
4141
'peewee >= 3.17.0',
42-
'vedo >= 2023.5.0',
43-
'matplotlib >= 3.8.2',
42+
'vedo >= 2024.5.1',
43+
'matplotlib >= 3.8.3',
4444
'open3d >= 0.16.0'],
4545
entry_points={'console_scripts': ['SSD=SSD.cli:execute_cli']})

src/Core/Rendering/backend/vedo/vedo_replay.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def launch_visualizer(self) -> None:
7575
axes=4)
7676

7777
# 3. Add a timer callback and set the Plotter in interactive mode
78-
self.__plotter.add_callback('Timer', self.update_thread)
78+
self.__plotter.add_callback('Timer', self.update_thread, enable_picking=False)
7979
self.__plotter.timer_callback('create', dt=int(self.fps * 1e3))
8080
self.__plotter.add_button(self.__reset, states=['start'])
8181
self.__plotter.interactive()

src/cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def print_available_examples(examples):
7474
example_names = sorted(list(examples.keys()))
7575
example_per_repo = {}
7676
for example_name in example_names:
77-
if type(examples[example_name]) == str:
77+
if isinstance(type(examples[example_name]), str):
7878
root, repo = examples[example_name].split('.')[0], examples[example_name].split('.')[1]
7979
else:
8080
root, repo = examples[example_name][0].split('.')[0], examples[example_name][0].split('.')[1]
@@ -174,7 +174,7 @@ def execute_cli():
174174
visualizer.append(backend.lower())
175175

176176
# Run the example
177-
if type(examples[example]) == str:
177+
if isinstance(examples[example], str):
178178
root, repo, script, _ = examples[example].split('.')
179179
# Check SOFA installation
180180
if root == 'SOFA' and not is_SOFA_installed():

0 commit comments

Comments
 (0)