Skip to content

Commit

Permalink
Remove function for testing import from the main package
Browse files Browse the repository at this point in the history
  • Loading branch information
PintarM committed May 8, 2018
1 parent 7fcaec6 commit 4c458a9
Showing 1 changed file with 2 additions and 38 deletions.
40 changes: 2 additions & 38 deletions ImportMesh.wl
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ BeginPackage["ImportMesh`",{"NDSolve`FEM`"}];


ImportMesh::usage="ImportMesh[\"file\"] imports data from mesh file, returning a ElementMesh object.
ImportMesh[\"string\", fmt] imports \"string\" in the specified format
ImportMesh[stream, fmt] imports the InputStream stream in the specified format";
ImportMesh[\"string\", fmt] imports \"string\" in the specified format.
ImportMesh[stream, fmt] imports the InputStream stream in the specified format.";


(* All error/warning messages are currently attached to the only public symbol. *)
Expand All @@ -55,7 +55,6 @@ importGmshMesh::usage="";
importElfenMesh::usage="";
convertToElementMesh::usage="";
$importMeshFormats::usage="";
importMeshExamples::usage="";
EndPackage[];


Expand Down Expand Up @@ -832,41 +831,6 @@ If[!TrueQ@$importRegistered,
$importRegistered=True


(* ::Subsection::Closed:: *)
(*Tests*)


$examplesDir=
FileNameJoin@{DirectoryName[$InputFileName], "Tests"};


importMeshExamples[s_String]:=
Module[
{
nm=$importMeshFormats[s]["Name"],
fmt=s,
files
},
If[!StringQ@nm,
nm=
Replace[
Keys@Select[$importMeshFormats, #Name===s&],
{
f_
}:>(nm=s;fmt=f)
]
];
files=
If[StringQ@nm,
FileNames["*."<>fmt,
FileNameJoin@{$examplesDir, nm}
],
Message[ImportMesh::nosup, s]
];
files/;ListQ@files
];


(* ::Section::Closed:: *)
(*End package*)

Expand Down

0 comments on commit 4c458a9

Please sign in to comment.