Skip to content

Commit

Permalink
Revert debug prints and fix reference file name
Browse files Browse the repository at this point in the history
  • Loading branch information
ruicoelhopedro committed Jan 17, 2024
1 parent 6a22547 commit c0eafe7
Show file tree
Hide file tree
Showing 18 changed files with 29 additions and 17 deletions.
3 changes: 0 additions & 3 deletions piglot/objectives/fitting.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,6 @@ def __init__(
self.show = show
self.weight = weight
# Load the data right away
print(filename)
print(os.getcwd())
print(os.listdir(os.getcwd()))
data = np.genfromtxt(filename, skip_header=skip_header)[:, [x_col - 1, y_col - 1]]
self.x_data = data[:, 0]
self.y_data = data[:, 1]
Expand Down
2 changes: 1 addition & 1 deletion test/examples/dummy_composite.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ objective:


references:
'reference.dat':
'reference.txt':
prediction: ['modifier_1']
2 changes: 1 addition & 1 deletion test/examples/dummy_composite_stochastic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@ objective:


references:
'reference.dat':
'reference.txt':
prediction: ['modifier_1', 'modifier_2']
2 changes: 1 addition & 1 deletion test/examples/dummy_filtering.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ objective:


references:
'reference.dat':
'reference.txt':
prediction: ['modifier_1']
filter_tol: 1e-6
2 changes: 1 addition & 1 deletion test/examples/dummy_simple.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ objective:


references:
'reference.dat':
'reference.txt':
prediction: ['modifier_1']
2 changes: 1 addition & 1 deletion test/examples/dummy_simple_stochastic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@ objective:


references:
'reference.dat':
'reference.txt':
prediction: ['modifier_1', 'modifier_2']
2 changes: 1 addition & 1 deletion test/examples/dummy_transformer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ objective:


references:
'reference.dat':
'reference.txt':
prediction: ['modifier_1']
transformer:
x_scale: -1
Expand Down
5 changes: 5 additions & 0 deletions test/examples/reference.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
0.0 0.0
0.25 50
0.5 100
0.75 150
1.0 200
2 changes: 1 addition & 1 deletion test/examples_assertions/dummy_invalid_parameters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ objective:


references:
'reference.dat':
'reference.txt':
prediction: ['modifier_1']
2 changes: 1 addition & 1 deletion test/examples_assertions/dummy_invalid_parameters2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ objective:


references:
'reference.dat':
'reference.txt':
prediction: ['modifier_1']
5 changes: 5 additions & 0 deletions test/examples_assertions/reference.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
0.0 0.0
0.25 50
0.5 100
0.75 150
1.0 200
2 changes: 1 addition & 1 deletion test/examples_plots/dummy_composite.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ objective:


references:
'reference.dat':
'reference.txt':
prediction: ['modifier_1']
2 changes: 1 addition & 1 deletion test/examples_plots/dummy_composite_stochastic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@ objective:


references:
'reference.dat':
'reference.txt':
prediction: ['modifier_1', 'modifier_2']
2 changes: 1 addition & 1 deletion test/examples_plots/dummy_filtering.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ objective:


references:
'reference.dat':
'reference.txt':
prediction: ['modifier_1']
filter_tol: 1e-6
2 changes: 1 addition & 1 deletion test/examples_plots/dummy_simple.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ objective:


references:
'reference.dat':
'reference.txt':
prediction: ['modifier_1']
2 changes: 1 addition & 1 deletion test/examples_plots/dummy_simple_stochastic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@ objective:


references:
'reference.dat':
'reference.txt':
prediction: ['modifier_1', 'modifier_2']
2 changes: 1 addition & 1 deletion test/examples_plots/dummy_transformer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ objective:


references:
'reference.dat':
'reference.txt':
prediction: ['modifier_1']
transformer:
x_scale: -1
Expand Down
5 changes: 5 additions & 0 deletions test/examples_plots/reference.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
0.0 0.0
0.25 50
0.5 100
0.75 150
1.0 200

0 comments on commit c0eafe7

Please sign in to comment.