Skip to content

Commit

Permalink
remove unused qed in more places
Browse files Browse the repository at this point in the history
  • Loading branch information
RoyStegeman committed Nov 14, 2023
1 parent d2b942b commit b97538e
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions n3fit/src/evolven3fit_new/evolve.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,6 @@ def evolve_fit(
theory = eko_op.theory_card
op = eko_op.operator_card

qed = theory.order[1] > 0

# Modify the info file with the fit-specific info
info = info_file.build(theory, op, 1, info_update={})
info["NumMembers"] = "REPLACE_NREP"
Expand All @@ -112,7 +110,7 @@ def evolve_fit(
dump_info_file(usr_path, info)

for replica, pdf_data in initial_PDFs_dict.items():
evolved_blocks = evolve_exportgrid(pdf_data, eko_op, x_grid, qed)
evolved_blocks = evolve_exportgrid(pdf_data, eko_op, x_grid)
dump_evolved_replica(evolved_blocks, usr_path, int(replica.removeprefix("replica_")))

# remove folder:
Expand Down Expand Up @@ -145,7 +143,7 @@ def load_fit(usr_path):
return pdf_dict


def evolve_exportgrid(exportgrid, eko, x_grid, qed):
def evolve_exportgrid(exportgrid, eko, x_grid):
"""
Evolves the provided exportgrid for the desired replica with the eko and returns the evolved block
Expand All @@ -157,8 +155,6 @@ def evolve_exportgrid(exportgrid, eko, x_grid, qed):
eko operator for evolution
xgrid: list
xgrid to be used as the targetgrid
qed: bool
whether qed is activated or not
Returns
-------
: list(np.array)
Expand Down

0 comments on commit b97538e

Please sign in to comment.