Skip to content

Commit

Permalink
update user manual
Browse files Browse the repository at this point in the history
example link
  • Loading branch information
HaolingZHANG committed Jul 13, 2021
1 parent 087f5ac commit 579c555
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/source/user_manual.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,17 +109,15 @@ Taking Yin-Yang DNA Storage Code as an Example, the specific usage (using init m
```python
from Chamaeleo.utils.pipelines import TranscodePipeline
from Chamaeleo.methods.flowed import YinYangCode
from Chamaeleo.methods.ecc import Hamming


coding_scheme = YinYangCode()
error_correction = Hamming()
needed_index = True

write_file_path = "TARGET.xx"
dna_path = "XXXXXX.dna"

pipeline = TranscodePipeline(coding_scheme=coding_scheme, error_correction=error_correction, need_logs=True)
pipeline = TranscodePipeline(coding_scheme=coding_scheme, error_correction=None, need_logs=True)

decoded_data = pipeline.transcode(direction="t_s", input_path=dna_path, output_path=write_file_path,
index=needed_index)
Expand Down Expand Up @@ -168,3 +166,5 @@ pipeline = TranscodePipeline(coding_scheme=coding_scheme, error_correction=error
decoded_data = pipeline.transcode(direction="t_s", input_path=dna_path, output_path=write_file_path,
index=needed_index)
```

For more examples in other pipelines, please see [**here**](https://github.com/ntpz870817/Chamaeleo/tree/master/examples).

0 comments on commit 579c555

Please sign in to comment.