Skip to content

Commit

Permalink
moved second topology calculation to end of metrics as it messed up s…
Browse files Browse the repository at this point in the history
…elf args
  • Loading branch information
MaxGamill-Sheffield committed Sep 18, 2024
1 parent 3c24622 commit 68f997d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions topostats/tracing/ordered_tracing.py
Original file line number Diff line number Diff line change
Expand Up @@ -664,15 +664,15 @@ def run_nodestats_tracing(self) -> tuple[list, dict, dict]:
reverse_min_conf_crossing=False
)
self.compile_images(ordered_traces, cross_add, crossing_coords, fwhms)
topology_flip = self.compile_trace(reverse_min_conf_crossing=True)[1]

self.grain_tracing_stats["num_mols"] = len(ordered_traces)

writhe_string, node_to_writhes = self.identify_writhes()
self.grain_tracing_stats["writhe_string"] = writhe_string

for node_num, node_writhes in node_to_writhes.items(): # should self update as the dicts are linked
self.nodestats_dict[f"node_{node_num+1}"]["writhe"] = node_writhes

topology_flip = self.compile_trace(reverse_min_conf_crossing=True)[1]

ordered_trace_data = {}
grain_mol_tracing_stats = {}
for i, mol_trace in enumerate(ordered_traces):
Expand Down

0 comments on commit 68f997d

Please sign in to comment.