Coder Social home page Coder Social logo

Comments (11)

johannesvollmer avatar johannesvollmer commented on June 15, 2024 1

@mandeep, I would appreciate if you'd find the time to test if the test suite now works as expected (expect some tests to fail, I just discovered a few new bugs).

from exrs.

johannesvollmer avatar johannesvollmer commented on June 15, 2024 1

Perfect! Thank you for your support.

from exrs.

johannesvollmer avatar johannesvollmer commented on June 15, 2024

Hi, thanks for your issue. I have been testing with the images repository that you linked to locally. Those images are all producing the expected output on my machine.

They are not yet included in this repository, because I was not quite sure if it was good practice to include such a large folder, some files would maybe even require the users to install the large file support for git. Alternatively, a build script could download the images repository into a local folder before building. Which solution would you prefer?

from exrs.

johannesvollmer avatar johannesvollmer commented on June 15, 2024

(Actually, I've been using a really old clone of the images repository, not yet including the damaged images folder.)

from exrs.

johannesvollmer avatar johannesvollmer commented on June 15, 2024

I just tried simply putting all images into a folder and adding it to this repository. It worked, without the need for any large file support. That's why I came to the conclusion that this would be the easiest solution. Pushing took quite a while tough, haha, and cloning will probably take some more time now, too. It's a start 🎉

from exrs.

mandeep avatar mandeep commented on June 15, 2024

It looks like the image files are now found. However, I have a failure with test_write_file.

One thing to note is that instead of copying the images directory over into your repo, you can use git submodules to obtain a similar effect. The benefit of submodules is that you don't have to copy over the images every time there is an update. You can just call git submodule update to update the linked images repo.

from exrs.

johannesvollmer avatar johannesvollmer commented on June 15, 2024

Thanks for the submodule hint. I'll investigate on that.

Can you give me some more information about the failed test? Is there a panic message or an Error? That test does not fail in my environment.

from exrs.

mandeep avatar mandeep commented on June 15, 2024

Here's the output from cargo test: https://gist.github.com/mandeep/e3706560fb21afbb48d1e7134468ffc6

from exrs.

johannesvollmer avatar johannesvollmer commented on June 15, 2024

Ok. So in dev.rs on line 48 there's a file path string. The test must read that file and write it into another directory. Can you check if that file exists in your project? It seems like this file cannot be found and maybe that file was not commited or maybe there's a typo in the path.

exrs/tests/dev.rs

Lines 48 to 51 in e7e5510

let path = "tests/images/valid/openexr/BeachBall/multipart.0001.exr";
let image = Image::read_from_file(path, read_options::high()).unwrap();
Image::write_to_file(&image, "tests/images/out/written.exr", write_options::high()).unwrap();

from exrs.

johannesvollmer avatar johannesvollmer commented on June 15, 2024

Actually, this specific test was not an official test but rather development stuff. As long as the real tests pass, this shouldn't be a problem. If you find the time, run cargo test --no-fail-fast to run all tests. Please keep in mind that running the tests only works with the GitHub repository and not with the crate from crates.io, because the latter does not include any images.

I've made a few changes to the rgba API, would you like to give me some feedback on the design?

from exrs.

mandeep avatar mandeep commented on June 15, 2024

Thanks, I'm indeed working off the git repository. After a pull from upstream cargo test --no-fail-fast shows that all tests pass. :)

I'll take a look at the API and I'll make a new post with any issues I find. Thanks for taking the time to do all of this!

from exrs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.