
    hMhy                     \   d Z ddlZddlmZ  ee                                          j        Zd  ej        edz                                d          D             Zd  ej        edz                                d	          D             Z	ee	d
Z
dedefdZdedefdZdedefdZdS )a  Project: PhiK - correlation analyzer library

Created: 2018/11/13

Description:
    Collection of helper functions to get fixtures, i.e. for test data and notebooks.
    These are mostly used by the (integration) tests and example notebooks.

Authors:
    KPMG Advanced Analytics & Big Data team, Amstelveen, The Netherlands

Redistribution and use in source and binary forms, with or without
modification, are permitted according to the terms listed in the file
LICENSE.
    N)Pathc                     i | ]
}|j         |S  name.0_s     N/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/phik/resources.py
<dictcomp>r      s    OOO!AFAOOO    data*c                     i | ]
}|j         |S r   r   r   s     r   r   r      s)       AFA  r   	notebooksz*.ipynb)fixturenotebookr   returnc                     t           |                              |d          }|r#|                                rt          |          S t	          d                    | |                    )a(  Return the full path filename of a resource.

    :param str resource_type: The type of the resource.
    :param str  name: The name of the resource.
    :returns: The full path filename of the fixture data set.
    :rtype: str
    :raises FileNotFoundError: If the resource cannot be found.
    Nz9Could not find {resource_type} "{name!s}"! Does it exist?)resource_typer   )
_RESOURCESgetexistsstrFileNotFoundErrorformat)r   r   	full_paths      r   	_resourcer   "   su     =)--dD99I Y%%'' 9~~
CJJ'd 	K 	
 	
  r   c                 "    t          d|           S )zReturn the full path filename of a fixture data set.

    :param str name: The name of the fixture.
    :returns: The full path filename of the fixture data set.
    :rtype: str
    :raises FileNotFoundError: If the fixture cannot be found.
    r   r   r   s    r   r   r   7   s     Y%%%r   c                 "    t          d|           S )zReturn the full path filename of a tutorial notebook.

    :param str name: The name of the notebook.
    :returns: The full path filename of the notebook.
    :rtype: str
    :raises FileNotFoundError: If the notebook cannot be found.
    r   r    r   s    r   r   r   B   s     Z&&&r   )__doc__pathlibr   __file__resolveparentROOT_DIRECTORYglob_FIXTURE	_NOTEBOOKr   r   r   r   r   r   r   r   <module>r+      s9           h''))0 PO|w|NV,CDDII#NNOOO #w|N[$@AAFFyQQ  	
 "y99
3 3    *&# &# & & & &'3 '3 ' ' ' ' ' 'r   