sassoftware / sassoftware/python-sasctl

Older examples needs to be updated for JSONFiles API changes

未关闭
#178 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

bug
主要语言
Python
星标
52
派生
45
平均合并
23 小时 38 分钟
30 天内合并 PR
2

描述

Describe the issue
This example has some API calls that don't work with the updated version of sasctl - changes to JSONFiles:
https://github.com/sassoftware/python-sasctl/blob/master/examples/pzmmCompleteModelExampleMLFlowSklearn.ipynb

For example, writeModelPropertiesJSON is now write_model_properties_json and has many changes in the parameters.

Other examples:
writeFileMetadataJSON
writeVarJSON

I checked other examples and it seems any of them 6 months or older are now out of date with the newer sasctl API.

To Reproduce
Run this command using latest sasctl

J.writeVarJSON(inputsDict, isInput=True, jPath=zipFolder)

and you will get things like

AttributeError: 'JSONFiles' object has no attribute 'writeVarJSON'. Did you mean: 'write_var_json'?

Version
The SHA is 729e72c8785065109ccfd1ffdb9816d4bf1dce55

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

从 examples/pzmmCompleteModelExampleMLFlowSklearn.ipynb 开始,将其中的 JSONFiles 调用与当前的 sasctl API 进行比较。在其他示例中搜索 writeModelPropertiesJSON、writeFileMetadataJSON 和 writeVarJSON,然后更新已过时的调用和参数。完成的标准是,较旧的示例能够使用最新的 sasctl 运行,且不会出现所报告的 AttributeError。

由索引模型根据 Issue 内容生成。

评估

技术栈
python
领域
documentation
Issue 类型
文档
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。