Skip to content

Commit

Permalink
Merge pull request #1106 from agnwinds/dev
Browse files Browse the repository at this point in the history
Python 88x: merge into main
  • Loading branch information
jhmatthews authored Oct 18, 2024
2 parents ca6e255 + 7716844 commit 7b7f529
Show file tree
Hide file tree
Showing 519 changed files with 1,231,238 additions and 3,226 deletions.
11 changes: 11 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Handle line endings automatically for files detected as text
# and leave all files detected as binary untouched.
* text=auto

# Force the following filetypes to have unix eols, so Windows does not break them
*.* text eol=lf

# Denote all files that are truly binary and should not be modified.
*.png binary
*.jpg binary
*.pdf binary
9 changes: 8 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ bin/modify_wind*

# Run files
*.spec*
*.pf.old
*.out.pf
mod.pf

# Object files
*.o
Expand Down Expand Up @@ -79,10 +82,13 @@ wiki/
*.Plo
*.Po

# atomic data files should not be tracked by this repository
# Some atomic data files should not be tracked by this repository
data/
xmod/

# avoid tracking symbolic links errenously put in xdata
xdata/xdata

# we shouldn't be tracking version.h either
source/version.h

Expand All @@ -105,3 +111,4 @@ logfile
**/*.vscode/
py_progs/.idea/
scratch/

3 changes: 3 additions & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,12 @@ formats: all
# Set the OS, Python version and other tools you might need
build:
os: ubuntu-22.04
apt_packages:
- libhdf4-dev
tools:
python: "3.12"


# Optionally set the version of Python and requirements required to build your docs
python:
install:
Expand Down
57 changes: 36 additions & 21 deletions CITATION.cff
Original file line number Diff line number Diff line change
@@ -1,6 +1,23 @@
cff-version: 1.0.3
message: If you use Python, please cite both the software and the outline paper.
cff-version: 1.2.0
title: "Python"
repository-code: https://github.com/agnwinds/python
abstract: "A code for Monte Carlo simulation of radiative transfer & ionisation within astrophysical compact object systems."
message: "If you use Python, please cite both the 2002 concept paper and the software release paper."
version: 88a
date-released: 2024-04-11
doi: 10.1086/342879
identifiers:
- type: doi
value: 10.1086/342879
description: "2002 concept paper for the Python project."
- type: doi
value: 10.1234/567890
description: "[PLACEHOLDER] Software release paper for this software."
- type: doi
value: 10.1234/zenodo.5678
description: "[PLACEHOLDER] The Zenodo project DOI for the Python code."
authors:
- name: The Python collaboration
- family-names: Long
given-names: Knox
orcid: https://orcid.org/0000-0002-4134-864X
Expand Down Expand Up @@ -30,7 +47,7 @@ authors:
given-names: Sam
orcid: https://orcid.org/0000-0001-7511-5652
affiliation: "University of Southampton"
email: s.w.[email protected]
email: [email protected]
- family-names: Parkinson
given-names: Edward
orcid: https://orcid.org/0000-0003-3902-052X
Expand All @@ -39,22 +56,20 @@ authors:
- family-names: Hewitt
given-names: Mandy
affiliation: "Queens University Belfast"
orcid: https://orcid.org/0000-0001-5263-3246
email: [email protected]
website: https://github.com/agnwinds/python
title: Python
version: 83b
# doi: ??.?/zenodo.????
date-released: 2019-02-24
references:
- type: article
authors:
- family-names: Long
given-names: Knox
- family-names: Knigge
given-names: Christian
title: "Modeling the Spectral Signatures of Accretion Disk Winds: A New Monte Carlo Approach"
year: 2002
journal: The Astrophysical Journal
volume: 579
issue: 2
doi: 10.1086/342879
- family-names: Scepi
given-names: Nicholas
orcid: https://orcid.org/0000-0003-3909-2486
affiliation: "University of Southampton"
- family-names: Wallis
given-names: Austen
orcid: https://orcid.org/0000-0003-0770-9015
affiliation: "University of Southampton"
- family-names: Mosallanezhad
given-names: Amin
orcid: https://orcid.org/0000-0002-4601-7073
affiliation: "University of Southampton"
- family-names: Gupta
given-names: Rahul
affiliation: "Imperial College London"
9 changes: 9 additions & 0 deletions docs/parameters/Central_object.bubble_size.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: Central_object.bubble_size
description: |
Multi-line description, must keep indentation.
type: Double
unit: co.gravitational_radius
values: Condition e.g. greater than 0 or list e.g. [1, 2, 5]
parent:
parameter: Condition e.g. greater than 0 or list e.g. [1, 2, 5]
file: setup_star_bh.c
10 changes: 10 additions & 0 deletions docs/parameters/Diag.angle.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: Diag.angle
description: |
0=pole
type: Double
unit: None
values: Condition e.g. greater than 0 or list e.g. [1, 2, 5]
parent:
parameter: Condition e.g. greater than 0 or list e.g. [1, 2, 5]
file: diag.c
advanced: true
8 changes: 8 additions & 0 deletions docs/parameters/Diag.invoke_searchlight_option.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name: Diag.invoke_searchlight_option
description: |
Multi-line description, must keep indentation.
type: Boolean (yes/no)
parent:
parameter: Condition e.g. greater than 0 or list e.g. [1, 2, 5]
file: diag.c
advanced: true
8 changes: 8 additions & 0 deletions docs/parameters/Diag.keep_ioncycle_spectra.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name: Diag.keep_ioncycle_spectra
description: |
Multi-line description, must keep indentation.
type: Boolean (yes/no)
parent:
parameter: Condition e.g. greater than 0 or list e.g. [1, 2, 5]
file: diag.c
advanced: true
13 changes: 13 additions & 0 deletions docs/parameters/Diag.location.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Diag.location
description: |
Multi-line description, must keep indentation.
type: Enumerator
values:
central_object: |
Multi-line description, must keep indentation.
disk: |
Multi-line description, must keep indentation.
parent:
parameter: Condition e.g. greater than 0 or list e.g. [1, 2, 5]
file: diag.c
advanced: true
15 changes: 15 additions & 0 deletions docs/parameters/Diag.partial_cells.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Diag.partial_cells
description: |
Multi-line description, must keep indentation.
type: Enumerator
values:
extend_full_cells: |
Multi-line description, must keep indentation.
include: |
Multi-line description, must keep indentation.
zero_densities: |
Multi-line description, must keep indentation.
parent:
parameter: Condition e.g. greater than 0 or list e.g. [1, 2, 5]
file: diag.c
advanced: true
10 changes: 10 additions & 0 deletions docs/parameters/Diag.r.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: Diag.r
description: |
Multi-line description, must keep indentation.
type: Double
unit: co.radius
values: Condition e.g. greater than 0 or list e.g. [1, 2, 5]
parent:
parameter: Condition e.g. greater than 0 or list e.g. [1, 2, 5]
file: diag.c
advanced: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name: Diag.use_jumps_for_emissivities_in_detailed_spectra
description: |
Multi-line description, must keep indentation.
type: Boolean (yes/no)
parent:
parameter: Condition e.g. greater than 0 or list e.g. [1, 2, 5]
file: diag.c
advanced: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name: Diag.use_upweighting_of_simple_macro_atoms
description: |
Multi-line description, must keep indentation.
type: Boolean (yes/no)
parent:
parameter: Condition e.g. greater than 0 or list e.g. [1, 2, 5]
file: diag.c
advanced: true
8 changes: 8 additions & 0 deletions docs/parameters/Disk.colour_correction.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name: Disk.colour_correction
description: |
Done12
type: Enumerator
values: Condition e.g. greater than 0 or list e.g. [1, 2, 5]
parent:
parameter: Condition e.g. greater than 0 or list e.g. [1, 2, 5]
file: setup_disk.c
9 changes: 9 additions & 0 deletions docs/parameters/Disk.radmin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: Disk.radmin
description: |
Multi-line description, must keep indentation.
type: Double
unit: cm
values: Condition e.g. greater than 0 or list e.g. [1, 2, 5]
parent:
parameter: Condition e.g. greater than 0 or list e.g. [1, 2, 5]
file: setup_disk.c
12 changes: 12 additions & 0 deletions docs/parameters/Matom_transition_mode.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Matom_transition_mode
description: |
Multi-line description, must keep indentation.
type: Enumerator
values:
matrix: |
Multi-line description, must keep indentation.
mc_jumps: |
Multi-line description, must keep indentation.
parent:
parameter: Condition e.g. greater than 0 or list e.g. [1, 2, 5]
file: setup_line_transfer.c
9 changes: 9 additions & 0 deletions docs/parameters/SV.gamma.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: SV.gamma
description: |
Multi-line description, must keep indentation.
type: Double
unit: Kelvin
values: Condition e.g. greater than 0 or list e.g. [1, 2, 5]
parent:
parameter: Condition e.g. greater than 0 or list e.g. [1, 2, 5]
file: sv.c
9 changes: 9 additions & 0 deletions docs/parameters/Spectrum.nwave.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: Spectrum.nwave
description: |
Multi-line description, must keep indentation.
type: Integer
unit: None
values: Condition e.g. greater than 0 or list e.g. [1, 2, 5]
parent:
parameter: Condition e.g. greater than 0 or list e.g. [1, 2, 5]
file: setup.c
9 changes: 9 additions & 0 deletions docs/parameters/monochromatic.wavelength.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: monochromatic.wavelength
description: |
Multi-line description, must keep indentation.
type: Double
unit: None
values: Condition e.g. greater than 0 or list e.g. [1, 2, 5]
parent:
parameter: Condition e.g. greater than 0 or list e.g. [1, 2, 5]
file: setup.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name: Diag.turn_off_upweighting_of_simple_macro_atoms
description: |
Multi-line description, must keep indentation.
type: Boolean (yes/no)
parent:
parameter: Condition e.g. greater than 0 or list e.g. [1, 2, 5]
file: diag.c
advanced: true
Loading

0 comments on commit 7b7f529

Please sign in to comment.