Skip to content

Commit

Permalink
FeynCalc 9.3 release: Merge branch 'master' into hotfix-stable
Browse files Browse the repository at this point in the history
  • Loading branch information
vsht committed Jan 13, 2020
2 parents f13df81 + 8c3c6e5 commit f1ac419
Show file tree
Hide file tree
Showing 2,303 changed files with 513,440 additions and 446,165 deletions.
17 changes: 16 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,19 @@
*.Gen linguist-language=Mathematica
*.conf linguist-language=Mathematica
*.Fac linguist-language=Mathematica

Tests export-ignore
FeynCalc/DocSource export-ignore
FeynCalc/DocOutput export-ignore
FeynCalc/Phi export-ignore
install.m export-ignore
.project export-ignore
.gitignore export-ignore
.gitattributes export-ignore
docbuild.xml export-ignore
issue_template.md export-ignore
SUPPORT.md export-ignore
README.MD export-ignore
.WolframResources export-ignore
edit_documentation.sh export-ignore
use_documentation.sh export-ignore
LICENSE export-ignore
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,23 @@ FeynCalc/FeynArts
FeynCalc/FeynArts/*
FeynCalc/Database/*.db
FeynCalc/Examples/Temp
FeynCalc/Examples/*/WIP
FeynCalc/Examples/WIP
FeynCalc/Database/*.start
FeynCalc/Database/*.m
FeynCalc/Database/*.nb
FeynCalc/Tarcer/*.mx
FeynCalc/AddOns/*
FeynCalc/Documentation
FeynCalc/Documentation/*
FeynCalc/DocOutputHold
FeynCalc/DocOutput/SearchIndex/*
FeynCalc/DocOutput/English/SearchIndex/*
FeynCalc/Ignore*
FeynCalc/FCConfig.m
build/*
.settings/*
.amateras

/.DS_Store
/.gitignore
69 changes: 66 additions & 3 deletions .project
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
</natures>
<filteredResources>
<filter>
<id>1446741392778</id>
<id>1537241074983</id>
<name></name>
<type>26</type>
<matcher>
Expand All @@ -25,12 +25,75 @@
</matcher>
</filter>
<filter>
<id>1446741392779</id>
<id>1537241074984</id>
<name></name>
<type>26</type>
<matcher>
<id>org.eclipse.ui.ide.multiFilter</id>
<arguments>1.0-name-matches-false-false-FeynArts</arguments>
<arguments>1.0-name-matches-true-false-FeynArts</arguments>
</matcher>
</filter>
<filter>
<id>1537241074986</id>
<name></name>
<type>26</type>
<matcher>
<id>org.eclipse.ui.ide.multiFilter</id>
<arguments>1.0-name-matches-true-false-Phi</arguments>
</matcher>
</filter>
<filter>
<id>1537241074987</id>
<name></name>
<type>26</type>
<matcher>
<id>org.eclipse.ui.ide.multiFilter</id>
<arguments>1.0-name-matches-true-false-Tests</arguments>
</matcher>
</filter>
<filter>
<id>1537241074989</id>
<name></name>
<type>26</type>
<matcher>
<id>org.eclipse.ui.ide.multiFilter</id>
<arguments>1.0-name-matches-true-false-build</arguments>
</matcher>
</filter>
<filter>
<id>1537241074990</id>
<name></name>
<type>26</type>
<matcher>
<id>org.eclipse.ui.ide.multiFilter</id>
<arguments>1.0-name-matches-true-false-DocOutput</arguments>
</matcher>
</filter>
<filter>
<id>1537241074997</id>
<name></name>
<type>26</type>
<matcher>
<id>org.eclipse.ui.ide.multiFilter</id>
<arguments>1.0-name-matches-true-false-Examples</arguments>
</matcher>
</filter>
<filter>
<id>1537241074999</id>
<name></name>
<type>26</type>
<matcher>
<id>org.eclipse.ui.ide.multiFilter</id>
<arguments>1.0-name-matches-true-false-AddOns</arguments>
</matcher>
</filter>
<filter>
<id>1537241075001</id>
<name></name>
<type>26</type>
<matcher>
<id>org.eclipse.ui.ide.multiFilter</id>
<arguments>1.0-name-matches-true-false-Database</arguments>
</matcher>
</filter>
</filteredResources>
Expand Down
54 changes: 41 additions & 13 deletions FeynCalc/AddOns/FUnitTools/FUnitTools.m
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

(*
This software is covered by the GNU General Public License 3.
Copyright (C) 1990-2016 Rolf Mertig
Copyright (C) 1997-2016 Frederik Orellana
Copyright (C) 2014-2016 Vladyslav Shtabovenko
Copyright (C) 1990-2020 Rolf Mertig
Copyright (C) 1997-2020 Frederik Orellana
Copyright (C) 2014-2020 Vladyslav Shtabovenko
*)

(* :Summary: Tools for working with FeynCalc's unit tests *)
Expand All @@ -31,7 +31,10 @@
FUnitCreateUnitTestsTypesetting::usage = \
"FUnitCreateUnitTestsTypesetting[TestName,Tests] is like FUnitCreateUnitTests \
but with the sole purpose of creating unit tests for typesetting, \
i.e. the TraditionalForm output."
i.e. the TraditionalForm output. Notice that when creating typesetting tests, \
the list elements must not be strings, i.e. li = {FV[p,mu], FV[q,nu]}. Then \
FUnitCreateUnitTestsTypesetting[fcstFV,li] does the job and the output (copied as\
Input Text) can be directly pasted into the test file."

AddMakeBoxes::usage =
"AddMakeBoxes is an option for FUnitCreateUnitTestsTypesetting, which \
Expand All @@ -43,22 +46,44 @@

Begin["`FUnitTools`Private`"];

$FUnitToolsVersion="0.1";
$FUnitToolsVersion="0.2";

$FUnitToolsDirectory =
ToFileName[{$FeynCalcDirectory, "AddOns", "FUnitTools"}];

Options[FUnitCreateUnitTestsTypesetting] = {
AddMakeBoxes -> True
AddMakeBoxes -> True,
"ZeroIDValue" -> 0
};

FUnitCreateUnitTests[n_String, l_List] :=
MapIndexed[{n <> "-ID" <> ToString[First[#2]], #, ToString[ToExpression[#], FormatType -> InputForm]} &, l];
Options[FUnitCreateUnitTests] = {
AddMakeBoxes -> True,
"ZeroIDValue" -> 0
};

Options[FUnitExtractUnitTests] = {
Names -> False
};

FUnitCreateUnitTests[n_String, l_List, OptionsPattern[]] :=
MapIndexed[{n <> "-ID" <>
If[ StringQ[OptionValue["ZeroIDValue"]],
ToString[OptionValue["ZeroIDValue"]]<>ToString[First[#2]],
ToString[OptionValue["ZeroIDValue"]+First[#2]]
],
#, ToString[ToExpression[#], FormatType -> InputForm]} &, l]



FUnitCreateUnitTestsTypesetting[n_String, l_List, OptionsPattern[]] :=
MapIndexed[{n <> "-ID" <> ToString[First[#2]],
MapIndexed[{n <> "-ID" <>

If[ StringQ[OptionValue["ZeroIDValue"]],
ToString[OptionValue["ZeroIDValue"]]<>ToString[First[#2]],
ToString[OptionValue["ZeroIDValue"]+First[#2]]
],
If[OptionValue[AddMakeBoxes],
StringReplace[ToString[System`MakeBoxees[#, TraditionalForm]],
StringReplace[ToString[System`MakeBoxees[#, TraditionalForm], InputForm],
"MakeBoxees" -> "MakeBoxes"],
ToString[#]
],
Expand All @@ -69,17 +94,20 @@
],
InputForm, CharacterEncoding -> "Unicode"]} &, l];

FUnitExtractUnitTests[{dir__, file_}, testVar_] :=
FUnitExtractUnitTests[{dir__, file_}, testVar_, OptionsPattern[]] :=
Module[{li},
Get[FileNameJoin[{ParentDirectory@$FeynCalcDirectory, "Tests", dir, file <> ".test"}]];
li = "Tests`" <> First[{dir}] <> "`" <> testVar;
li = ToExpression[li];
Map[#[[2]] &, li]
If[ OptionValue[Names],
Map[#[[1;;2]] &, li],
Map[#[[2]] &, li]
]
];


(* Print startup message *)
If[ Global`$FeynCalcStartupMessages =!= False,
If[ $FeynCalcStartupMessages =!= False,
Print[Style["FUnitTools ", "Text", Bold], Style[$FUnitToolsVersion <> " loaded.", "Text"]]
];

Expand Down
6 changes: 3 additions & 3 deletions FeynCalc/AddOns/FVProjection/Examples/Vectors.m
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

(*
This software is covered by the GNU General Public License 3.
Copyright (C) 1990-2016 Rolf Mertig
Copyright (C) 1997-2016 Frederik Orellana
Copyright (C) 2014-2016 Vladyslav Shtabovenko
Copyright (C) 1990-2020 Rolf Mertig
Copyright (C) 1997-2020 Frederik Orellana
Copyright (C) 2014-2020 Vladyslav Shtabovenko
*)

(* :Summary: Simple operations with 4-vectors using FVProjection *)
Expand Down
16 changes: 8 additions & 8 deletions FeynCalc/AddOns/FVProjection/FVProjection.m
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

(*
This software is covered by the GNU General Public License 3.
Copyright (C) 1990-2016 Rolf Mertig
Copyright (C) 1997-2016 Frederik Orellana
Copyright (C) 2014-2016 Vladyslav Shtabovenko
Copyright (C) 1990-2020 Rolf Mertig
Copyright (C) 1997-2020 Frederik Orellana
Copyright (C) 2014-2020 Vladyslav Shtabovenko
*)

(* :Summary: Toy add-on for FeynCalc for obtaining transverse and
Expand All @@ -19,19 +19,19 @@

FVProjectionT::usage=
"FVProjectionT[x_,mu_,p_] returns the transverse component of the 4-vector \
x^mu with respect to the the 4-vector p";
x^mu with respect to the 4-vector p";

FVProjectionL::usage=
"FVProjectionL[x_,mu_,p_] returns the longitudinal component of the 4-vector \
x^mu with respect to the the 4-vector p";
x^mu with respect to the 4-vector p";

FVProjectorT::usage=
"FVProjectorT[mu,nu,p] returns the transverse projector with respect to \
the the 4-vector p";
the 4-vector p";

FVProjectorL::usage=
"FVProjectorL[mu,nu,p] returns the longitudinal projector with respect to \
the the 4-vector p";
the 4-vector p";

$FVProjectionVersion::usage=
"$FVProjectionVersion is the string that represents the version of FVProjection";
Expand Down Expand Up @@ -126,7 +126,7 @@


(* Print startup message *)
If[ Global`$FeynCalcStartupMessages =!= False,
If[ $FeynCalcStartupMessages =!= False,
Print[Style["FVProjector ", "Text", Bold], Style[$FVProjectionVersion <> " loaded.", "Text"]]
];

Expand Down
6 changes: 3 additions & 3 deletions FeynCalc/AddOns/FVProjection/Tests/General/General.mt
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

(*
This software is covered by the GNU General Public License 3.
Copyright (C) 1990-2016 Rolf Mertig
Copyright (C) 1997-2016 Frederik Orellana
Copyright (C) 2014-2016 Vladyslav Shtabovenko
Copyright (C) 1990-2020 Rolf Mertig
Copyright (C) 1997-2020 Frederik Orellana
Copyright (C) 2014-2020 Vladyslav Shtabovenko
*)

(* :Summary: Unit tests for FVProjection *)
Expand Down
6 changes: 3 additions & 3 deletions FeynCalc/AddOns/FVProjection/Tests/General/General.test
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

(*
This software is covered by the GNU General Public License 3.
Copyright (C) 1990-2016 Rolf Mertig
Copyright (C) 1997-2016 Frederik Orellana
Copyright (C) 2014-2016 Vladyslav Shtabovenko
Copyright (C) 1990-2020 Rolf Mertig
Copyright (C) 1997-2020 Frederik Orellana
Copyright (C) 2014-2020 Vladyslav Shtabovenko
*)

Expand Down
6 changes: 3 additions & 3 deletions FeynCalc/AddOns/FVProjection/Tests/MUnitTestSuite.mt
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

(*
This software is covered by the GNU General Public License 3.
Copyright (C) 1990-2016 Rolf Mertig
Copyright (C) 1997-2016 Frederik Orellana
Copyright (C) 2014-2016 Vladyslav Shtabovenko
Copyright (C) 1990-2020 Rolf Mertig
Copyright (C) 1997-2020 Frederik Orellana
Copyright (C) 2014-2020 Vladyslav Shtabovenko
*)

(* :Summary: Test Suite for FVProjection via MUnit *)
Expand Down
Loading

0 comments on commit f1ac419

Please sign in to comment.