10
0
mirror of https://github.com/QuantumPackage/qp2.git synced 2024-06-18 19:25:35 +02:00

Perturbation type

This commit is contained in:
Anthony Scemama 2020-03-06 18:12:04 +01:00
parent 22e54cecd1
commit 77ca529072

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
"