Skip to content

Commit f8df09f

Browse files
committed
simplify migration page
1 parent b01b51e commit f8df09f

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

docs/home/migration.md

+3-8
Original file line numberDiff line numberDiff line change
@@ -35,21 +35,16 @@ from bloqade.analog.atom_arrangement import Square
3535

3636
## Migrating old bloqade JSON files
3737

38-
If you have old bloqade JSON files, you will not be able to directly deserialize them anymore because of the package restructuring. Howver we have provided some tools to migrate those JSON files to be compatible with `bloqade-analog`. You can do this by running the following command in the command line for a single file:
38+
If you have old bloqade JSON files, you will not be able to directly deserialize them anymore because of the package restructuring. However, we have provided some tools to migrate those JSON files to be compatible with `bloqade-analog`. You can do this by running the following command in the command line for a one or more files:
3939

4040
```sh
41-
python -m bloqade.analog.migrate <path_to_old_json_file>
41+
python -m bloqade.analog.migrate <path_to_old_json_file1> <path_to_old_json_file2> ...
4242
```
43-
This will create a new file with the same name as the old file, but with `-analog` appended to the end of the filename. For example, if you have a file called `my_bloqade.json`, the new file will be called `my_bloqade-analog.json`. You can then use `load` to deserialize this file with the `bloqade-analog` package. There are other options for converting the file, such as setting the indent level for the output file or overwriting the old file. You can see all the options by running:
43+
With default arguments this will create a new file with the same name as the old file, but with `-analog` appended to the end of the filename. For example, if you have a file called `my_bloqade.json`, the new file will be called `my_bloqade-analog.json`. You can then use `load` to deserialize this file with the `bloqade-analog` package. There are other options for converting the file, such as setting the indent level for the output file or overwriting the old file. You can see all the options by running:
4444

4545
```sh
4646
python -m bloqade.analog.migrate --help
4747
```
48-
You can also migrate multiple files at once by running:
49-
50-
```sh
51-
python -m bloqade.analog.migrate <path_to_old_json_file1> <path_to_old_json_file2> ...
52-
```
5348

5449
Another option is to use the migration tool in a python script:
5550

0 commit comments

Comments
 (0)