Skip to content

KeyError 'iteration' in directed_evolution_simulation when running DMS workflow #56

@iRetamal

Description

@iRetamal

Hi,

I'm trying to run the DMS workflow using evolvepro, but I encounter a KeyError: 'iteration' in the directed_evolution_simulation function.

Setup:

evolvepro environment activated (Python 3.11, Pandas 2.x)

Labels CSV file contains the columns:

variant,iteration,activity
E2A,0,-0.339226193
E2C,0,-0.393733896
E2D,0,-0.232532833
E2F,0,-0.181163852
E2G,0,-0.65668517
...

Error traceback (simplified):

Traceback (most recent call last):
  ...
  File "model.py", line 130, in top_layer
    iteration = labels_pd["iteration"]
KeyError: 'iteration'

Observation:

The iteration column exists but all values are 0.

Reading the CSV with pd.read_csv shows the correct column names.

Question:
Should the iteration column in labels have multiple iteration numbers already, or is it expected to be generated automatically by the workflow?

Thanks for your guidance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions