Skip to content

Commit

Permalink
Fixed bug with the manifest file in FBACometsLoader and FBAParameters.
Browse files Browse the repository at this point in the history
  • Loading branch information
dukovski committed Mar 12, 2014
1 parent 02ed9d1 commit 1b49c7b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -189,13 +189,14 @@ public int loadLayoutFile(String filename, Comets c, boolean useGui) throws IOEx
//Write the file name in the manifest file.
try
{
FileWriter manifestWriter=new FileWriter(new File(path+File.separatorChar+pParams.getManifestFileName()),false);
FileWriter manifestWriter=new FileWriter(new File(path+File.separatorChar+pParams.getNopathManifestFileName()),false);
manifestWriter.write("LayoutFileName: "+filename+System.getProperty("line.separator"));
manifestWriter.close();
pParams.setManifestFileName(path+File.separatorChar+pParams.getManifestFileName());
pParams.setManifestFileName(path+File.separatorChar+pParams.getNopathManifestFileName());
}
catch (IOException e)
{
System.out.println(e.getMessage());
System.out.println("Unable to initialize manifest file. \nContinuing without writing manifest file.");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ public static ExchangeStyle findByName(String name)
totalBiomassLogName;

private String manifestFileName = "COMETS_manifest.txt";
private final String nopathManifestFileName="COMETS_manifest.txt";

private int numRunThreads = 1,
numDiffPerStep = 10,
Expand Down Expand Up @@ -809,6 +810,14 @@ public LogFormat getFluxLogFormat()
return fluxLogFormat;
}

/** Gets the name of the manifest file
* without the path prepended.
*
*/
public String getNopathManifestFileName()
{
return nopathManifestFileName;
}

/** Gets the name of the manifest file
*
Expand Down

0 comments on commit 1b49c7b

Please sign in to comment.