aboutsummaryrefslogtreecommitdiff
path: root/Source/Python/WarpX_py.cpp
blob: 7e0e491f8a27fd7feac32278556d7b41ba61b55c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* Copyright 2019 David Grote, Maxence Thevenet, Weiqun Zhang
 *
 *
 * This file is part of WarpX.
 *
 * License: BSD-3-Clause-LBNL
 */
#include "WarpX_py.H"

std::map< std::string, WARPX_CALLBACK_PY_FUNC_0 > warpx_callback_py_map;

bool IsPythonCallBackInstalled ( std::string name )
{
    return (warpx_callback_py_map.count(name) == 1u);
}

// Execute Python callbacks of the type given by the input string
void ExecutePythonCallback ( std::string name )
{
    if ( IsPythonCallBackInstalled(name) ) {
        WARPX_PROFILE("warpx_py_"+name);
        warpx_callback_py_map[name]();
    }
}
d vscode extensions settings (#472)Gravatar Corentin THOMASSET 2-2/+22 2023-06-19chore(i18n): tool scoped locales (#471)Gravatar Corentin THOMASSET 6-45/+35 2023-06-19feat(command-palette): random tool actionGravatar Corentin Thomasset 3-2/+33 2023-06-19feat(config): allow app to run in a subfolder via BASE_URL (#461)Gravatar Seb 2-7/+10 * fix: allow hosting in subfolder via BASE_URL * Import baseUrl from config * Revert "Import baseUrl from config" This reverts commit 73c867ebc80e9c0ee54e6a75388a49d064a94cf9. * feat(config): fallback baseUrl to / * feat(config): fallback baseUrl to / --------- Co-authored-by: Corentin Thomasset <corentin.thomasset74@gmail.com> 2023-06-19fix(mime-types): typos (#470)Gravatar Corentin THOMASSET 1-2/+2 2023-06-19refactor(search): command palette design (#463)Gravatar Corentin THOMASSET 18-386/+576 2023-06-19chore(wysiwyg-editor): update tiptap dependenciesGravatar Corentin Thomasset 3-845/+1318 2023-06-18feat(new-tool): percentage calculator (#456)Gravatar Seb 5-1/+129 * feat(new tool): percentage calculator * Apply suggestions from code review Co-authored-by: Corentin THOMASSET <corentin.thomasset74@gmail.com> --------- Co-authored-by: Corentin THOMASSET <corentin.thomasset74@gmail.com> 2023-06-18feat(new-tool): json to csv converterGravatar Corentin Thomasset 7-0/+200 2023-06-18fix(sonar): took down minor sonar warningGravatar Corentin Thomasset 2-3/+1 2023-06-18chore(i18n): setup i18n plugin configGravatar Corentin Thomasset 11-5/+256 2023-06-18feat(new tool): xml formatter (#457)Gravatar jmmanzano 10-0/+156 * feat(new tool): xml formatter * feat(xml-formatter): added happy path e2e tests * refactor(xml-formatter): improved unit tests * refactor(xml-formatter): add better suitable icon * feat(xml-formatter): added happy path e2e tests * feat(xml-formatter): registered xml as syntax highlighter * chore(auto-import): removed unused NSpace --------- Co-authored-by: Corentin Thomasset <corentin.thomasset74@gmail.com> 2023-06-18feat(chmod-calculator): added symbolic representation (#455)Gravatar myztillx 3-3/+82 2023-06-18feat(enhancement): use system dark mode (#458)Gravatar Seb 4-35/+8 * Use prefers-color-scheme * Remove theme store 2023-06-11refactor(c-input-text): force usage of props with defaultGravatar Corentin Thomasset 1-2/+1 2023-06-10refactor(naming): prevent auto import conflicts for git memoGravatar Corentin Thomasset 3-2/+3 2023-06-10refactor(imports): removed unnecessary imports to vueGravatar Corentin Thomasset 59-59/+17