Coder Social home page Coder Social logo

Comments (7)

hagenw avatar hagenw commented on August 23, 2024

To be able to still get information on author and date of publishing a database, I created audeering/audbackend#75 to support these for all backends.

/cc @Bahaabrougui

from audbcards.

hagenw avatar hagenw commented on August 23, 2024

Until audbackend is updated it might be that we have to skip Dataset.publication in the tests as it would make sense to use file-system based repository that is created on the fly in the tests.

from audbcards.

ChristianGeng avatar ChristianGeng commented on August 23, 2024

I have used a dirty patch to circumvent the absence of publication here:

https://github.com/audeering/audbcards/pull/13/files#diff-9048213c5451377dd8ab1245088059131295d6a961d2f7bd2bb7017f2b572c7f:~:text=stat%20%3D%20path,return%20publication

So if this could be implemented, the ugliness of the above patch could also be remedied.

from audbcards.

hagenw avatar hagenw commented on August 23, 2024

In audbackend we have now added audbackend.Backend.owner() (== author) in audeering/audbackend#127 and are going to add audbackend.Backend.date() in audeering/audbackend#128, which means in the future those will be available independent of the backend. But as these are added to a version of audbackend that has breaking changes it might take some time until they will arrive in audb.

Until then it seems valid to me to add something like if self.repository.backend == 'file-system': to provide a workaround so we also have something there in the tests for the file-system backend.

from audbcards.

hagenw avatar hagenw commented on August 23, 2024

The same we could do for repository_link, e.g. just skip the link

if self.repository.backend == 'file-system':
    return self.repository}

from audbcards.

ChristianGeng avatar ChristianGeng commented on August 23, 2024

So you say that for the time being, conditional execution depending on the backend type is ok, and the changes to audbackend are on their way, but patience is required, and no need to take initiative.

from audbcards.

hagenw avatar hagenw commented on August 23, 2024

Yes, exactly.

from audbcards.

Related Issues (11)

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.