tools.experiments_base¶
Classes¶
Functions¶
generate_readme ¶
Generates a README markdown file summarizing bibliography entries.
Creates a formatted markdown table showing publication statistics organized by year, volume, number, and month.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
j_conf_abbr | str | Journal/conference abbreviation for the title. | required |
entry_type | str | Type of bibliography entries (article, inproceedings, etc.). | required |
year_volume_number_month_entry_dict | dict[str, dict[str, dict[str, dict[str, list[Entry]]]]] | Nested dictionary structure containing entries organized by year, volume, number, and month. | required |
Returns:
| Type | Description |
|---|---|
list[str] | Lines of the generated markdown file, or empty list if no valid entries. |
Source code in pybibtexer/tools/experiments_base.py
generate_standard_publisher_abbr_options_dict ¶
Generates a nested dictionary of publisher/abbreviation options.
Creates a hierarchical dictionary structure representing all publishers and their abbreviations that match the inclusion/exclusion criteria.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path_storage | str | Root directory containing publisher/abbreviation folders. | required |
options | dict[str, Any] | Configuration options including inclusion/exclusion lists. | required |
Returns:
| Type | Description |
|---|---|
dict[str, dict[str, dict[str, Any]]] | Nested dictionary structure: - Top level: Publisher names. - Middle level: Abbreviation names. - Inner level: Copy of options dictionary. |
Source code in pybibtexer/tools/experiments_base.py
in_not_in_list ¶
Filters a list based on inclusion and exclusion criteria.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
original | list[str] | Original list to filter. | required |
in_list | list[str] | list of items to include (case-insensitive). | required |
out_list | list[str] | list of items to exclude (case-insensitive). | required |
Returns:
| Type | Description |
|---|---|
list[str] | Filtered list containing only items that: - Are in in_list (if in_list is not empty). - Are not in out_list. |
Source code in pybibtexer/tools/experiments_base.py
obtain_local_abbr_paths ¶
Gets all local abbreviation paths from the storage directory.
Scans the specified storage directory and returns paths to all abbreviation subdirectories that match the inclusion/exclusion criteria in options.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path_storage | str | Root directory containing publisher/abbreviation folders. | required |
options | dict | Configuration dictionary containing: - include_publisher_list: list of publishers to include. - exclude_publisher_list: list of publishers to exclude. - include_abbr_list: list of abbreviations to include. - exclude_abbr_list: list of abbreviations to exclude. | required |
Returns:
| Type | Description |
|---|---|
list[str] | List of full paths to all matching abbreviation directories. |