hard-coded properties path is resulting in errors for custom paths #2992
Replies: 6 comments 4 replies
|
Hi @RamiALBASHA, Thanks for raising this. The properties files ( Regarding the Also noted on the typo — we'll fix |
|
Hi @allisterakun , However:
|
|
Hi @RamiALBASHA, Just to clarify the intent behind this design: The properties files (
Because these files define part of the model’s internal data contract, they are intentionally hard-coded and are not meant to be modified or relocated by users. The user-specific paths and runtime configuration you mentioned (such as To better understand your use case: what exactly are you trying to set up or achieve by overriding these properties paths? If you can share your setup or intended workflow, we’d be happy to better understand it and help find the right approach. |
If this is still specifically referring to the "properties" metadata files, I think this makes sense. Default values that the package depends upon should probably be contained within/shipped with the package, especially if users can't provide them externally (which makes sense for properties). |
|
Hi @RamiALBASHA, thanks again for raising this. We’re currently discussing this internally with the dev team to make sure we come up with a well-rounded solution. |
|
Hey @RamiALBASHA, update from our end: we have moved |
Uh oh!
There was an error while loading. Please reload this page.
Hi,
Recent developments in the
InputManagerintroduced the constantPRROPERTIES_FILE_PATHSwith hard-coded paths for"default","tasks_properties"and"commodity_properties". This modification results in the model to raise aFileNotFounderror when invoking_load_properties()with custom paths to these data files. The old way of doing it, by setting the properties path from the user's input (properties_path = Path(self.__metadata["files"]["properties"]["path"])) did not result in such an error.The introduction of
PRROPERTIES_FILE_PATHSis a bit confusing since it does not agree with the development policy of allowing free-location of data files. In addition, the typo in its name suggests that this variable was not fully reviewed before merging.Would you consider reading user's paths instead of hard-coding them?
All reactions