Skip to content

Commit 61132d6

Browse files
committed
shatter.py sort dataframe by xi, yi
* sort the final dataframe by xi and yi so that the expected result is created
1 parent 20d8388 commit 61132d6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/silvimetric/commands/shatter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ def run(leaves: Leaves, config: ShatterConfig, storage: Storage) -> int:
213213
joined_dfs = [df for df in results if df is not None]
214214

215215
if joined_dfs:
216-
final_df = pd.concat(joined_dfs, ignore_index=True)
216+
final_df = pd.concat(joined_dfs).sort_values(by=['xi', 'yi'])
217217
pc = write(final_df, storage, config.date)
218218
config.point_count = config.point_count + pc
219219

0 commit comments

Comments
 (0)