-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding formatter to CI to keep code in PEP8 (#104)
* added format checker * run black . locally
- Loading branch information
Showing
12 changed files
with
195 additions
and
151 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
name: Lint | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: psf/black@stable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
defaultValues = { | ||
"P_abc": "14.7e", # Plane general a,b,c params | ||
"P_d": "14.7e", # Plane general d params | ||
"P_xyz": "14.7e", # PX/PY/PZ params | ||
"S_r": "14.7e", # SO/SX/SY/SZ/S radius | ||
"S_xyz": "14.7e", # SO/SX/SY/SZ/S center | ||
"C_r": "12f", # Cylinder radius | ||
"C_xyz": "12f", # Cylinder center | ||
"K_xyz": "13.6e", # Cone apex | ||
"K_tan2": "12f", # Cone tan^2 value | ||
"T_r": "14.7e", # Torus radii | ||
"T_xyz": "14.7e", # Torus center | ||
"P_abc": "14.7e", # Plane general a,b,c params | ||
"P_d": "14.7e", # Plane general d params | ||
"P_xyz": "14.7e", # PX/PY/PZ params | ||
"S_r": "14.7e", # SO/SX/SY/SZ/S radius | ||
"S_xyz": "14.7e", # SO/SX/SY/SZ/S center | ||
"C_r": "12f", # Cylinder radius | ||
"C_xyz": "12f", # Cylinder center | ||
"K_xyz": "13.6e", # Cone apex | ||
"K_tan2": "12f", # Cone tan^2 value | ||
"T_r": "14.7e", # Torus radii | ||
"T_xyz": "14.7e", # Torus center | ||
"GQ_1to6": "18.15f", # GQ 1 to 6 coefficients (order 2 x2,y2,z2,xy,...) | ||
"GQ_7to9": "18.15f", # GQ 7 to 9 coefficients (order 1 x,y,z) | ||
"GQ_10": "18.15f", # GQ 10 coefficient (order 0) | ||
} | ||
"GQ_10": "18.15f", # GQ 10 coefficient (order 0) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,30 @@ | ||
# default options values | ||
defaultValues = { | ||
"forceCylinder" : False, # Force using cylinders instead cones for auxillary surfaces of torus surface definition | ||
"newSplitPlane" : True, # Use new module for planes splitting in decomposition module | ||
"delLastNumber" : False, # Deleting the last word in the comment if it is a number | ||
"verbose" : False, # Display information during conversion process | ||
"enlargeBox" : 2, # Enlarge box Boundary when evaluating Ctable (dimension in mm) | ||
"nPlaneReverse" : 0, # numbers of plane thresold whether cut of parallel planes are made fisrt with lowest or highest number | ||
"splitTolerance" : 0, # First try for fuzzy tolerance used in BOPTOOL Split function. If BOPTSplit crash try lower value for tolerance | ||
"scaleUp" : True, # Scale up Fuzzy tolerance once get below 1e-12 | ||
"quadricPY" : False, # use quadric form of cones and cylinder not aligned with X,Y,Z axis when write openMC script file | ||
"Facets" : False, # use alternative conversion module when geometry is defined by cells compound by only triangular plane faces | ||
"prnt3PPlane" : False, # print 3 point plane definition in MCNP output as 3 points coordinates | ||
"forceNoOverlap" : False, # force no overlaping cell definition. Adjacent cell definition are rested from current cell definition | ||
"forceCylinder": False, # Force using cylinders instead cones for auxillary surfaces of torus surface definition | ||
"newSplitPlane": True, # Use new module for planes splitting in decomposition module | ||
"delLastNumber": False, # Deleting the last word in the comment if it is a number | ||
"verbose": False, # Display information during conversion process | ||
"enlargeBox": 2, # Enlarge box Boundary when evaluating Ctable (dimension in mm) | ||
"nPlaneReverse": 0, # numbers of plane thresold whether cut of parallel planes are made fisrt with lowest or highest number | ||
"splitTolerance": 0, # First try for fuzzy tolerance used in BOPTOOL Split function. If BOPTSplit crash try lower value for tolerance | ||
"scaleUp": True, # Scale up Fuzzy tolerance once get below 1e-12 | ||
"quadricPY": False, # use quadric form of cones and cylinder not aligned with X,Y,Z axis when write openMC script file | ||
"Facets": False, # use alternative conversion module when geometry is defined by cells compound by only triangular plane faces | ||
"prnt3PPlane": False, # print 3 point plane definition in MCNP output as 3 points coordinates | ||
"forceNoOverlap": False, # force no overlaping cell definition. Adjacent cell definition are rested from current cell definition | ||
} | ||
|
||
typeDict = { | ||
"forceCylinder" : bool, # Force using cylinders instead cones for auxillary surfaces of torus surface definition | ||
"newSplitPlane" : bool, # Use new module for planes splitting in decomposition module | ||
"delLastNumber" : bool, # Deleting the last word in the comment if it is a number | ||
"verbose" : bool, # Display information during conversion process | ||
"enlargeBox" : float, # Enlarge box Boundary when evaluating Ctable (dimension in mm) | ||
"nPlaneReverse" : int, # numbers of plane thresold whether cut of parallel planes are made fisrt with lowest or highest number | ||
"splitTolerance" : int, # First try for fuzzy tolerance used in BOPTOOL Split function. If BOPTSplit crash try lower value for tolerance | ||
"scaleUp" : bool, # Scale up Fuzzy tolerance once get below 1e-12 | ||
"quadricPY" : bool, # use quadric form of cones and cylinder not aligned with X,Y,Z axis when write openMC script file | ||
"Facets" : bool, # use alternative conversion module when geometry is defined by cells compound by only triangular plane faces | ||
"prnt3PPlane" : bool, # print 3 point plane definition in MCNP output as 3 points coordinates | ||
"forceNoOverlap" : bool, # force no overlaping cell definition. Adjacent cell definition are rested from current cell definition | ||
} | ||
"forceCylinder": bool, # Force using cylinders instead cones for auxillary surfaces of torus surface definition | ||
"newSplitPlane": bool, # Use new module for planes splitting in decomposition module | ||
"delLastNumber": bool, # Deleting the last word in the comment if it is a number | ||
"verbose": bool, # Display information during conversion process | ||
"enlargeBox": float, # Enlarge box Boundary when evaluating Ctable (dimension in mm) | ||
"nPlaneReverse": int, # numbers of plane thresold whether cut of parallel planes are made fisrt with lowest or highest number | ||
"splitTolerance": int, # First try for fuzzy tolerance used in BOPTOOL Split function. If BOPTSplit crash try lower value for tolerance | ||
"scaleUp": bool, # Scale up Fuzzy tolerance once get below 1e-12 | ||
"quadricPY": bool, # use quadric form of cones and cylinder not aligned with X,Y,Z axis when write openMC script file | ||
"Facets": bool, # use alternative conversion module when geometry is defined by cells compound by only triangular plane faces | ||
"prnt3PPlane": bool, # print 3 point plane definition in MCNP output as 3 points coordinates | ||
"forceNoOverlap": bool, # force no overlaping cell definition. Adjacent cell definition are rested from current cell definition | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.