Skip to content

Commit

Permalink
update GenStar to remove a compilation error in GenStarGamaSurveUtils
Browse files Browse the repository at this point in the history
  • Loading branch information
ptaillandier committed May 4, 2023
1 parent e5b3e71 commit ef6d972
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
import msi.gama.common.util.FileUtils;
import msi.gama.runtime.IScope;
import msi.gama.util.file.GamaCSVFile;
import msi.gama.util.file.GamaCSVFile.CSVInfo;
import msi.gama.util.file.csv.CsvReader;
import msi.gama.util.file.csv.CsvReader.Stats;
import msi.gaml.types.IType;
import msi.gaml.types.Types;
import ummisco.gama.dev.utils.DEBUG;
Expand Down Expand Up @@ -53,12 +53,12 @@ public class GenStarGamaSurveyUtils {
public GenStarGamaSurveyUtils(final IScope scope, final GamaCSVFile survey,
final List<Attribute<? extends IValue>> atts) {
this.path = Paths.get(FileUtils.constructAbsoluteFilePath(scope, survey.getPath(scope), false));
this.stats = CsvReader.getStats(this.path.toString(), null);
this.atts = atts;
this.stats = survey.getInfo(scope, null);
this.atts = atts;
}

/** The stats. */
private final Stats stats;
private final CSVInfo stats;

/** The path. */
private final Path path;
Expand Down

0 comments on commit ef6d972

Please sign in to comment.