From 0b96d3e08b462d84d74ca56f9c90491383c0c825 Mon Sep 17 00:00:00 2001 From: testisnullus Date: Thu, 14 Nov 2024 15:16:10 +0200 Subject: [PATCH] issue-126, fft/brro compressor was renamed to atsc --- CONTRIBUTING.md | 6 +-- Cargo.lock | 46 +++++++++--------- Cargo.toml | 2 +- MAINTAINERS.md | 2 +- README.md | 12 ++--- {brro-compressor => atsc}/Cargo.toml | 2 +- .../benches/fft_bench.rs | 2 +- .../benches/polynomial_bench.rs | 4 +- {brro-compressor => atsc}/demo/run_demo.sh | 16 +++--- .../src/compressor/constant.rs | 0 .../src/compressor/fft.rs | 0 .../src/compressor/mod.rs | 0 .../src/compressor/noop.rs | 0 .../src/compressor/polynomial.rs | 0 {brro-compressor => atsc}/src/data.rs | 0 {brro-compressor => atsc}/src/frame/mod.rs | 0 {brro-compressor => atsc}/src/header.rs | 0 {brro-compressor => atsc}/src/lib.rs | 0 {brro-compressor => atsc}/src/main.rs | 8 +-- .../src/optimizer/mod.rs | 0 .../src/optimizer/utils.rs | 0 {brro-compressor => atsc}/src/utils/error.rs | 0 {brro-compressor => atsc}/src/utils/mod.rs | 0 .../src/utils/readers/bro_reader.rs | 0 .../src/utils/readers/mod.rs | 0 .../src/utils/writers/mod.rs | 0 {brro-compressor => atsc}/tests/e2e.rs | 4 +- .../tests/integration_test.rs | 2 +- .../tests/wbros/go_gc_heap_goal_bytes.wbro | Bin .../tests/wbros/memory_used.wbro | Bin .../tests/wbros/uptime.wbro | Bin csv-compressor/Cargo.toml | 4 +- csv-compressor/src/main.rs | 8 +-- plot_comparison.sh | 12 ++--- plot_data.sh | 4 +- 35 files changed, 66 insertions(+), 68 deletions(-) rename {brro-compressor => atsc}/Cargo.toml (96%) rename {brro-compressor => atsc}/benches/fft_bench.rs (98%) rename {brro-compressor => atsc}/benches/polynomial_bench.rs (98%) rename {brro-compressor => atsc}/demo/run_demo.sh (63%) rename {brro-compressor => atsc}/src/compressor/constant.rs (100%) rename {brro-compressor => atsc}/src/compressor/fft.rs (100%) rename {brro-compressor => atsc}/src/compressor/mod.rs (100%) rename {brro-compressor => atsc}/src/compressor/noop.rs (100%) rename {brro-compressor => atsc}/src/compressor/polynomial.rs (100%) rename {brro-compressor => atsc}/src/data.rs (100%) rename {brro-compressor => atsc}/src/frame/mod.rs (100%) rename {brro-compressor => atsc}/src/header.rs (100%) rename {brro-compressor => atsc}/src/lib.rs (100%) rename {brro-compressor => atsc}/src/main.rs (97%) rename {brro-compressor => atsc}/src/optimizer/mod.rs (100%) rename {brro-compressor => atsc}/src/optimizer/utils.rs (100%) rename {brro-compressor => atsc}/src/utils/error.rs (100%) rename {brro-compressor => atsc}/src/utils/mod.rs (100%) rename {brro-compressor => atsc}/src/utils/readers/bro_reader.rs (100%) rename {brro-compressor => atsc}/src/utils/readers/mod.rs (100%) rename {brro-compressor => atsc}/src/utils/writers/mod.rs (100%) rename {brro-compressor => atsc}/tests/e2e.rs (97%) rename {brro-compressor => atsc}/tests/integration_test.rs (97%) rename {brro-compressor => atsc}/tests/wbros/go_gc_heap_goal_bytes.wbro (100%) rename {brro-compressor => atsc}/tests/wbros/memory_used.wbro (100%) rename {brro-compressor => atsc}/tests/wbros/uptime.wbro (100%) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index d03c9ad..6ba943a 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -21,7 +21,7 @@ This project adheres to a code of conduct that is based on respect, collaboratio ### Reporting Issues -If you encounter a bug, performance issue, or have a suggestion for an enhancement, please open an issue in our [GitHub repository](https://github.com/instaclustr/fft-compression/issues). Make sure to provide as much detail as possible to help us understand the problem or suggestion. **But check for existing issues first!** +If you encounter a bug, performance issue, or have a suggestion for an enhancement, please open an issue in our [GitHub repository](https://github.com/instaclustr/atsc/issues). Make sure to provide as much detail as possible to help us understand the problem or suggestion. **But check for existing issues first!** When reporting an issue, please include: - A clear and descriptive title. @@ -45,7 +45,7 @@ We accept contributions via Pull Requests (PRs). Before submitting a PR, please #### How to Create a Pull Request (PR) -1. Go to the [GitHub repository](https://github.com/instaclustr/fft-compression). +1. Go to the [GitHub repository](https://github.com/instaclustr/atsc). 2. Click on the "Pull Requests" tab. 3. Press the **"New pull request"** button. 4. Select the **base repository** and the branch where you want to merge your changes (`main`). @@ -100,6 +100,6 @@ Feel free to contribute to these ongoing efforts or propose your own enhancement We value your feedback and suggestions! If you have any ideas on how to improve the BRRO Compressor, please don't hesitate to share them. You can do so by: -- Opening a new issue labeled as a `suggestion` in our [GitHub repository](https://github.com/instaclustr/fft-compression). +- Opening a new issue labeled as a `suggestion` in our [GitHub repository](https://github.com/instaclustr/atsc). Your input helps us shape the future of the project, and we appreciate any suggestions or feedback you can provide. diff --git a/Cargo.lock b/Cargo.lock index 1d22042..8167628 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -98,6 +98,28 @@ version = "0.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "96d30a06541fbafbc7f82ed10c06164cfbd2c401138f6addd8404629c4b16711" +[[package]] +name = "atsc" +version = "0.5.0" +dependencies = [ + "average", + "bincode", + "clap", + "criterion", + "env_logger", + "hound", + "inverse_distance_weight", + "log", + "median", + "num-traits", + "rand 0.8.5", + "regex", + "rustfft", + "splines", + "tempfile", + "wavbrro", +] + [[package]] name = "autocfg" version = "1.3.0" @@ -158,28 +180,6 @@ dependencies = [ "wyz", ] -[[package]] -name = "brro-compressor" -version = "0.5.0" -dependencies = [ - "average", - "bincode", - "clap", - "criterion", - "env_logger", - "hound", - "inverse_distance_weight", - "log", - "median", - "num-traits", - "rand 0.8.5", - "regex", - "rustfft", - "splines", - "tempfile", - "wavbrro", -] - [[package]] name = "bumpalo" version = "3.16.0" @@ -426,7 +426,7 @@ dependencies = [ name = "csv-compressor" version = "0.1.0" dependencies = [ - "brro-compressor", + "atsc", "clap", "csv", "env_logger", diff --git a/Cargo.toml b/Cargo.toml index dd98cea..06e5a54 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [workspace] members = [ - "brro-compressor", + "atsc", "tools", "wavbrro", "vsri", diff --git a/MAINTAINERS.md b/MAINTAINERS.md index fa00411..940fabc 100644 --- a/MAINTAINERS.md +++ b/MAINTAINERS.md @@ -1,4 +1,4 @@ -# FFT-compression Maintainers +# ATSC Maintainers ## Maintainers diff --git a/README.md b/README.md index 0bcce3c..d11b8d8 100644 --- a/README.md +++ b/README.md @@ -2,15 +2,15 @@ ## Documentation -For full documentation please go to [Docs](https://github.com/instaclustr/fft-compression/tree/main/docs) +For full documentation please go to [Docs](https://github.com/instaclustr/atsc/tree/main/docs) ## Building ATSC 1. Clone the repository: ```bash - git clone https://github.com/instaclustr/fft-compression - cd fft-compression + git clone https://github.com/instaclustr/atsc + cd atsc ``` 2. Build the project: @@ -38,7 +38,7 @@ Internally ATSC uses the following methods for time series fitting: For a more detailed insight into ATSC read the paper here: [ATSC - A novel approach to time-series compression](https://some.url.com) -Currently, ATSC uses an internal format to process time series (WBRO) and outputs a compressed format (BRO). A CSV to WBRO format is available here: [CSV Compressor](https://github.com/instaclustr/fft-compression/tree/main/csv-compressor) +Currently, ATSC uses an internal format to process time series (WBRO) and outputs a compressed format (BRO). A CSV to WBRO format is available here: [CSV Compressor](https://github.com/instaclustr/atsc/tree/main/csv-compressor) ## Where does ATSC fits? @@ -61,8 +61,8 @@ Example of use cases: ### Usage -ATSC relies on files with a WBRO extension to operate, learn more about that here: [WBRO - A time series format](https://github.com/instaclustr/fft-compression/tree/main/wavbrro) -You can also compress from CSV with the provided [CSV tool](https://github.com/instaclustr/fft-compression/tree/main/csv-compressor) +ATSC relies on files with a WBRO extension to operate, learn more about that here: [WBRO - A time series format](https://github.com/instaclustr/atsc/tree/main/wavbrro) +You can also compress from CSV with the provided [CSV tool](https://github.com/instaclustr/atsc/tree/main/csv-compressor) Those files would work as input for the compressor. Compressor usage: diff --git a/brro-compressor/Cargo.toml b/atsc/Cargo.toml similarity index 96% rename from brro-compressor/Cargo.toml rename to atsc/Cargo.toml index 548f79b..7eb0585 100644 --- a/brro-compressor/Cargo.toml +++ b/atsc/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "brro-compressor" +name = "atsc" version = "0.5.0" authors = ["Carlos Rolo "] edition = "2021" diff --git a/brro-compressor/benches/fft_bench.rs b/atsc/benches/fft_bench.rs similarity index 98% rename from brro-compressor/benches/fft_bench.rs rename to atsc/benches/fft_bench.rs index e1c5b1e..ccaf8fe 100644 --- a/brro-compressor/benches/fft_bench.rs +++ b/atsc/benches/fft_bench.rs @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -use brro_compressor::compressor::fft::{fft, fft_allowed_error, fft_set, fft_to_data, FFT}; +use atsc::compressor::fft::{fft, fft_allowed_error, fft_set, fft_to_data, FFT}; use criterion::{black_box, criterion_group, criterion_main, Criterion}; use std::path::PathBuf; use wavbrro::wavbrro::WavBrro; diff --git a/brro-compressor/benches/polynomial_bench.rs b/atsc/benches/polynomial_bench.rs similarity index 98% rename from brro-compressor/benches/polynomial_bench.rs rename to atsc/benches/polynomial_bench.rs index f297474..e5648dc 100644 --- a/brro-compressor/benches/polynomial_bench.rs +++ b/atsc/benches/polynomial_bench.rs @@ -15,9 +15,7 @@ limitations under the License. */ // Import necessary libraries -use brro_compressor::compressor::polynomial::{ - polynomial, polynomial_allowed_error, to_data, PolynomialType, -}; +use atsc::compressor::polynomial::{polynomial, polynomial_allowed_error, to_data, PolynomialType}; use criterion::{black_box, criterion_group, criterion_main, Criterion}; // Define example sample data diff --git a/brro-compressor/demo/run_demo.sh b/atsc/demo/run_demo.sh similarity index 63% rename from brro-compressor/demo/run_demo.sh rename to atsc/demo/run_demo.sh index f19796f..d8358c6 100755 --- a/brro-compressor/demo/run_demo.sh +++ b/atsc/demo/run_demo.sh @@ -11,37 +11,37 @@ do cp $infilename tmp.wbro - ../../target/debug/brro-compressor --compressor fft --error $i --verbose tmp.wbro > $mfile + ../../target/debug/atsc --compressor fft --error $i --verbose tmp.wbro > $mfile echo "FFT Size: " du -sb tmp.bro - ../../target/debug/brro-compressor -u --verbose tmp.bro >> $mfile + ../../target/debug/atsc -u --verbose tmp.bro >> $mfile sed -i -e 's/Output/output_fft/g' $mfile cp $infilename tmp.wbro - ../../target/debug/brro-compressor --compressor idw --error $i tmp.wbro > /dev/null + ../../target/debug/atsc --compressor idw --error $i tmp.wbro > /dev/null echo "IDW Size: " du -sb tmp.bro - ../../target/debug/brro-compressor -u --verbose tmp.bro >> $mfile + ../../target/debug/atsc -u --verbose tmp.bro >> $mfile sed -i -e 's/Output/output_idw/g' $mfile cp $infilename tmp.wbro - ../../target/debug/brro-compressor --compressor polynomial --error $i tmp.wbro > /dev/null + ../../target/debug/atsc --compressor polynomial --error $i tmp.wbro > /dev/null echo "Polynomial Size: " du -sb tmp.bro - ../../target/debug/brro-compressor -u --verbose tmp.bro >> $mfile + ../../target/debug/atsc -u --verbose tmp.bro >> $mfile sed -i -e 's/Output/output_poly/g' $mfile cp $infilename tmp.wbro - ../../target/debug/brro-compressor --error $i tmp.wbro > /dev/null + ../../target/debug/atsc --error $i tmp.wbro > /dev/null echo "Auto Size: " du -sb tmp.bro - ../../target/debug/brro-compressor -u --verbose tmp.bro >> $mfile + ../../target/debug/atsc -u --verbose tmp.bro >> $mfile sed -i -e 's/Output/output_auto/g' $mfile diff --git a/brro-compressor/src/compressor/constant.rs b/atsc/src/compressor/constant.rs similarity index 100% rename from brro-compressor/src/compressor/constant.rs rename to atsc/src/compressor/constant.rs diff --git a/brro-compressor/src/compressor/fft.rs b/atsc/src/compressor/fft.rs similarity index 100% rename from brro-compressor/src/compressor/fft.rs rename to atsc/src/compressor/fft.rs diff --git a/brro-compressor/src/compressor/mod.rs b/atsc/src/compressor/mod.rs similarity index 100% rename from brro-compressor/src/compressor/mod.rs rename to atsc/src/compressor/mod.rs diff --git a/brro-compressor/src/compressor/noop.rs b/atsc/src/compressor/noop.rs similarity index 100% rename from brro-compressor/src/compressor/noop.rs rename to atsc/src/compressor/noop.rs diff --git a/brro-compressor/src/compressor/polynomial.rs b/atsc/src/compressor/polynomial.rs similarity index 100% rename from brro-compressor/src/compressor/polynomial.rs rename to atsc/src/compressor/polynomial.rs diff --git a/brro-compressor/src/data.rs b/atsc/src/data.rs similarity index 100% rename from brro-compressor/src/data.rs rename to atsc/src/data.rs diff --git a/brro-compressor/src/frame/mod.rs b/atsc/src/frame/mod.rs similarity index 100% rename from brro-compressor/src/frame/mod.rs rename to atsc/src/frame/mod.rs diff --git a/brro-compressor/src/header.rs b/atsc/src/header.rs similarity index 100% rename from brro-compressor/src/header.rs rename to atsc/src/header.rs diff --git a/brro-compressor/src/lib.rs b/atsc/src/lib.rs similarity index 100% rename from brro-compressor/src/lib.rs rename to atsc/src/lib.rs diff --git a/brro-compressor/src/main.rs b/atsc/src/main.rs similarity index 97% rename from brro-compressor/src/main.rs rename to atsc/src/main.rs index 89ea64d..c698452 100644 --- a/brro-compressor/src/main.rs +++ b/atsc/src/main.rs @@ -14,10 +14,10 @@ See the License for the specific language governing permissions and limitations under the License. */ -use brro_compressor::compressor::Compressor; -use brro_compressor::data::CompressedStream; -use brro_compressor::optimizer::OptimizerPlan; -use brro_compressor::utils::readers::bro_reader; +use atsc::compressor::Compressor; +use atsc::data::CompressedStream; +use atsc::optimizer::OptimizerPlan; +use atsc::utils::readers::bro_reader; use clap::{arg, command, Parser}; use log::{debug, error}; use std::error::Error; diff --git a/brro-compressor/src/optimizer/mod.rs b/atsc/src/optimizer/mod.rs similarity index 100% rename from brro-compressor/src/optimizer/mod.rs rename to atsc/src/optimizer/mod.rs diff --git a/brro-compressor/src/optimizer/utils.rs b/atsc/src/optimizer/utils.rs similarity index 100% rename from brro-compressor/src/optimizer/utils.rs rename to atsc/src/optimizer/utils.rs diff --git a/brro-compressor/src/utils/error.rs b/atsc/src/utils/error.rs similarity index 100% rename from brro-compressor/src/utils/error.rs rename to atsc/src/utils/error.rs diff --git a/brro-compressor/src/utils/mod.rs b/atsc/src/utils/mod.rs similarity index 100% rename from brro-compressor/src/utils/mod.rs rename to atsc/src/utils/mod.rs diff --git a/brro-compressor/src/utils/readers/bro_reader.rs b/atsc/src/utils/readers/bro_reader.rs similarity index 100% rename from brro-compressor/src/utils/readers/bro_reader.rs rename to atsc/src/utils/readers/bro_reader.rs diff --git a/brro-compressor/src/utils/readers/mod.rs b/atsc/src/utils/readers/mod.rs similarity index 100% rename from brro-compressor/src/utils/readers/mod.rs rename to atsc/src/utils/readers/mod.rs diff --git a/brro-compressor/src/utils/writers/mod.rs b/atsc/src/utils/writers/mod.rs similarity index 100% rename from brro-compressor/src/utils/writers/mod.rs rename to atsc/src/utils/writers/mod.rs diff --git a/brro-compressor/tests/e2e.rs b/atsc/tests/e2e.rs similarity index 97% rename from brro-compressor/tests/e2e.rs rename to atsc/tests/e2e.rs index 2f0dd1e..004539a 100644 --- a/brro-compressor/tests/e2e.rs +++ b/atsc/tests/e2e.rs @@ -1,4 +1,4 @@ -use brro_compressor::utils::error::calculate_error; +use atsc::utils::error::calculate_error; use std::fs; use std::path::{Path, PathBuf}; use wavbrro::wavbrro::WavBrro; @@ -117,7 +117,7 @@ fn prepare_test_dir() -> PathBuf { /// Runs compressor binary with provided arguments. fn run_compressor(args: &[&str]) { - let compressor_bin = env!("CARGO_BIN_EXE_brro-compressor"); + let compressor_bin = env!("CARGO_BIN_EXE_atsc"); let exit_status = std::process::Command::new(compressor_bin) .args(args) .status() diff --git a/brro-compressor/tests/integration_test.rs b/atsc/tests/integration_test.rs similarity index 97% rename from brro-compressor/tests/integration_test.rs rename to atsc/tests/integration_test.rs index 965a42b..7b1e4e7 100644 --- a/brro-compressor/tests/integration_test.rs +++ b/atsc/tests/integration_test.rs @@ -102,7 +102,7 @@ fn compress_file_with_speed(speed: u8) { fn run_compressor(args: &[&str]) { // path to binary set by cargo: https://doc.rust-lang.org/cargo/reference/environment-variables.html#environment-variables-cargo-sets-for-crates - let command = std::env!("CARGO_BIN_EXE_brro-compressor"); + let command = std::env!("CARGO_BIN_EXE_atsc"); let status = std::process::Command::new(command) .args(args) diff --git a/brro-compressor/tests/wbros/go_gc_heap_goal_bytes.wbro b/atsc/tests/wbros/go_gc_heap_goal_bytes.wbro similarity index 100% rename from brro-compressor/tests/wbros/go_gc_heap_goal_bytes.wbro rename to atsc/tests/wbros/go_gc_heap_goal_bytes.wbro diff --git a/brro-compressor/tests/wbros/memory_used.wbro b/atsc/tests/wbros/memory_used.wbro similarity index 100% rename from brro-compressor/tests/wbros/memory_used.wbro rename to atsc/tests/wbros/memory_used.wbro diff --git a/brro-compressor/tests/wbros/uptime.wbro b/atsc/tests/wbros/uptime.wbro similarity index 100% rename from brro-compressor/tests/wbros/uptime.wbro rename to atsc/tests/wbros/uptime.wbro diff --git a/csv-compressor/Cargo.toml b/csv-compressor/Cargo.toml index 65c86ca..8a30324 100644 --- a/csv-compressor/Cargo.toml +++ b/csv-compressor/Cargo.toml @@ -2,12 +2,12 @@ name = "csv-compressor" version = "0.1.0" edition = "2021" -description = "Utilizes brro-compressor functionalities to compress CSV formatted data" +description = "Utilizes ATSC functionalities to compress CSV formatted data" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -brro-compressor = { version = "0.5.0", path = "../brro-compressor" } +atsc = { version = "0.5.0", path = "../atsc" } clap = { workspace = true, features = ["derive"] } csv = "1.3.0" serde = { version = "1.0.171", features = ["derive"] } diff --git a/csv-compressor/src/main.rs b/csv-compressor/src/main.rs index b7d0c7b..a56dd0c 100644 --- a/csv-compressor/src/main.rs +++ b/csv-compressor/src/main.rs @@ -15,10 +15,10 @@ limitations under the License. */ use crate::metric::Metric; -use brro_compressor::compressor::Compressor; -use brro_compressor::data::CompressedStream; -use brro_compressor::optimizer::OptimizerPlan; -use brro_compressor::utils::readers::bro_reader::read_file; +use atsc::compressor::Compressor; +use atsc::data::CompressedStream; +use atsc::optimizer::OptimizerPlan; +use atsc::utils::readers::bro_reader::read_file; use clap::{arg, Parser}; use log::debug; use std::fs; diff --git a/plot_comparison.sh b/plot_comparison.sh index 8c868a3..9082bd2 100755 --- a/plot_comparison.sh +++ b/plot_comparison.sh @@ -4,22 +4,22 @@ error=$1 cp ../../wbro-july/$filename.wbro tmp.wbro -target/debug/brro-compressor --compressor fft --error $error --verbose tmp.wbro > ../../comparison-$filename.m -target/debug/brro-compressor -u --verbose tmp.bro >> ../../comparison-$filename.m +target/debug/atsc --compressor fft --error $error --verbose tmp.wbro > ../../comparison-$filename.m +target/debug/atsc -u --verbose tmp.bro >> ../../comparison-$filename.m sed -i -e 's/Output/output_fft/g' ../../comparison-$filename.m cp ../../wbro-july/$filename.wbro tmp.wbro -target/debug/brro-compressor --compressor idw --error $error --verbose tmp.wbro > /dev/null -target/debug/brro-compressor -u --verbose tmp.bro >> ../../comparison-$filename.m +target/debug/atsc --compressor idw --error $error --verbose tmp.wbro > /dev/null +target/debug/atsc -u --verbose tmp.bro >> ../../comparison-$filename.m sed -i -e 's/Output/output_idw/g' ../../comparison-$filename.m cp ../../wbro-july/$filename.wbro tmp.wbro -target/debug/brro-compressor --compressor polynomial --error $error --verbose tmp.wbro > /dev/null -target/debug/brro-compressor -u --verbose tmp.bro >> ../../comparison-$filename.m +target/debug/atsc --compressor polynomial --error $error --verbose tmp.wbro > /dev/null +target/debug/atsc -u --verbose tmp.bro >> ../../comparison-$filename.m sed -i -e 's/Output/output_poly/g' ../../comparison-$filename.m diff --git a/plot_data.sh b/plot_data.sh index 6d21482..219c4c1 100755 --- a/plot_data.sh +++ b/plot_data.sh @@ -2,8 +2,8 @@ filename=$2 compressor=$1 cp ../../wbro-july/$filename.wbro tmp.wbro -target/debug/brro-compressor --compressor $compressor --error 1 --verbose tmp.wbro > ../../$filename-$compressor.m -target/debug/brro-compressor -u --verbose tmp.bro >> ../../$filename-$compressor.m +target/debug/atsc --compressor $compressor --error 1 --verbose tmp.wbro > ../../$filename-$compressor.m +target/debug/atsc -u --verbose tmp.bro >> ../../$filename-$compressor.m echo "plot(Input,'b', Output,'r')" >> ../../$filename-$compressor.m echo "print -dpng $filename.png" >> ../../$filename-$compressor.m rm tmp.wbro