Category : architecture

I have two dataclasses in a file as below: @dataclass class FileData(): name: str steps: StepData @dataclass class StepData(): time_step: int number_of_atoms: int box_data: pd.DataFrame atom_data: pd.DataFrame As the top dataclass references the bottom data class in its type declarations I get this error when running the code: NameError: name ‘StepData’ is not defined This ..

Read more

I’m developing a Python app based on Neo4j, and I’m facing a challenge to write unit-tests in isolation from the Neo4j database, so I can run my unit-tests without depending on starting a full-blown database. The Neo4j Java SDK includes an "In-Memory / Impermanent database" Unfortunately, the Python driver doesn’t have that. Ideas Mocks I ..

Read more