-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #199 from stewartboogert/relativeImports
Relative imports and coverage
- Loading branch information
Showing
93 changed files
with
789 additions
and
2,887 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
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,10 +1,9 @@ | ||
from pyg4ometry.convert.fluka2Geant4 import fluka2Geant4 | ||
from pyg4ometry.convert.geant42Fluka import * | ||
import pyg4ometry.convert.geant42FlukaBake as geant42FlukaBake | ||
from pyg4ometry.convert.freecad2Fluka import * | ||
from pyg4ometry.convert.stl2gdml import * | ||
from pyg4ometry.convert.geant42Geant4 import * | ||
from pyg4ometry.convert.gdml2stl import * | ||
from pyg4ometry.convert.geant42Vtk import * | ||
from pyg4ometry.convert.oce2Geant4 import * | ||
from pyg4ometry.convert.vis2oce import * | ||
from .fluka2Geant4 import fluka2Geant4 | ||
from .geant42Fluka import * | ||
from .freecad2Fluka import * | ||
from .stl2gdml import * | ||
from .geant42Geant4 import * | ||
from .gdml2stl import * | ||
from .geant42Vtk import * | ||
from .oce2Geant4 import * | ||
from .vis2oce import * |
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,4 +1,4 @@ | ||
import pyg4ometry.fluka as _fluka | ||
from .. import fluka as _fluka | ||
|
||
|
||
def freecadDoc2Fluka(fcd): | ||
|
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,9 +1,9 @@ | ||
import pyg4ometry as _pyg4 | ||
from .. import convert as _convert | ||
|
||
|
||
def gdml2stl(gdmlFileName, stlFileName="output.gdml", solidName="ws"): | ||
r = _pyg4.gdml.Reader(gdmlFileName) | ||
reg = r.getRegistry() | ||
s = reg.solidDict[solidName] | ||
|
||
_pyg4.convert.pycsgMeshToStl(s.mesh(), stlFileName) | ||
_convert.pycsgMeshToStl(s.mesh(), stlFileName) |
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.