forked from IntersectMBO/plutus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use FilePath for cost model paths (IntersectMBO#3429)
* Use FilePath for cost model paths * updateMaterialzed * Remove filepath dependency * updateMaterialzed * Address PR comments * updateMaterialzed
- Loading branch information
Kenneth MacKenzie
authored
Jun 25, 2021
1 parent
0c66016
commit 2ae7a02
Showing
8 changed files
with
52 additions
and
18 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
-- | Various file paths used in plutus-core, currently all to do with the cost | ||
-- model. | ||
|
||
-- Note that a couple of these paths are also used inside an inline-r splice in | ||
-- CostModelCreation.hs but we have to use literal strings there, not the | ||
-- versions defined here. Those strings will also have to be updated if things | ||
-- change here. | ||
|
||
module PlutusCore.DataFilePaths | ||
where | ||
|
||
import System.FilePath | ||
|
||
costModelDataDir :: FilePath | ||
costModelDataDir = "cost-model" </> "data" | ||
|
||
-- A literal version of this is also used in CostModelCreation.hs | ||
modelFile :: FilePath | ||
modelFile = costModelDataDir </> "models" <.> "R" | ||
|
||
-- A literal version of this is also used in CostModelCreation.hs | ||
benchingResultsFile :: FilePath | ||
benchingResultsFile = costModelDataDir </> "benching" <.> "csv" | ||
|
||
backupBenchingResultsFile :: FilePath | ||
backupBenchingResultsFile = benchingResultsFile <.> "backup" | ||
|
||
builtinCostModelFile :: FilePath | ||
builtinCostModelFile = costModelDataDir </> "builtinCostModel" <.> "json" | ||
|
||
cekMachineCostsFile :: FilePath | ||
cekMachineCostsFile = costModelDataDir </> "cekMachineCosts" <.> "json" |
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