class_docstr: Encapsulate CmdStan specific logic.
class_docstr_tok: ["Encapsulate","CmdStan","specific","logic","."]
docstr: Convert predictions constant data to xarray.
docstr_tok: ["Convert","predictions","constant","data","to","xarray","."]
code: def predictions_constant_data_to_xarray(self):
      """Convert predictions constant data to xarray."""
      predictions_constant_data_raw = _read_data(
          self.predictions_constant_data
      )
      variables = self.predictions_constant_data_var
      if isinstance(variables, str):
          variables = [variables]
      predictions_constant_data = {}
      for key, vals in predictions_constant_data_raw.items():
          if variables is not None and key not in variables:
              continue
          vals = utils.one_de(vals)
          predictions_constant_data[key] = utils.one_de(vals)
      return dict_to_dataset(
          predictions_constant_data,
          coords=self.coords,
          dims=self.dims,
          default_dims=[],
          index_origin=self.index_origin,
      )
  
imports: import logging
  import os
  import re
  from collections import defaultdict
  from glob import glob
  from pathlib import Path
  from typing import Dict, List, Optional, Union
  import numpy
  from ..None import utils
  from ..rcparams import rcParams
  from .base import CoordSpec, DimSpec, dict_to_dataset, infer_stan_dtypes, requires
  from .inference_data import InferenceData
label_desc: Use image node_id 14 for calling the CmdStanConverter obj's underlying member method code with example usage: obj.predictions_constant_data_to_xarray() and returns: dict_to_dataset