Skip to main content

Python wrapper for GALFITM

Project description

AFFOGATO

gAlactic Faint Feature extractiOn with GALFITM-bAsed Tools in pythOn

Used in Nolan et al., 2025 and submitted separately to JOSS. The example file should work in an environment installed with Jupyter and affogato-agn - I use Conda, and add nb_conda_kernels to the environment setup and install affogato-agn separately with pip. One must install (and ideally, add to PATH in .bashrc to be run globally) GALFITM separately before using AFFOGATO including the example script.

Note that the distribution name of the package is affogato-agn but the import name is affogato. This does render it incompatible with the affogato package, so do not install it (it predates this package, so this is unavoidable).

General Notes for Use:

These wrapper functions generally assume all of the GALFITM work is being done in a fairly clean directory, where files are not being saved permanently, instead being backed up somewhere else if needed, and other intermediate processes are discarded. I've tried to make these functions as general as is practical, and noted in comments where the code becomes specific to my use case. When using the run_galfit() function or any wrapping functions, one should provide the optional argument 'galpath' with the full path to the GALFITM executable - alternatively, if this path has been added to PATH in your .bashrc, you should be able to just pass 'galfitm'.

NOTA BENE: On my Mac, the GALFITM executable did not work until placing it in the src folder of Anaconda3, and only then did it throw an error stating it was being blocked by the security software of my Mac. I was then able to override that block in the Privacy & Security settings. I provide options for where to send your download, but your mileage may vary.

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

affogato_agn-1.0.6.tar.gz (827.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

affogato_agn-1.0.6-py3-none-any.whl (66.6 kB view details)

Uploaded Python 3

File details

Details for the file affogato_agn-1.0.6.tar.gz.

File metadata

  • Download URL: affogato_agn-1.0.6.tar.gz
  • Upload date:
  • Size: 827.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.13

File hashes

Hashes for affogato_agn-1.0.6.tar.gz
Algorithm Hash digest
SHA256 eccb14f3c0ba71aa0684923c4ba72cdb106f7526ce072281143a6d57c8163b76
MD5 d1640853dfe00be6815b2e794367cc3d
BLAKE2b-256 10ebd3131937a72e7bcf4187b7008cdef8cd748bff56d3f9792c8bb3855c2fd3

See more details on using hashes here.

File details

Details for the file affogato_agn-1.0.6-py3-none-any.whl.

File metadata

  • Download URL: affogato_agn-1.0.6-py3-none-any.whl
  • Upload date:
  • Size: 66.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.13

File hashes

Hashes for affogato_agn-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 0aaa38c42c6e00686925fcaaa815610f36da7e3c1d622701dabd289476a92456
MD5 f8845889ff4875021ad38ec42638971e
BLAKE2b-256 8bd5b296f92c2601e84358e4d6f9e45c2612214da9bc46476a751af98ef81b51

See more details on using hashes here.

Supported by

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