reorganising all files as a pip installable package

This commit is contained in:
Mayeul Aubin 2025-05-27 14:49:20 +02:00
parent 00124bbdcc
commit cd55468997
31 changed files with 122 additions and 0 deletions

View file

@ -0,0 +1,35 @@
Metadata-Version: 2.4
Name: sbmy_control
Version: 0.1.0
Summary: Simbelmyne control package
Home-page: https://git.aquila-consortium.org/maubin/sbmy_control
Author: Mayeul Aubin
Author-email: mayeul.aubin@iap.fr
License: GPL-3.0
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Requires-Dist: pysbmy
Requires-Dist: numpy
Requires-Dist: matplotlib
Requires-Dist: h5py
Requires-Dist: tqdm
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: license
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary
This package provides control functionalities for Simbelmyne. It allows to create automatically all the required files and scripts to run a N-body simulation with Simbelmyne, using monofonIC for initial conditions. The subpackage `analysis` provides tools to analyze the results of the simulation (slices and power spectra), while the subpackage `scripts` includes tools to handle snapshots, tiles and density fields.

View file

@ -0,0 +1,30 @@
setup.py
sbmy_control/ICs.py
sbmy_control/__init__.py
sbmy_control/args_main.py
sbmy_control/cosmo_params.py
sbmy_control/low_level.py
sbmy_control/main.py
sbmy_control/monofonic.py
sbmy_control/parameters_card.py
sbmy_control/parameters_monofonic.py
sbmy_control/progress_bar.py
sbmy_control/scola.py
sbmy_control/simbelmyne.py
sbmy_control/slurm_submission.py
sbmy_control/timestepping.py
sbmy_control.egg-info/PKG-INFO
sbmy_control.egg-info/SOURCES.txt
sbmy_control.egg-info/dependency_links.txt
sbmy_control.egg-info/entry_points.txt
sbmy_control.egg-info/requires.txt
sbmy_control.egg-info/top_level.txt
sbmy_control/analysis/__init__.py
sbmy_control/analysis/colormaps.py
sbmy_control/analysis/power_spectrum.py
sbmy_control/analysis/slices.py
sbmy_control/scripts/__init__.py
sbmy_control/scripts/convert_snapshot_to_density.py
sbmy_control/scripts/field_to_field.py
sbmy_control/scripts/gather_tiles.py
sbmy_control/scripts/scola_submit.py

View file

@ -0,0 +1 @@

View file

@ -0,0 +1,8 @@
[console_scripts]
convert_snapshot_to_density = sbmy_control.scripts.convert_snapshot_to_density:console_main
field_to_field = sbmy_control.scripts.field_to_field:console_main
gather_tiles = sbmy_control.scripts.gather_tiles:console_main
power_spectrum = sbmy_control.analysis.power_spectrum:console_main
sbmy_control = sbmy_control.main:console_main
scola_submit = sbmy_control.scripts.scola_submit:console_main
slices = sbmy_control.analysis.slices:console_main

View file

@ -0,0 +1,5 @@
pysbmy
numpy
matplotlib
h5py
tqdm

View file

@ -0,0 +1 @@
sbmy_control

42
setup.py Normal file
View file

@ -0,0 +1,42 @@
from setuptools import setup, find_packages
setup(
name='sbmy_control',
version='0.1.0',
author='Mayeul Aubin',
author_email='mayeul.aubin@iap.fr',
description='Simbelmyne control package',
long_description='This package provides control functionalities for Simbelmyne. It allows to create automatically all the required files and scripts to run a N-body simulation with Simbelmyne, using monofonIC for initial conditions. The subpackage `analysis` provides tools to analyze the results of the simulation (slices and power spectra), while the subpackage `scripts` includes tools to handle snapshots, tiles and density fields.',
long_description_content_type='text/markdown',
url='https://git.aquila-consortium.org/maubin/sbmy_control',
packages=find_packages(),
install_requires=[
'pysbmy',
'numpy',
'matplotlib',
'h5py',
'tqdm',
],
license='GPL-3.0',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
],
python_requires='>=3.8',
entry_points={
'console_scripts': [
'sbmy_control=sbmy_control.main:console_main',
'slices=sbmy_control.analysis.slices:console_main',
'power_spectrum=sbmy_control.analysis.power_spectrum:console_main',
'field_to_field=sbmy_control.scripts.field_to_field:console_main',
'gather_tiles=sbmy_control.scripts.gather_tiles:console_main',
'convert_snapshot_to_density=sbmy_control.scripts.convert_snapshot_to_density:console_main',
'scola_submit=sbmy_control.scripts.scola_submit:console_main',
],
},
)