Skip to content

Commit

Permalink
fixing yamls [build docs]
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacgsmith committed Jun 11, 2021
1 parent 34758e2 commit 23745f7
Show file tree
Hide file tree
Showing 2 changed files with 97 additions and 63 deletions.
57 changes: 0 additions & 57 deletions docs/io/output/tardis_example.yml

This file was deleted.

1 change: 1 addition & 0 deletions docs/io/output/tardis_example.yml
102 changes: 96 additions & 6 deletions tardis/io/schemas/csvy_model.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,104 @@ properties:

density:
oneOf:
- $ref: 'model_definitions.yml#/definitions/density/branch85_w7'
- $ref: 'model_definitions.yml#/definitions/density/exponential'
- $ref: 'model_definitions.yml#/definitions/density/power_law'
- $ref: 'model_definitions.yml#/definitions/density/uniform'
- $ref: '#/definitions/density/branch85_w7'
- $ref: '#/definitions/density/exponential'
- $ref: '#/definitions/density/power_law'
- $ref: '#/definitions/density/uniform'

abundance:
$ref: 'model_definitions.yml#/definitions/abundance/uniform'
$ref: '#/definitions/abundance/uniform'

required:
- tardis_model_config_version
- model_isotope_time_0
- model_isotope_time_0

definitions:
density:
branch85_w7:
type: object
additionalProperties: false
properties:
type:
enum:
- branch85_w7
w7_time_0:
type: quantity
default: 0.000231481 day
description: This needs no change - DO NOT TOUCH
w7_rho_0:
type: quantity
default: 3e29 g/cm^3
description: This needs no change - DO NOT TOUCH
w7_v_0:
type: quantity
default: 1 km/s
description: This needs no change - DO NOT TOUCH
exponential:
type: object
additionalProperties: false
properties:
type:
enum:
- exponential
time_0:
type: quantity
description: Time at which the pure model densities are right
rho_0:
type: quantity
description: density at time_0
v_0:
type: quantity
description: at what velocity the density rho_0 applies
required:
- rho_0
- v_0
power_law:
type: object
additionalProperties: false
properties:
type:
enum:
- power_law
time_0:
type: quantity
description: Time at which the pure model densities are right
rho_0:
type: quantity
description: density at time_0
v_0:
type: quantity
description: at what velocity the density rho_0 applies
exponent:
type: number
description: exponent for exponential density profile
required:
- rho_0
- v_0
- exponent
uniform:
type: object
additionalProperties: false
properties:
type:
enum:
- uniform
time_0:
type: quantity
description: Time at which the pure model densities are right
value:
type: quantity
description: value for uniform density
required:
- value
abundance:
uniform:
type: object
properties:
type:
enum:
- uniform
additionalProperties:
type: number
minimum: 0
maximum: 1

0 comments on commit 23745f7

Please sign in to comment.