Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve flexibility of Datafile when transferring between datasets #687

Open
3 tasks
thclark opened this issue Dec 10, 2024 · 0 comments
Open
3 tasks

Improve flexibility of Datafile when transferring between datasets #687

thclark opened this issue Dec 10, 2024 · 0 comments
Labels
feature A new feature of the app framework Octue app or twined framework and communications system tech-debt Technical debt (tidy up, refactoring, restructuring, caused by laziness now) user experience (UX) Key UX issues

Comments

@thclark
Copy link
Contributor

thclark commented Dec 10, 2024

Feature request

Use Case

@thclark to come back and populate issue later

        # TODO REFACTOR REQUEST This code works around the problem experienced when downloading one datfile
        # multiple times. To avoid repeat work, the Datafile class will only download once then it remembers
        # that it's been downloaded. This is usually useful, but in this particular case where we want to duplicate
        # a single input file to many new datasets, it only downloads the file to the first scenario.
        with open(required_local_path, "w", encoding="utf-8") as dest_file:
            with open(user_defined_profile_datafile.local_path, "r", encoding="utf-8") as source_file:
                logger.info("What a horrible hack, FIXME")
                content = source_file.read()
                dest_file.write(content)

Current state

Please describe what you're doing presently to work around this or achieve what you're doing.

Proposed Solution

Please describe, if you can, how you think the feature should be implemented or problem solved

Supporting Octue

Octue is an Open-Source Software organisation helping you and many others to fight climate change. Providing support for your issues costs us c. 500GBP/day. Might your organisation be in a position to help sponsor this issue?

  • We already are (eg via technical partnership or GitHub Sponsors )
  • Yes (we'll prioritise this issue, and be in touch)
  • No (we'll work on this issue as and when it aligns with our core development activity)
@thclark thclark added feature A new feature of the app tech-debt Technical debt (tidy up, refactoring, restructuring, caused by laziness now) framework Octue app or twined framework and communications system user experience (UX) Key UX issues labels Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A new feature of the app framework Octue app or twined framework and communications system tech-debt Technical debt (tidy up, refactoring, restructuring, caused by laziness now) user experience (UX) Key UX issues
Projects
Status: No status
Development

No branches or pull requests

1 participant