Package collected during my work with PARSEC-TRILEGAL-COLIBRI
Project description
PARTRICOL
making this pkg available on pypi
- install some tools, once for all
python3 -m pip install --user --upgrade setuptools wheel twine
- generate the package for uploading
python3 setup.py sdist bdist_wheel
change the version number every time for new versions in the setup.py 2. upload the package
twine upload --repository-url https://upload.pypi.org/legacy/ dist/partricol-0.0.2.tar.gz
The 0.0.1 was deleted (I tried to remove the project), and it will never come back...
installation
pip install partricol
Usage
cypar: reading mine-style parameter files
The original package is at https://pypi.org/project/cypar/
from partricol import cypar
test=cypar.read('test.par')
def_par_trilegal and write_par_trilegal
from partricol import tripar
test1=tripar.def_par_trilegal()
print(test1.tri.output_kind)
#to change the values
tripar.write_par_trilegal(test1.cmd, 'cmd.par', test1.tri, 'tri.par') #which writes 'cmd.par' and 'tri.par'
run_trilegal
from partricol import tripar
tripar.run_trilegal('S_002_phat_regions_M08.par','./main','.fits')
colibri2trilegal
from partricol.colibri2trilegal.colibri2trilegal_cycy_noeagb import colibri2trilegal
#besides colibri2trilegal_cycy_noeagb the other options are colibri2trilegal_phil, colibri2trilegal_cycy_eagb, colibri2trilegal_cycy_noeagb_fake
from partricol.colibri2trilegal.def_par_colibri2trilegal import def_par_colibri2trilegal
from partricol.colibri2trilegal.write_par_colibri2trilegal import write_par_colibri2trilegal
s=def_par_colibri2trilegal()
#to change the values
write_par_colibri2trilegal(s,'test.inp')
colibri2trilegal('test.inp')
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
partricol-0.0.3.tar.gz
(58.5 kB
view hashes)