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
- upload the package
twine upload --repository-url https://upload.pypi.org/legacy/ dist/partricol-0.0.X.tar.gz
Replace 'X' witht the correct version number. The 0.0.1 was deleted (I tried to remove the project), and it will never come back...
You can also upload to the testpy first for checking if everything fine:
twine upload --repository testpypi dist/partricol-0.0.X.tar.gz
installation
pip install --user partricol
update
pip install partricol --upgrade --user
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')
where ./main is the trilegal executable.
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')
parcol
from partricol import parcol
parcol.parcol(exe="../isotracks/code/revisegrid/main",parsec_dbert_dir="../isotracks/isotrack_parsec/CAF09_V1.2S_M36_S12D_NS_MAS3/dbert_comp",inpdir="./INP",indir="./S_035",outdir="isotrack_parcol/CAF09_V1.2S_M36_S12D_NS_MAS3/dbert_comp035",outfile="isotrack_parcol/CAF09_V1.2S_M36_S12D_NS_MAS3_parcol_comp035.dat")
match2trilegal
from match2trilegal import process_match_sfh, process_match_popbox
sfr_match=glob.glob(os.path.join(sfr_dir,region,'region_'+region+'.optir'+quartile+'_*.popbox'))
process_match_popbox(sfr_match, outfile=sfr_tri)
Metadata
Release files for partricol 0.0.5.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| partricol-0.0.5.3.tar.gz | 64.2 kB | Without provenance | Details for partricol-0.0.5.3.tar.gz |
Release files / partricol-0.0.5.3.tar.gz
| Download URL | partricol-0.0.5.3.tar.gz |
|---|---|
| Size | 64.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d0d9d9155d1ea57d2e1a690c0a9575100140512599ffc9b200001e2dbacba650
|
|
BLAKE2b-256 checksum How to use checksums |
21f3e97ecb8038a2f4eb1afa34462263bae55e639b18206faf2f298f41ae2d8c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7
|
Security for partricol 0.0.5.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.