Skip to content

Commit

Permalink
Merge pull request #51 from APN-Pucky/pandas_as_default
Browse files Browse the repository at this point in the history
Pandas as default
  • Loading branch information
APN-Pucky committed Jun 9, 2022
2 parents febcf62 + 850ac3f commit c7843be
Show file tree
Hide file tree
Showing 29 changed files with 2,929 additions and 1,873 deletions.
334 changes: 232 additions & 102 deletions docs/source/examples/.ipynb_checkpoints/test_madgraph-checkpoint.ipynb

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": 4,
"id": "b583970e",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"0.1.4.18+dirty\n",
"~/git/resummino/\n"
"0.1.8.9+dirty\n",
"~/git/resummino_release\n"
]
}
],
Expand All @@ -31,13 +31,13 @@
"import hepi.resummino as rs\n",
"import hepi.util as util\n",
"import matplotlib.pyplot as plt\n",
"rs.set_path(\"~/git/resummino\")\n",
"rs.set_path(\"~/git/resummino_release\")\n",
"print (rs.get_path())"
]
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": 5,
"id": "7d048757",
"metadata": {},
"outputs": [],
Expand All @@ -52,7 +52,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 6,
"id": "ed7216a4",
"metadata": {},
"outputs": [
Expand All @@ -62,6 +62,17 @@
"text": [
"Running: 1 jobs\n"
]
},
{
"data": {
"text/plain": [
"0 (9.721+/-0.008)e-06\n",
"Name: NLO, dtype: object"
]
},
"execution_count": 6,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
Expand All @@ -70,17 +81,36 @@
" i = hepi.Input(hepi.Order.NLO,13000,pa,pb,param,\"cteq6l1\",\"cteq66\",1., 1.,id=\"5\")\n",
" #i = hepi.Input(hepi.Order.NLO,13000,pa,pb,param,\"CT14lo\",\"CT14lo\",1., 1.,model_path=model_path,id=\"5\")\n",
" li = [i]\n",
" li = hepi.mass_scan([i],pa, np.linspace(2.4876e2,2.4876e2,1))\n",
" li = hepi.mass_scan([i],pa, np.linspace(2.48758955E+02,2.48758955E+02,1))\n",
" rs_dl = rs.run(li,noskip=False)\n",
" print(rs_dl)"
"rs_dl[\"NLO\"]"
]
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 7,
"id": "a74a3e82",
"metadata": {},
"outputs": [],
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Running: 1 jobs\n"
]
},
{
"data": {
"text/plain": [
"0 (9.721+/-0.008)e-06\n",
"Name: NLO, dtype: object"
]
},
"execution_count": 7,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"for pa,pb in pss:\n",
" for param in params:\n",
Expand All @@ -89,7 +119,7 @@
" li = [i]\n",
" #li = hepi.mass_scan([i],pa, np.linspace(2.4876e2,2.4876e2,1))\n",
" rs_dl = rs.run(li,noskip=False)\n",
" print(rs_dl)"
"rs_dl[\"NLO\"]"
]
},
{
Expand All @@ -99,6 +129,14 @@
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"id": "02b72a93",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand Down
241 changes: 89 additions & 152 deletions docs/source/examples/.ipynb_checkpoints/test_spheno-checkpoint.ipynb

Large diffs are not rendered by default.

491 changes: 242 additions & 249 deletions docs/source/examples/.ipynb_checkpoints/test_write-checkpoint.ipynb

Large diffs are not rendered by default.

44 changes: 21 additions & 23 deletions docs/source/examples/MG5_debug
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#* * * *
#* *
#* *
#* VERSION 2.7.3 2020-06-21 *
#* VERSION 2.7.3.py3 2020-06-28 *
#* *
#* The MadGraph5_aMC@NLO Development Team - Find us at *
#* https://server06.fynu.ucl.ac.be/projects/madgraph *
Expand All @@ -20,41 +20,39 @@
#* run as ./bin/mg5_aMC filename *
#* *
#************************************************************
set default_unset_couplings 99
set group_subprocesses Auto
set ignore_six_quark_processes False
set loop_optimized_output True
set low_mem_multicore_nlo_generation False
set loop_color_flows False
set gauge unitary
set complex_mass_scheme False
set gauge unitary
set loop_optimized_output True
set loop_color_flows False
set max_npoint_for_channel 0
set default_unset_couplings 99
set automatic_html_opening False
import model /opt/MG5_aMC_v2_7_3_py3/models/EWKino_NLO_UFO_py3
import model /opt/MG5_aMC_v2_7_0/models/EWKino_NLO_UFO_py3
Traceback (most recent call last):
File "/opt/MG5_aMC_v2_7_0/madgraph/interface/extended_cmd.py", line 1515, in onecmd
File "/opt/MG5_aMC_v2_7_3/madgraph/interface/extended_cmd.py", line 1541, in onecmd
return self.onecmd_orig(line, **opt)
File "/opt/MG5_aMC_v2_7_0/madgraph/interface/extended_cmd.py", line 1464, in onecmd_orig
File "/opt/MG5_aMC_v2_7_3/madgraph/interface/extended_cmd.py", line 1490, in onecmd_orig
return func(arg, **opt)
File "/opt/MG5_aMC_v2_7_0/madgraph/interface/master_interface.py", line 280, in do_import
File "/opt/MG5_aMC_v2_7_3/madgraph/interface/master_interface.py", line 281, in do_import
self.cmd.do_import(self, *args, **opts)
File "/opt/MG5_aMC_v2_7_0/madgraph/interface/madgraph_interface.py", line 5466, in do_import
File "/opt/MG5_aMC_v2_7_3/madgraph/interface/madgraph_interface.py", line 5536, in do_import
self.import_command_file(args[1])
File "/opt/MG5_aMC_v2_7_0/madgraph/interface/extended_cmd.py", line 1661, in import_command_file
File "/opt/MG5_aMC_v2_7_3/madgraph/interface/extended_cmd.py", line 1687, in import_command_file
self.exec_cmd(line, precmd=True)
File "/opt/MG5_aMC_v2_7_0/madgraph/interface/extended_cmd.py", line 1544, in exec_cmd
File "/opt/MG5_aMC_v2_7_3/madgraph/interface/extended_cmd.py", line 1570, in exec_cmd
stop = Cmd.onecmd_orig(current_interface, line, **opt)
File "/opt/MG5_aMC_v2_7_0/madgraph/interface/extended_cmd.py", line 1464, in onecmd_orig
File "/opt/MG5_aMC_v2_7_3/madgraph/interface/extended_cmd.py", line 1490, in onecmd_orig
return func(arg, **opt)
File "/opt/MG5_aMC_v2_7_0/madgraph/interface/master_interface.py", line 280, in do_import
File "/opt/MG5_aMC_v2_7_3/madgraph/interface/master_interface.py", line 281, in do_import
self.cmd.do_import(self, *args, **opts)
File "/opt/MG5_aMC_v2_7_0/madgraph/interface/madgraph_interface.py", line 5412, in do_import
complex_mass_scheme=self.options['complex_mass_scheme'])
File "/opt/MG5_aMC_v2_7_0/models/import_ufo.py", line 239, in import_model
model = import_full_model(model_path, decay, prefix)
File "/opt/MG5_aMC_v2_7_0/models/import_ufo.py", line 383, in import_full_model
ufo_model = ufomodels.load_model(model_path, decay)
File "/opt/MG5_aMC_v2_7_0/models/__init__.py", line 48, in load_model
(path_split[-1], model_path, sys_path)
Exception: name EWKino_NLO_UFO_py3 already consider as a python library cann't be reassigned(/opt/MG5_aMC_v2_7_3_py3/models/EWKino_NLO_UFO_py3!=/opt/MG5_aMC_v2_7_0/models/EWKino_NLO_UFO_py3)
File "/opt/MG5_aMC_v2_7_3/madgraph/interface/madgraph_interface.py", line 5481, in do_import
self._curr_model = import_ufo.import_model(args[1], prefix=prefix,
File "/opt/MG5_aMC_v2_7_3/models/import_ufo.py", line 206, in import_model
model_path = find_ufo_path(model_name)
File "/opt/MG5_aMC_v2_7_3/models/import_ufo.py", line 95, in find_ufo_path
raise UFOImportError("Path %s is not a valid pathname" % model_name)
models.import_ufo.UFOImportError: Path /opt/MG5_aMC_v2_7_0/models/EWKino_NLO_UFO_py3 is not a valid pathname
Fail to write options with error No model currently active, please import a model!
Empty file.

0 comments on commit c7843be

Please sign in to comment.