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

Update copyOrWarn and getFileSHA1Hash to account for directories #1984

Merged
merged 13 commits into from
Oct 31, 2024

Conversation

opotowsky
Copy link
Member

@opotowsky opotowsky commented Oct 28, 2024

What is the change?

copyOrWarn can now handle directories. This also includes an edit to getFileSHA1Hash so that it can handle directories too.

Why is the change being made?

Sometimes a directory needs to be copied too. Let's give the directories the attention they deserve!

This supports a case setting downstream that is a directory, not a file path.


Checklist

  • The release notes have been updated if necessary.
  • The documentation is still up-to-date in the doc folder.
  • The dependencies are still up-to-date in pyproject.toml.

@opotowsky opotowsky added the feature request Smaller user request label Oct 28, 2024
@john-science
Copy link
Member

Hey Arrielle! Can you re-run the linters?

Thanks!

@opotowsky
Copy link
Member Author

opotowsky commented Oct 29, 2024

(working on some tests now + fixing some code, so this isn't quite ready yet)

Update @john-science : it's ready for review. I have a few comments and questions for you.

@opotowsky opotowsky changed the title Update copyOrWarn to account for directories Update copyOrWarn and getFileSHA1Hash to account for directories Oct 30, 2024
doc/release/0.4.rst Outdated Show resolved Hide resolved
Copy link
Member

@john-science john-science left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks clear to me.

Thanks!

@opotowsky opotowsky merged commit 430f748 into main Oct 31, 2024
19 checks passed
@opotowsky opotowsky deleted the copy-dirs-too branch October 31, 2024 20:13
drewj-tp added a commit that referenced this pull request Nov 7, 2024
…u-rotate-with-pin-dep

* zprince/component_flux_up:
  fix linting
  release notes
  Enabling axial expansion with detailed depletion (#1954)
  Improving error testing (#2004)
  Addressing reviewer comments for component pin mg fluxes
  Removing mystery coverage line from tests (#2003)
  beef up assertions
  resolve fixme
  org imports
  No need to recast strings to strings
  Finishing up the numProcessors -> nTasks conversion (#2002)
  Using one-block reactor for component flux test
  Supporting Python 3.13 (#1996)
  Removing SmartList & adding coverage (#1992)
  Update `copyOrWarn` and `getFileSHA1Hash` to account for directories (#1984)
  Removing broken plot (#1994)
  Adding unit tests for `CylindricalComponentsDuctHetAverageBlockCollection` (#1991)
  Allowing creation of partially heterogeneous assemblies for 1D XS model (#1949)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Smaller user request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants