Skip to content

Commit ff96bd7

Browse files
committed
Fix docs index formatting. Fix user-agent construction in get_data
1 parent 1402492 commit ff96bd7

3 files changed

Lines changed: 8 additions & 12 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@
1717
<a href="https://ascl.net/2508.020"><img src="https://img.shields.io/badge/ASCL%20ID-2508.020-blue.svg" alt="ascl:2508.020" /></a>
1818
<a href="https://emac.gsfc.nasa.gov?cid=2603-003"><img src="https://img.shields.io/badge/EMAC%20ID-2603.003-blue.svg" alt="ascl:2508.020" /></a>
1919
<a href="https://doi.org/10.5281/zenodo.15386789"><img src="https://img.shields.io/badge/Zenodo-17431569-blue.svg"></a>
20+
<a href="LICENSE.txt"><img src="https://img.shields.io/github/license/nichollsh/AGNI?label=License"></a>
2021
</p>
2122
<p align="center" style="margin: -7px">
2223
<a href="https://github.com/nichollsh/AGNI/actions/workflows/install_and_test.yml"><img src="https://gist.githubusercontent.com/nichollsh/e20f4fa3c7811c75d34005311fef3696/raw/covbadge.svg"></a>
2324
<a href="https://codecov.io/gh/nichollsh/AGNI"><img src="https://codecov.io/gh/nichollsh/AGNI/graph/badge.svg"></a>
2425
<a href="https://github.com/nichollsh/AGNI/actions/workflows/install_and_test.yml"><img src="https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/nichollsh/e20f4fa3c7811c75d34005311fef3696/raw/tests-total.json"></a>
2526
<a href="https://www.h-nicholls.space/AGNI/"><img src="https://github.com/nichollsh/AGNI/actions/workflows/documentation.yml/badge.svg"></a>
26-
<a href="LICENSE.txt"><img src="https://img.shields.io/github/license/nichollsh/AGNI?label=License"></a>
2727
</p>
2828

2929

docs/src/index.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
11
```@raw html
22
<img class="display-light-only" src="assets/logo_title_light.svg" width=32% alt="AGNI logo, light mode"/>
33
<img class="display-dark-only" src="assets/logo_title_dark.svg" width=32% alt="AGNI logo, dark mode"/>
4+
45
<p align="center">
56
<b>An open-source model for extreme atmospheres on rocky exoplanets</b>
67
</p>
7-
<p align="center">
8-
<a href="https://github.com/nichollsh/AGNI/actions/workflows/install_and_test.yml"><img src="https://gist.githubusercontent.com/nichollsh/e20f4fa3c7811c75d34005311fef3696/raw/covbadge.svg" alt="test coverage badge"/></a>
9-
<a href="https://codecov.io/gh/nichollsh/AGNI"><img src="https://codecov.io/gh/nichollsh/AGNI/graph/badge.svg" alt="codecov badge"/></a>
10-
<a href="https://github.com/nichollsh/AGNI/actions/workflows/install_and_test.yml"><img src="https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/nichollsh/e20f4fa3c7811c75d34005311fef3696/raw/tests-total.json" alt="number of tests badge"/></a>
11-
</p>
128
```
139

1410
AGNI's primary purpose is to simulate the atmospheric temperature-, height-, and compositional-structures of atmospheres overlying magma oceans. It does this while ensuring that radiative-convective equilibrium is maintained throughout the atmosphere. [SOCRATES](https://proteus-framework.org/SOCRATES/) is used to perform correlated-k radiative transfer including: shortwave irradiation from the star, surface emission, line absorption, Rayleigh scattering, clouds, aerosols, and collisional absorption. Mixing length theory is used to parametrise convection. AGNI also supports real gas equations of state, self-gravitation, and various spectral surface compositions. Accounting for these energy transport processes permits an energy-conserving calculation of atmospheric structure, obtained using numerical optimisation, which also yields realistic cooling rates for young rocky planets with magma oceans.

src/get_data.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ fi
2222
# User agent string to identify the script to Zenodo
2323
os=$(uname -s)
2424
arch=$(uname -m)
25-
ua="AGNI_get_data/1.0 ($os $arch)"
25+
ua="AGNI/1.0 ($os $arch)"
2626

2727
# Check internet connectivity
28-
header=$(wget --user-agent $ua --spider -S "https://zenodo.org" 2>&1 | grep "HTTP")
28+
header=$(wget --user-agent "'$ua'" --spider -S "https://zenodo.org" 2>&1 | grep "HTTP")
2929
# echo $header
3030
if ! [[ $header == *"HTTP/1.1 2"* || $header == *"HTTP/1.1 3"* || $header == *"response 2"* || $header == *"response 3"* ]]; then
3131
# Return error if we don't get a positive HTTP response from Zenodo
@@ -110,7 +110,7 @@ function zenodo {
110110
# get data
111111
echo " zenodo/$1 > $tgt"
112112
mkdir -p $2
113-
wget --user-agent $ua -qO $tgt $url
113+
wget --user-agent "'$ua'" -qO $tgt $url
114114

115115
# check if command failed or if file does not exist
116116
if [ $? -ne 0 ]; then
@@ -124,7 +124,7 @@ function zenodo {
124124
# try again at downloading the file?
125125
echo "Trying again to download the file"
126126
sleep 1
127-
wget --user-agent $ua -qO $tgt $url
127+
wget --user-agent "'$ua'" -qO $tgt $url
128128

129129
# check if command failed or if file does not exist
130130
if [ $? -ne 0 ]; then
@@ -171,7 +171,7 @@ function zenodo_all {
171171
# get data
172172
echo " zenodo/$1 > $tgt"
173173
mkdir -p $2
174-
wget --user-agent $ua -qO $tgt $url
174+
wget --user-agent "'$ua'" -qO $tgt $url
175175

176176
# check if command failed or if file does not exist
177177
if [ $? -ne 0 ]; then
@@ -186,7 +186,7 @@ function zenodo_all {
186186
# try again at downloading the file?
187187
echo "Trying again to download the file"
188188
sleep 1
189-
wget --user-agent $ua -qO $tgt $url
189+
wget --user-agent "'$ua'" -qO $tgt $url
190190

191191
# check if command failed or if file does not exist
192192
if [ $? -ne 0 ]; then

0 commit comments

Comments
 (0)