Commit 456e4024 authored by Manuel Luis Alcazar Laynez's avatar Manuel Luis Alcazar Laynez
Browse files

First working PIP installation as stand-alone module

parent 27fa2e01
Loading
Loading
Loading
Loading

LICENSE

0 → 100644
+9 −0
Original line number Diff line number Diff line
MIT License

Copyright (c) 2024 <copyright holders>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

pyproject.toml

0 → 100644
+90 −0
Original line number Diff line number Diff line
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"

[project]
name = "galassify"
version = "0.1.4"
authors = [
  { name="Manuel Alcázar-Laynez", email="manalclay@ugr.es"},
  { name="Andoni Jimenez", email="andonijimenez@ugr.es"},
  { name="Salvador Duarte Puertas", email="sduarte@ugr.es"},
  { name="Cristian Pozo González", email="cpozo@ugr.es"},
  { name="Jesús Domínguez-Gómez", email="jesusdg@ugr.es"},
  { name="Guillermo Blázquez", email="gblazquez@iaa.es"},
  { name="Maria del Carmen Argudo-Fernández", email="margudo@ugr.es"},
  { name="Simon Verley", email="simon@ugr.es"},
  { name="Daniel Espada", email="despada@ugr.es"},
  { name="Estrella Florido", email="estrella@ugr.es"},
  { name="Isabel Pérez", email="isa@ugr.es"},
  { name="Tomás Ruiz-Lara", email="tomasruizlara@gmail.com"},
  { name="Almudena Zurita", email="azurita@ugr.es"}
]
maintainers = [
  { name="Manuel Alcázar-Laynez", email="manalclay@ugr.es"},
  { name="Andoni Jimenez", email="andonijimenez@ugr.es"},
  { name="Salvador Duarte Puertas", email="sduarte@ugr.es"},
  { name="Cristian Pozo González", email="cpozo@ugr.es"},
  { name="Jesús Domínguez-Gómez", email="jesusdg@ugr.es"},
  { name="Guillermo Blázquez", email="gblazquez@iaa.es"},
  { name="Maria del Carmen Argudo-Fernández", email="margudo@ugr.es"},
  { name="Simon Verley", email="simon@ugr.es"}
]
description = "A tool to manually classify galaxies"
readme = {file = "README.md", content-type = "text/markdown"}
license = {file = "LICENSE"}
requires-python = ">=3.8"
keywords = ["astronomy", "astrophysics", "classification", "galaxies"]
classifiers = [
    "Programming Language :: Python :: 3",
    "License :: OSI Approved :: MIT License",
    "Operating System :: OS Independent",
    "Development Status :: 5 - Production/Stable",
    "Environment :: X11 Applications :: Qt",
    "Intended Audience :: Science/Research",
    "Topic :: Scientific/Engineering :: Astronomy",
    "Topic :: Scientific/Engineering :: Physics",
    "Topic :: Scientific/Engineering :: Visualization"
]
dependencies = [
  'pandas==2.0.1',
  'PyQt5==5.15.9',
  'matplotlib==3.7.1',
  'astropy==5.3',
  'requests==2.31.0',
  'Pillow==9.5.0'
]

[project.optional-dependencies]
ds9 = ['pyds9==1.8.1']

[tools.setuptools]
include_package_data = true

[tool.setuptools.package-dir]
galassify = "src/galassify"
get_images_sdss = 'src/get_images_sdss'

[tool.setuptools.packages.find]
where = ["src"]
include = ["galassify*", "get_images_sdss*"]

[tool.setuptools.package-data]
galassify = [
  "img/*.jpeg",
  "img/fits/*.fits",
  "img/nog/*.jpeg",
  "files/*.csv",
  "res/*.png",
  "*.ui"
]

[project.gui-scripts]
galassify = "galassify.galassify:main"

[project.scripts]
get_images_sdss = "get_images_sdss.get_images_sdss:main"

[project.urls]
Homepage = "https://gitlab.com/astrogal/GALAssify"
Issues = "https://gitlab.com/astrogal/GALAssify/-/issues"
 No newline at end of file
+0 −0

Empty file added.

src/galassify/config

0 → 100644
+107 −0
Original line number Diff line number Diff line
[{
    "id":"morphology",
    "name":"Morphology",
    "type":"radiobutton",
    "ncolumns":1,
    "add_clear":true,
    "clear_shortcut":"F9",
    "elements":[{
        "id":"elliptical",
        "name":"Elliptical",
        "shortcut":"F5",
        "description":"<b>Elliptical</b> or <b>lenticular</b> galaxies."
      },{
        "id":"spiral",
        "name":"Spiral",
        "shortcut":"F6",
        "description":"<b>Disc</b> galaxy."
      },{
        "id":"irregular",
        "name":"Irregular",
        "shortcut":"F7",
        "description":"<b>Irregular</b> galaxy."
      },{
        "id":"other",
        "name":"Other",
        "shortcut":"F8",
        "description":"<b>Star</b> or <b>HII region</b> for instance."
      }
    ]
  },
  {
    "id":"tags",
    "name":"Tags",
    "type":"checkbox",
    "ncolumns":2,
    "elements":[{
        "id":"large",
        "name":"Large",
        "shortcut":"L",
        "description":"The galaxy is <b>too large</b> and does not entirely fit within the main hexagon."
      },{
        "id":"tiny",
        "name":"Tiny",
        "shortcut":"T",
        "description":"The galaxy is <b>too small</b>"
      },{
        "id":"faceon",
        "name":"Face-on",
        "shortcut":"F",
        "description":"The galaxy is <b>too face-on</b>\n(inclination near 0 degrees)."
      },{
        "id":"edgeon",
        "name":"Edge-on",
        "shortcut":"E",
        "description":"The galaxy is <b>too edge-on</b>\n(inclination near 90 degrees)."
      },{
        "id":"star",
        "name":"Star",
        "shortcut":"S",
        "description":"There is at least one relatively <b>bright star</b> in the main hexagon."
      },{
        "id":"calibration",
        "name":"Calibration",
        "shortcut":"C",
        "description":"There is at least <b>one bright star</b>, possibly saturated in PPak, <b>in at least one</b> of the six surrounding, small <b>calibration hexagons</b>."
      },{
        "id":"recentre",
        "name":"Recentre",
        "shortcut":"R",
        "description":"The galaxy is <b>not well centred</b> in the main hexagon <b>or</b> two or <b>more galaxies would fit</b> within the main hexagonal footprint if it is recentred."
      },{
        "id":"duplicated",
        "name":"Duplicated",
        "shortcut":"D",
        "description":"The galaxy <b>appears several times</b>.\nMark as \"duplicated\" the ones to remove."
      },{
        "id":"member",
        "name":"Member",
        "shortcut":"M",
        "description":"The galaxy is a <b>member of</b> a pair, triplet, group or <b>system of galaxies</b>."
      },{
        "id":"hiiregion",
        "name":"HII Region",
        "shortcut":"H",
        "description":"The main hexagon is <b>centred</b> on an <b>HII region</b>."
      },{
        "id":"yes",
        "name":"Yes",
        "shortcut":"Y",
        "description":"You <b>really want</b> this galaxy in the final sample."
      },{
        "id":"no",
        "name":"No",
        "shortcut":"N",
        "description":"You <b>really do not want</b> this galaxy in the final sample."
      }
    ]
  },
  {
    "id":"comment",
    "name":"Comments",
    "type":"text",
    "shortcut":"F1",
    "save":"Enter",
    "discard":"Esc"
  }
]
 No newline at end of file
+31 −0
Original line number Diff line number Diff line
group,galaxy,ra,dec,filename
1,15,210.927048,-1.137346,img_1_15_.jpeg
1,254,211.020782,0.998166,img_1_254.jpeg
1,368,209.399231,-0.143221,img_1_368.jpeg
1,1432,131.115585,51.447163,img_1_1432.jpeg
2,2053,229.601944,32.742622,img_2_2053.jpeg
2,4578,176.255005,14.47608,img_2_4578.jpeg
1,6809,212.720978,1.369397,img_1_6809.jpeg
1,11563,174.978165,3.054553,img_1_11563.jpeg
2,12345,205.853745,12.518266,img_2_12345.jpeg
4,15248,201.117096,18.23148,img_4_15248.jpeg
2,15420,194.252426,49.074078,img_2_15420.jpeg
2,18520,232.43869,27.118929,img_2_18520.jpeg
4,20763,192.414612,12.625293,img_4_20763.jpeg
1,23654,140.026764,47.221436,img_1_23654.jpeg
2,23658,181.49881,10.360068,img_2_23658.jpeg
4,28650,179.265366,21.407429,img_4_28650.jpeg
1,32874,177.717056,4.518072,img_1_32874.jpeg
4,42136,190.907364,17.933109,img_4_42136.jpeg
1,45125,134.666763,49.30088,img_1_45125.jpeg
4,46302,148.82164,24.927872,img_4_46302.jpeg
4,52413,192.979187,26.558268,img_4_52413.jpeg
2,54852,233.504868,29.229906,img_2_54852.jpeg
4,63246,169.911362,44.340736,img_4_63246.jpeg
2,65321,219.951035,41.046577,img_2_65321.jpeg
2,76469,168.293427,39.167614,img_2_76469.jpeg
2,79852,238.548569,21.56811,img_2_79852.jpeg
1,87502,140.757462,51.277439,img_1_87502.jpeg
2,91645,182.419159,48.642597,img_2_91645.jpeg
1,98652,142.558029,46.853474,img_1_98652.jpeg
4,100000,227.259003,24.918394,img_4_100000.jpeg
Loading