Skip to content

limit the filename length dumped by MultiSystems#554

Merged
wanghan-iapcm merged 2 commits intodeepmodeling:develfrom
njzjz:limit_filename_length
Oct 15, 2023
Merged

limit the filename length dumped by MultiSystems#554
wanghan-iapcm merged 2 commits intodeepmodeling:develfrom
njzjz:limit_filename_length

Conversation

@njzjz
Copy link
Member

@njzjz njzjz commented Oct 14, 2023

Fix #553.

Fix deepmodeling#553.

Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu>
@njzjz njzjz linked an issue Oct 14, 2023 that may be closed by this pull request
@codecov
Copy link

codecov bot commented Oct 14, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (5e8f0ba) 82.86% compared to head (0b6f4ee) 82.90%.

Additional details and impacted files
@@            Coverage Diff             @@
##            devel     #554      +/-   ##
==========================================
+ Coverage   82.86%   82.90%   +0.04%     
==========================================
  Files          73       73              
  Lines        6523     6541      +18     
==========================================
+ Hits         5405     5423      +18     
  Misses       1118     1118              
Files Coverage Δ
dpdata/system.py 86.11% <100.00%> (+0.31%) ⬆️
dpdata/utils.py 100.00% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@njzjz njzjz requested a review from zjgemi October 14, 2023 08:29
@wanghan-iapcm wanghan-iapcm merged commit e73531b into deepmodeling:devel Oct 15, 2023
njzjz added a commit to njzjz/dpdata that referenced this pull request Feb 4, 2026
deepmodeling#554 dumps file names in short name. However, `dpgen simplify` replies on the filename to find a system in MultiSystems. This commit makes it possible to find a system by its short name.
wanghan-iapcm pushed a commit that referenced this pull request Feb 5, 2026
#554 dumps file names in short name. However, `dpgen simplify` replies
on the filename to find a system in MultiSystems. This commit makes it
possible to find a system by its short name.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **New Features**
* Systems in collections can now be accessed by their short name as well
as by formula-based keys.

* **Tests**
* Added test coverage verifying index-based access using a system's
short name.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Signed-off-by: Jinzhe Zeng <njzjz@qq.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] File name too long error when trying to use a long type_map

2 participants