+
Skip to content

all files update #51

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 27, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ __pycache__/
# Ignore MacOS system files
.DS_Store

# Ignore secrets
api.txt

# Ignore sensitive model files
galamo/model.keras
galamo/encoder.pkl
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
include galamo/model.keras
include galamo/encoder.pkl # If you also need to include encoder.pkl
include galamo/encoder.pkl
recursive-include galamo *.keras
23 changes: 0 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,29 +23,6 @@ pip install galamo --upgrade

For detailed instructions, see the [installation guide](https:/www.galamo.org/).

## How the Modules Work (Early Glimps)

Below are the brief overviews of the main modules in the `Galamo` project, illustrating their workflows and functionalities:

### 1. Galaxy Prediction Based on Photometer Data
![Galaxy Prediction Module](images/galaxy_morph.png)
This module processes photometric data to predict galaxy morphologies using advanced machine learning algorithms.

---

### 2. BPT Classification Based on Spectral Data
![BPT Classification Module](images/bpt.png)
This module classifies galaxies into Seyfert, LINER, or star-forming using Baldwin-Phillips-Terlevich (BPT) diagnostic diagrams derived from spectral line ratios.

---

### 3. PSR Module for Low-Light Image Enhancement
![PSR Module](images/psr.png)
The PSR module enhances low-light astronomical images to improve feature detection and analysis through state-of-the-art image processing techniques.

---


## Contributing

We welcome contributions from the community! Please follow our [Code of Conduct](https://www.galamo.org/code_of_conduct.html) and check out the [contribution guide](https://www.galamo.org/contribute.html) for more details.
Expand Down
6 changes: 3 additions & 3 deletions galamo/bpt.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ def draw(input_file, map="default", save_figure=False, output_filename="BPT_diag
required_columns = ['h_alpha_flux', 'h_beta_flux', 'oiii_5007_flux', 'nii_6584_flux',
'oi_6300_flux', 'sii_6717_flux', 'sii_6731_flux']

# Read the data


df = pd.read_csv(input_file)
actual_columns = df.columns.tolist()

# Check if all required columns are present

missing_columns = [col for col in required_columns if col not in actual_columns]

if missing_columns:
Expand Down
1 change: 0 additions & 1 deletion main.py

This file was deleted.

14 changes: 7 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,17 @@
author="Jashanpreet Singh Dingra",
author_email="astrodingra@gmail.com",
description="A Python package for comprehensive galaxy analysis, integrating machine learning and statistical methods. It provides automated tools for morphology classification, kinematics, photometry, and spectral analysis to aid astrophysical research.",
long_description=long_description, # Use the content from README.md
long_description_content_type="text/markdown", # Markdown format
url="https://www.galamo.org", # Primary homepage (your main website)
long_description=long_description,
long_description_content_type="text/markdown",
url="https://www.galamo.org",

project_urls={ # ✅ Add GitHub and other related URLs
project_urls={
"Source Code": "https://github.com/galamo-org/galamo",
"Documentation": "https://galamo.org/docs", # Optional if you have docs there
"Documentation": "https://galamo.readthedocs.io/en/latest/",
"Bug Tracker": "https://github.com/galamo-org/galamo/issues",
},
include_package_data=True, # ✅ Ensure package data is included
package_data=package_data, # ✅ Specify extra files dynamically
include_package_data=True,
package_data=package_data,

install_requires=[
"tensorflow",
Expand Down
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载