CASMcode icon indicating copy to clipboard operation
CASMcode copied to clipboard

casm import reorders configs

Open xivh opened this issue 1 year ago • 1 comments

When I use casm import -b on a file, casm resorts the config names. This makes it difficult to preserve the config name between projects.

Example: I have enumerated SCELX/0 through SCELX/20 in a new casm project. Now i want to import these configs back into my original project. Despite sorting the config names in the batch file (sort -V), they are imported in the order

SCELX/0 SCELX/1 SCELX/10 SCELX/11 ...

which means that config 10 become config 2, config 11 becomes config 3, and so on. Although what I am doing may be an edge case, I think that casm import should respect the order of the configs that it is given.

xivh avatar Jun 29 '23 18:06 xivh

Thanks for the comment. We haven't tried to support keeping names across project before, but I'll think about if there is a way to support this.

bpuchala avatar Jul 06 '23 21:07 bpuchala