Skip to content

Commit

Permalink
Merge pull request #64 from DocOtak/issue_63
Browse files Browse the repository at this point in the history
Correct units
  • Loading branch information
DocOtak authored Mar 24, 2023
2 parents 08a1341 + bcba9ed commit bfd7e46
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ repos:
rev: 22.3.0
hooks:
- id: black
language_version: python3.8
language_version: python3
40 changes: 20 additions & 20 deletions gsw_xarray/_attributes.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@
},
"enthalpy_second_derivatives": (
{
"units": "(J/kg)(g/kg)^-2",
"units": "(J/kg)/((g/kg)^2)",
},
{
"units": "J/(kg K(g/kg))",
Expand All @@ -319,7 +319,7 @@
),
"enthalpy_second_derivatives_CT_exact": (
{
"units": "(J/kg)(g/kg)^-2",
"units": "(J/kg)/((g/kg)^2)",
},
{
"units": "J/(kg K(g/kg))",
Expand Down Expand Up @@ -648,7 +648,7 @@
),
"rho_first_derivatives": (
{
"units": "(kg/m^3)(g/kg)^-1",
"units": "(kg/m^3)/(g/kg)",
},
{
"units": "kg/(m^3 K)",
Expand All @@ -659,41 +659,41 @@
),
"rho_first_derivatives_wrt_enthalpy": (
{
"units": "(kg/m^3)(g/kg)^-1", # matlab doc is uncorrect
"units": "(kg/m^3)/(g/kg)", # matlab doc is uncorrect
},
{
"units": "(kg/m^3)(J/kg)^-1",
"units": "(kg/m^3)/(J/kg)",
},
),
"rho_ice": {
"units": "kg/m^3",
},
"rho_second_derivatives": (
{
"units": "(kg/m^3)(g/kg)^-2",
"units": "(kg/m^3)/((g/kg)^2)",
},
{
"units": "(kg/m^3)(g/kg)^-1 K^-1",
"units": "(kg/m^3)/(g/kg) K^-1",
},
{
"units": "(kg/m^3) K^-2",
},
{
"units": "(kg/m^3)(g/kg)^-1 Pa^-1",
"units": "(kg/m^3)/(g/kg) Pa^-1",
},
{
"units": "(kg/m^3) K^-1 Pa^-1",
},
),
"rho_second_derivatives_wrt_enthalpy": (
{
"units": "(kg/m^3)(g/kg)^-2", # matlab doc is uncorrect
"units": "(kg/m^3)/((g/kg)^2)", # matlab doc is uncorrect
},
{
"units": "(kg/m^3)(g/kg)^-1 J^-1/kg^-1",
"units": "(kg/m^3)/(g/kg) J^-1/kg^-1",
},
{
"units": "(kg/m^3)(J/kg)^-2",
"units": "(kg/m^3)/((J/kg)^2)",
},
),
"rho_t_exact": {
Expand Down Expand Up @@ -758,7 +758,7 @@
},
"specvol_first_derivatives": (
{
"units": "(m^3/kg)(g/kg)^-1",
"units": "(m^3/kg)/(g/kg)",
},
{
"units": "m^3/(kg K)",
Expand All @@ -769,41 +769,41 @@
),
"specvol_first_derivatives_wrt_enthalpy": (
{
"units": "(m^3/kg)(g/kg)^-1", # seems to be an error in the doc
"units": "(m^3/kg)/(g/kg)", # seems to be an error in the doc
},
{
"units": "(m^3/kg)(J/kg)^-1",
"units": "(m^3/kg)/(J/kg)",
},
),
"specvol_ice": {
"units": "m^3/kg",
},
"specvol_second_derivatives": (
{
"units": "(m^3/kg)(g/kg)^-2",
"units": "(m^3/kg)/((g/kg)^2)",
},
{
"units": "(m^3/kg)(g/kg)^-1 K^-1",
"units": "(m^3/kg)/(g/kg) K^-1",
},
{
"units": "(m^3/kg) K^-2",
},
{
"units": "(m^3/kg)(g/kg)^-1 Pa^-1", # seems to be an error in the doc
"units": "(m^3/kg)/(g/kg) Pa^-1", # seems to be an error in the doc
},
{
"units": "(m^3/kg) K^-1 Pa^-1",
},
),
"specvol_second_derivatives_wrt_enthalpy": (
{
"units": "(m^3/kg)(g/kg)^-2", # error in doc?
"units": "(m^3/kg)/((g/kg)^2)", # error in doc?
},
{
"units": "(m^3/kg)(g/kg)^-1 J^-1/kg^-1",
"units": "(m^3/kg)/(g/kg) J^-1/kg^-1",
},
{
"units": "(m^3/kg)(J/kg)^-2",
"units": "(m^3/kg)/((J/kg)^2)",
},
),
"specvol_t_exact": {
Expand Down

0 comments on commit bfd7e46

Please sign in to comment.