Rename run method to runBuilder in InteractiveConsole and update references; refactor file handling in Plot and SimulationBuilder for improved clarity and consistency
This commit is contained in:
@@ -37,10 +37,8 @@ public class SimulationBuilder {
|
||||
*/
|
||||
public SimulationBuilder(String netFile) throws IOException {
|
||||
try {
|
||||
var file = Parameters.getFileOrExample(netFile);
|
||||
this.net = Net.load(file);
|
||||
this.net = Net.load(netFile);
|
||||
this.confidences = new ConfidenceIndices(this.net);
|
||||
file.close();
|
||||
} catch (FileNotFoundException e) {
|
||||
throw new IllegalArgumentException("Net file needed!");
|
||||
} catch (KryoException e) {
|
||||
|
||||
Reference in New Issue
Block a user