Perturbation type

This commit is contained in:
Anthony Scemama 2020-03-06 18:12:04 +01:00
parent 22e54cecd1
commit 77ca529072
1 changed files with 3 additions and 6 deletions

View File

@ -219,22 +219,19 @@ module Perturbation : sig
end = struct
type t =
| EN
| Barycentric
| Variance
| HF
| SOP
[@@deriving sexp]
let to_string = function
| EN -> \"EN\"
| Variance -> \"Variance\"
| Barycentric -> \"Barycentric\"
| HF -> \"HF\"
| SOP -> \"SOP\"
let of_string s =
match (String.lowercase_ascii s) with
| \"sop\" -> SOP
| \"en\" -> EN
| \"variance\" -> Variance
| \"barycentric\" -> Barycentric
| \"hf\" -> HF
| _ -> raise (Invalid_argument (\"Wrong Perturbation type : \"^s))
end
"