Skip to main content

Package collected during my work with PARSEC-TRILEGAL-COLIBRI

Project description

PARTRICOL

making this pkg available on pypi

python3 -m pip install --user --upgrade setuptools wheel twine #install some tools, once for all


python3 setup.py sdist bdist_wheel


twine upload --repository-url https://upload.pypi.org/legacy/ dist/*

install

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.2.tar.gz (58.3 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page