From f18d657bb47d0290aec7d61fa4dabac22af80cb7 Mon Sep 17 00:00:00 2001 From: pelesh Date: Mon, 6 Apr 2026 15:49:21 -0400 Subject: [PATCH 1/2] Update README files and template issues --- .github/ISSUE_TEMPLATE/bug_report.yml | 90 ++++++++++++++++++++++ .github/ISSUE_TEMPLATE/discussion.yml | 56 ++++++++++++++ .github/ISSUE_TEMPLATE/exago_issue.yml | 19 +---- .github/ISSUE_TEMPLATE/feature_request.yml | 76 ++++++++++++++++++ .gitlab/pnnl/base.gitlab-ci.yml | 2 +- INSTALL.md | 6 +- SUPPORT.md | 2 +- docs/developer_guidelines.md | 18 ++--- docs/exago_policy_compatibility.md | 8 +- docs/python_bindings.md | 2 +- docs/web/README.ci_clusters.md | 4 +- viz/data/dataprocess.ipynb | 50 ++++++------ 12 files changed, 270 insertions(+), 63 deletions(-) create mode 100644 .github/ISSUE_TEMPLATE/bug_report.yml create mode 100644 .github/ISSUE_TEMPLATE/discussion.yml create mode 100644 .github/ISSUE_TEMPLATE/feature_request.yml diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml new file mode 100644 index 00000000..687e39d9 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -0,0 +1,90 @@ +name: "\U0001FAB2 Bug report" +description: "Bug or test failure in ExaGO code" +#title: "Bug: " +labels: [bug] +body: + # CHECKBOX: + - type: checkboxes + id: issue_relates_to + attributes: + label: "Issue applies to:" + description: You may select more than one. + options: + - label: pflow + - label: OPFLOW + - label: TCOPFLOW + - label: SCOPFLOW + - label: SOPFLOW + - label: CMake and build system + - label: Spack + - label: Visualization + - label: Documentation + - label: Other + validations: + required: true + + - type: textarea + id: summary + attributes: + label: "Summary" + description: "Please provide detailed description of the issue." + validations: + required: true + + - type: textarea + id: reproduce + attributes: + label: "Description how to reproduce the issue" + description: "Please provide launch command and the output when you encounter the issue (if applicable)." + value: | + + ```console + $ ./opflow + (...) + ``` + +
+ + ``` + $ ./opflow + (...) + ``` +
+ validations: + required: false + + - type: input + id: exago_version + attributes: + label: "ExaGO version" + description: | + Please include the version of ExaGO™ which demonstrates the problem. + If building from source on a non-tagged version, please include the commit hash. + validations: + required: true + + - type: textarea + id: system_info + attributes: + label: "System and environment details" + description: | + Please include details about your system, such as: + - Operating system + - Compilers + - Hardware backends (CUDA, HIP) + - Dependencies and package versions + validations: + required: true + + - type: textarea + id: additional_information + attributes: + label: "Additional information" + description: "Upload additional information such as debugging backtraces, logs and screenshots, when applicable." + + - type: textarea + id: possible_fix + attributes: + label: "Possible fix or workaround" + description: "Describe your proposed fix, when applicable." diff --git a/.github/ISSUE_TEMPLATE/discussion.yml b/.github/ISSUE_TEMPLATE/discussion.yml new file mode 100644 index 00000000..76e88e3f --- /dev/null +++ b/.github/ISSUE_TEMPLATE/discussion.yml @@ -0,0 +1,56 @@ +name: "❓ Discussion" +description: "A question or discussion about ExaGO code, design, or development process." +#title: "Bug: " +labels: [question] +body: + # CHECKBOX: + - type: checkboxes + id: issue_relates_to + attributes: + label: "Issue applies to:" + description: You may select more than one. + options: + - label: PFLOW + - label: OPFLOW + - label: TCOPFLOW + - label: SCOPFLOW + - label: SOPFLOW + - label: CMake and build system + - label: Spack + - label: Visualization + - label: Documentation + - label: Other + validations: + required: true + + - type: textarea + id: summary + attributes: + label: "Summary" + description: "Please pose question or the description of the discussion topic." + validations: + required: true + + - type: textarea + id: objective + attributes: + label: "Objective" + description: "Please provide the objective of the discussion. What question do you want to answer? What do you want to achieve?" + validations: + required: true + + - type: input + id: exago_version + attributes: + label: "ExaGO version" + description: | + Please include the relevant version of ExaGO™, if applicable. + validations: + required: false + + - type: textarea + id: additional_information + attributes: + label: "Additional information" + description: "Add references or examples relevant to the discussion." + diff --git a/.github/ISSUE_TEMPLATE/exago_issue.yml b/.github/ISSUE_TEMPLATE/exago_issue.yml index 58a124c2..f33e5b1b 100644 --- a/.github/ISSUE_TEMPLATE/exago_issue.yml +++ b/.github/ISSUE_TEMPLATE/exago_issue.yml @@ -1,23 +1,8 @@ -name: "Issue Report" -description: "Issue in ExaGO code" +name: "⚒️ Other" +description: "An issue in ExaGO code that does not fit into other categories" #title: "Bug: " #labels: [bug] body: - # DROPDOWN: - - type: dropdown - id: issue_type - attributes: - label: Issue type - description: Please select from pulldown menu. - options: - - "" - - Bug - - Feature Request - - Discussion - - Other - validations: - required: true - # CHECKBOX: - type: checkboxes id: issue_relates_to diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml new file mode 100644 index 00000000..8fe73e43 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.yml @@ -0,0 +1,76 @@ +name: "\U0001F38A Feature request" +description: "Suggest adding a feature that is not yet in ExaGO." +#title: "Bug: " +labels: [enhancement] +body: + # CHECKBOX: + - type: checkboxes + id: issue_relates_to + attributes: + label: "Issue applies to:" + description: You may select more than one. + options: + - label: PFLOW + - label: OPFLOW + - label: TCOPFLOW + - label: SCOPFLOW + - label: SOPFLOW + - label: CMake and build system + - label: Spack + - label: Visualization + - label: Documentation + - label: Other + validations: + required: true + + - type: textarea + id: summary + attributes: + label: "Summary" + description: "Please add a concise summary of your suggestion here." + validations: + required: true + + - type: textarea + id: reproduce + attributes: + label: "Rationale" + description: "Is your feature request related to a problem? Please describe it!." + validations: + required: true + + - type: input + id: exago_version + attributes: + label: "ExaGO version" + description: | + Please include the relevantversion of ExaGO™. + If building from source on a non-tagged version, please include the commit hash. + validations: + required: true + + - type: textarea + id: system_info + attributes: + label: "System and environment details" + description: | + Is your feature system specific? If so, please include relevant details, such as: + - Operating system + - Compilers + - Hardware backends (CUDA, HIP) + - Dependencies and package versions + validations: + required: false + + - type: textarea + id: proposed_solution + attributes: + label: "Proposed solution" + description: "Describe your proposed feature and highlight implementation details, when applicable." + + - type: textarea + id: additional_information + attributes: + label: "Additional information" + description: "Add any relevant references or examples." + diff --git a/.gitlab/pnnl/base.gitlab-ci.yml b/.gitlab/pnnl/base.gitlab-ci.yml index d2ebab92..cbb275d3 100644 --- a/.gitlab/pnnl/base.gitlab-ci.yml +++ b/.gitlab/pnnl/base.gitlab-ci.yml @@ -267,7 +267,7 @@ stages: git commit -m "Update ${MY_CLUSTER} spack built tcl modules - [${MY_CLUSTER}-test]" # Re-target GitHub as our remote - git remote set-url origin https://gitlab-ci-token:${SPACK_GIT_TOKEN}@github.com/pnnl/ExaGO.git + git remote set-url origin https://gitlab-ci-token:${SPACK_GIT_TOKEN}@github.com/ornl/ExaGO.git # Do a rebase incase another pipeline has pushed since build started git pull --rebase origin ${CI_COMMIT_REF_NAME} diff --git a/INSTALL.md b/INSTALL.md index e40897c8..bfea50e3 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -24,10 +24,10 @@ The rest of this document assumes you want to install with CMake and you already ### Acquiring the Source Code ```console -git clone https://github.com/pnnl/ExaGO.git +git clone https://github.com/ornl/ExaGO.git # Or if you have SSH keys set up: -git clone git@github.com:pnnl/ExaGO.git +git clone git@github.com:ornl/ExaGO.git ``` ### Dependencies @@ -84,7 +84,7 @@ If you are using the HiOp solver, HiOp must be built with the same RAJA and Umpi ### CMake Workflow ```console -git clone git@github.com:pnnl/ExaGO.git +git clone git@github.com:ornl/ExaGO.git cd ExaGO git submodule update --init --recursive mkdir build diff --git a/SUPPORT.md b/SUPPORT.md index ca68dacc..c94b8121 100644 --- a/SUPPORT.md +++ b/SUPPORT.md @@ -1 +1 @@ -Please submit issues at [ExaGO's GitLab issues page](https://gitlab.pnnl.gov/exasgd/frameworks/exago/-/issues) for support. +Please submit issues at [ExaGO's GitHub issues page](https://github.com/ORNL/ExaGO/issues) for support. diff --git a/docs/developer_guidelines.md b/docs/developer_guidelines.md index 4fbd373e..328c5020 100644 --- a/docs/developer_guidelines.md +++ b/docs/developer_guidelines.md @@ -16,7 +16,7 @@ **If you don't have direct write access to the ExaGO repository:** 1. Fork the repository on GitHub: - - Navigate to https://github.com/pnnl/ExaGO + - Navigate to https://github.com/ornl/ExaGO - Click the "Fork" button in the top right - This creates your fork at `https://github.com/yourusername/ExaGO` @@ -29,7 +29,7 @@ **If you have direct write access:** ```bash -$ git clone https://github.com/pnnl/ExaGO.git +$ git clone https://github.com/ornl/ExaGO.git $ cd ExaGO ``` @@ -38,7 +38,7 @@ $ cd ExaGO After cloning, configure the `upstream` remote to point to the original repository: ```bash -$ git remote add upstream https://github.com/pnnl/ExaGO.git +$ git remote add upstream https://github.com/ornl/ExaGO.git $ git fetch upstream ``` @@ -49,7 +49,7 @@ $ git remote -v ``` You should see: -- `upstream` pointing to `https://github.com/pnnl/ExaGO.git` (the original repository) +- `upstream` pointing to `https://github.com/ornl/ExaGO.git` (the original repository) - `origin` pointing to your fork (if you forked) or the original repository (if you have direct access) #### P022: Branch Off Of `develop` Unless You Have a Good Reason Not To @@ -85,18 +85,18 @@ $ git push --force-with-lease origin develop ``` **Note on remotes:** -- `upstream` refers to the original ExaGO repository (`https://github.com/pnnl/ExaGO.git`) - you **pull** from here to stay up to date +- `upstream` refers to the original ExaGO repository (`https://github.com/ornl/ExaGO.git`) - you **pull** from here to stay up to date - `origin` refers to your fork (if you forked) or the original repository (if you have direct access) - you **push** to here **Submitting a Pull Request:** If working with a fork, after pushing your feature branch to `origin`, create a Pull Request on GitHub: -1. Navigate to the original ExaGO repository at https://github.com/pnnl/ExaGO +1. Navigate to the original ExaGO repository at https://github.com/ornl/ExaGO 2. GitHub will typically show a banner to create a PR from your recently pushed branch 3. **Ensure a corresponding feature branch exists on upstream**: Coordinate with maintainers to confirm that a feature branch (e.g., `my-cool-feature`) has been created on the upstream repository. This allows CI tests to run on the upstream feature branch before merging to `develop` -4. Create a PR from `yourusername:my-cool-feature` → `pnnl:my-cool-feature` +4. Create a PR from `yourusername:my-cool-feature` → `ornl:my-cool-feature` -This will ensure you are rebased on the most recent development branch. If you see [open pull requests on ExaGO's repository](https://github.com/pnnl/ExaGO/pulls) that touch the same lines of code that you are working on, please coordinate with the developers of that merge request so your work doesn't conflict. +This will ensure you are rebased on the most recent development branch. If you see [open pull requests on ExaGO's repository](https://github.com/ornl/ExaGO/pulls) that touch the same lines of code that you are working on, please coordinate with the developers of that merge request so your work doesn't conflict. #### P001: Don't Run Continuous Integration Pipelines If You Only Changed Documentation @@ -272,7 +272,7 @@ You may also run `buildsystem/tools/cmake_format.pl -i`. 1. [LLVM Flang's style guide](https://github.com/llvm/llvm-project/blob/main/flang/docs/C%2B%2Bstyle.md) 1. [Google's style guide](https://google.github.io/styleguide/cppguide.html) -1. [ExaGO's public repository](https://github.com/pnnl/ExaGO) +1. [ExaGO's public repository](https://github.com/ornl/ExaGO) 1. [Chris Beams's blog post on writing commit messages](https://chris.beams.io/posts/git-commit) 1. [Pablo Ariasblog post on cmake best practices](https://pabloariasal.github.io/2018/02/19/its-time-to-do-cmake-right/) 1. [Semantic Versioning](https://semver.org/spec/v2.0.0.html) diff --git a/docs/exago_policy_compatibility.md b/docs/exago_policy_compatibility.md index 21d681ff..bc736bbd 100644 --- a/docs/exago_policy_compatibility.md +++ b/docs/exago_policy_compatibility.md @@ -6,7 +6,7 @@ and should be considered when filling out this form. Please, provide information on your compability status for each mandatory policy, and if possible also for recommended policies. If you are not compatible, state what is lacking and what are your plans on how to achieve compliance. -**Website:** https://github.com/pnnl/ExaGO +**Website:** https://github.com/ornl/ExaGO ### Mandatory Policies @@ -16,12 +16,12 @@ If you are not compatible, state what is lacking and what are your plans on how |**M2.** Provide a comprehensive test suite for correctness of installation verification. |Full|Comprehensive test suite with 21 unit tests and 94 integration/funcitonality tests (depending on the branch). See the `tests` directory for the full test suite. `tests/unit` contains unit tests, `tests/functionality` contains full end-to-end tests of the ExaGO applications libraries (eg OPFLOW and SOPFLOW). `tests/interfaces` contains tests for the Python bindings, which are a work in progress.| |**M3.** Employ user-provided MPI communicator (no `MPI_COMM_WORLD`). Don't assume a full MPI 3 implementation without checking. Provide an option to prevent any changes to MPI error-handling if it is changed by default. |Full| ExaGO is built on PETSc, and uses PETSc's APIs for interacting with MPI. All application structures (eg OPFLOW) are constructed with an MPI communicator, and `MPI_COMM_WORLD`. `grep`ing for `MPI_COMM_WORLD` in ExaGO's repository will identify the test drivers, example application drivers, and an initialization utility as using `MPI_COMM_WORLD`. The utility (`src/utils/utils.cpp`) will only use the global communicator if no communicator is given, and the drivers use the global communicator as examples.| |**M4.** Give best effort at portability to key architectures (standard Linux distributions, GNU, Clang, vendor compilers, and target machines at ALCF, NERSC, OLCF). |Full| Continuous integration tests each branch on multiple platforms, including IBM Power9 at ORNL and PNNL, and x86 at PNNL. CI on an AMD platform is in progress. | -|**M5.** Provide a documented, reliable way to contact the development team. |Full|[Submit issues on Github page linked here.](https://github.com/pnnl/ExaGO/issues) The SUPPORT file in the top-level directory points users to this location as well.| +|**M5.** Provide a documented, reliable way to contact the development team. |Full|[Submit issues on Github page linked here.](https://github.com/ornl/ExaGO/issues) The SUPPORT file in the top-level directory points users to this location as well.| |**M6.** Respect system resources and settings made by other previously called packages (e.g. signal handling). |Full| No signal hanlders are overridden. | |**M7.** Come with an open source (BSD style) license. |Full|See [LICENSE](/LICENSE) file in root of source directory. ExaGO uses PNNL/Battelle's BSD-style license.| |**M8.** Provide a runtime API to return the current version number of the software. |Full|Header `exago_config.h` defines version and configuration information, and we expose various runtime APIs for software information, such as `ExaGOVersionGetVersion` and `ExaGOVersionGetReleaseDate`.| |**M9.** Use a limited and well-defined symbol, macro, library, and include file name space. |Full| All macros are prefixed with `EXAGO_` and headers installed under `exago/` directory. | -|**M10.** Provide an xSDK team accessible repository (not necessarily publicly available). |Full|[Public Github repository linked here](https://github.com/pnnl/ExaGO). | +|**M10.** Provide an xSDK team accessible repository (not necessarily publicly available). |Full|[Public Github repository linked here](https://github.com/ornl/ExaGO). | |**M11.** Have no hardwired print or IO statements that cannot be turned off. |Full|Logging may be disabled with `ExaGOLogSetMinLogLevel(EXAGO_LOG_DISABLE)` or by enabling the CMake option `EXAGO_ENABLE_LOGGING=OFF` to ensure the logger is fully disabled.| @@ -39,7 +39,7 @@ M2 details : optional: provide more details about approac | Policy |Support| Notes | |------------------------|-------|-------------------------| -|**R1.** Have a public repository. |Full| [Public GitHub repository linked here](https://github.com/pnnl/ExaGO). | +|**R1.** Have a public repository. |Full| [Public GitHub repository linked here](https://github.com/ornl/ExaGO). | |**R2.** Possible to run test suite under valgrind in order to test for memory corruption issues. |Full| It is possible to run any of the application drivers and test drivers under Valgrind. This has only been test with the leakcheck tool, and not any of the other tools from Valgrind. | |**R3.** Adopt and document consistent system for error conditions/exceptions. |Full| ExaGO makes thorough use of return codes and error checking, particularly the PETSc macros such as `ERRCHKQ`. | |**R4.** Free all system resources acquired as soon as they are no longer needed. |Full| Memory for the model is allocated at the beginning of the program and freed at the end. ExaGO also allows for using an external solver, in which case the memory is used by a thrid-party library. These libraries (PETSc, Ipopt, and HiOp) also adequately free memory they allocate. | diff --git a/docs/python_bindings.md b/docs/python_bindings.md index a9957f7f..011d1934 100644 --- a/docs/python_bindings.md +++ b/docs/python_bindings.md @@ -75,7 +75,7 @@ API. Failure to do so will cause segmentation faults or other memory errors. ***If you identify components of the C++ API that you need to call from Python, -please [open an issue on our issues page](https://github.com/pnnl/ExaGO/issues).*** +please [open an issue on our issues page](https://github.com/ornl/ExaGO/issues).*** ### Building with MPI diff --git a/docs/web/README.ci_clusters.md b/docs/web/README.ci_clusters.md index ec76025e..47f56276 100644 --- a/docs/web/README.ci_clusters.md +++ b/docs/web/README.ci_clusters.md @@ -23,7 +23,7 @@ computation. $ # Set this variable to one of newell, marianas, or ascent $ export MY_CLUSTER=newell -$ git clone https://github.com/pnnl/ExaGO.git +$ git clone https://github.com/ornl/ExaGO.git $ cd exago $ mkdir build install @@ -214,7 +214,7 @@ the tests, you'll have to pass some additional options. ```console $ export MY_CLUSTER=ascent -$ git clone https://github.com/pnnl/ExaGO.git +$ git clone https://github.com/ornl/ExaGO.git $ mkdir build install $ cd exago diff --git a/viz/data/dataprocess.ipynb b/viz/data/dataprocess.ipynb index 25bd8732..7d5ade4b 100644 --- a/viz/data/dataprocess.ipynb +++ b/viz/data/dataprocess.ipynb @@ -69,7 +69,7 @@ }, { "cell_type": "code", - "execution_count": 6, + "execution_count": null, "metadata": { "id": "0PG5fSd1aIMP" }, @@ -77,8 +77,8 @@ "source": [ "# update point id in us file\n", "\n", - "# df = pd.read_csv('/content/drive/MyDrive/23 summer pnnl/new_all_bus_id_7_25.csv')\n", - "# f = open('/content/drive/MyDrive/23 summer pnnl/case_ACTIVSg all point.json')\n", + "# df = pd.read_csv('/content/drive/MyDrive/23 summer ornl/new_all_bus_id_7_25.csv')\n", + "# f = open('/content/drive/MyDrive/23 summer ornl/case_ACTIVSg all point.json')\n", "# pointsdata = json.load(f)\n", "\n", "# for point in pointsdata:\n", @@ -87,7 +87,7 @@ "# if(len(result.index)>0):\n", "# point['properties']['NAME'] = result.iloc[0]\n", "# # df[df.wkt == src].iloc[0].id\n", - "# with open('/content/drive/MyDrive/23 summer pnnl/case_ACTIVSg all point new name.json', 'w') as f:\n", + "# with open('/content/drive/MyDrive/23 summer ornl/case_ACTIVSg all point new name.json', 'w') as f:\n", "# json.dump(pointsdata, f)" ] }, @@ -268,15 +268,15 @@ }, { "cell_type": "code", - "execution_count": 10, + "execution_count": null, "metadata": { "id": "jvYcP_hKaIMN" }, "outputs": [], "source": [ "# change line name to uniqe point id\n", - "df = pd.read_csv('/content/drive/MyDrive/23 summer pnnl/new_all_bus_id_7_25.csv')\n", - "f = open('/content/drive/MyDrive/23 summer pnnl/case_ACTIVSg all line.json')\n", + "df = pd.read_csv('/content/drive/MyDrive/23 summer ornl/new_all_bus_id_7_25.csv')\n", + "f = open('/content/drive/MyDrive/23 summer ornl/case_ACTIVSg all line.json')\n", "linedata = json.load(f)\n", "# lines = []\n", "# df['temp_wkt'] = df['wkt'].map(str).replace(\"POINT (\", '')\n", @@ -300,7 +300,7 @@ " line['properties']['source'] = tresult.iloc[0]\n", " line['properties']['NAME'] = line['properties']['target'] + ' -- ' + line['properties']['source']\n", "\n", - "with open('/content/drive/MyDrive/23 summer pnnl/case_ACTIVSg all line new name.json', 'w') as f:\n", + "with open('/content/drive/MyDrive/23 summer ornl/case_ACTIVSg all line new name.json', 'w') as f:\n", " json.dump(linedata, f)\n", "\n", "\n" @@ -308,7 +308,7 @@ }, { "cell_type": "code", - "execution_count": 11, + "execution_count": null, "metadata": { "id": "qbHpQ2A0nKks" }, @@ -318,25 +318,25 @@ " \"type\": \"FeatureCollection\",\n", " \"features\":linedata\n", " }\n", - "with open('/content/drive/MyDrive/23 summer pnnl/qgis all line new name.json', 'w') as f:\n", + "with open('/content/drive/MyDrive/23 summer ornl/qgis all line new name.json', 'w') as f:\n", " json.dump(linejson, f)" ] }, { "cell_type": "code", - "execution_count": 12, + "execution_count": null, "metadata": { "id": "gP8B1KFJkDYM" }, "outputs": [], "source": [ "\n", - "f = open('/content/drive/MyDrive/23 summer pnnl/case_ACTIVSg all temp.json')\n", + "f = open('/content/drive/MyDrive/23 summer ornl/case_ACTIVSg all temp.json')\n", "alldata = json.load(f)\n", "alldata['geojsondata']['features'] = linedata + pointsdata\n", "alldata['nbus'] = len(pointsdata)\n", "alldata['nbranch'] = len(linedata)\n", - "with open('/content/drive/MyDrive/23 summer pnnl/case_ACTIVSg all.json', 'w') as f:\n", + "with open('/content/drive/MyDrive/23 summer ornl/case_ACTIVSg all.json', 'w') as f:\n", " json.dump(alldata, f, indent=4)" ] }, @@ -350,7 +350,7 @@ "source": [ "# keys = lines[0].keys()\n", "\n", - "# with open('/content/drive/MyDrive/23 summer pnnl/all_line_id_7_24.csv', 'w', newline='') as output_file:\n", + "# with open('/content/drive/MyDrive/23 summer ornl/all_line_id_7_24.csv', 'w', newline='') as output_file:\n", "# dict_writer = csv.DictWriter(output_file, keys)\n", "# dict_writer.writeheader()\n", "# dict_writer.writerows(lines)" @@ -358,19 +358,19 @@ }, { "cell_type": "code", - "execution_count": 25, + "execution_count": null, "metadata": { "id": "p_2TKr7b-itk" }, "outputs": [], "source": [ "# combine 2000 dataset with other dataset\n", - "f70k = open('/content/drive/MyDrive/23 summer pnnl/case_ACTIVSg70k list.json')\n", + "f70k = open('/content/drive/MyDrive/23 summer ornl/case_ACTIVSg70k list.json')\n", "d70k = json.load(f70k)\n", "\n", - "f10k = open('/content/drive/MyDrive/23 summer pnnl/case_ACTIVSg10k list.json')\n", + "f10k = open('/content/drive/MyDrive/23 summer ornl/case_ACTIVSg10k list.json')\n", "d10k = json.load(f10k)\n", - "f2000 = open('/content/drive/MyDrive/23 summer pnnl/case_ACTIVSg2000 list.json')\n", + "f2000 = open('/content/drive/MyDrive/23 summer ornl/case_ACTIVSg2000 list.json')\n", "d2000 = json.load(f2000)\n", "\n", "\n", @@ -379,7 +379,7 @@ "p2000 = [d for d in d2000 if d['geometry']['type'] == 'Point']\n", "points = p70 + p10\n", "points = points + p2000\n", - "with open('/content/drive/MyDrive/23 summer pnnl/case_ACTIVSg all point.json', 'w') as f:\n", + "with open('/content/drive/MyDrive/23 summer ornl/case_ACTIVSg all point.json', 'w') as f:\n", " json.dump(points, f)\n", "\n", "l70 = [d for d in d70k if d['geometry']['type'] == 'LineString']\n", @@ -387,19 +387,19 @@ "l2000 = [d for d in d2000 if d['geometry']['type'] == 'LineString']\n", "lines = l70 + l10\n", "lines = lines + l2000\n", - "with open('/content/drive/MyDrive/23 summer pnnl/case_ACTIVSg all line.json', 'w') as f:\n", + "with open('/content/drive/MyDrive/23 summer ornl/case_ACTIVSg all line.json', 'w') as f:\n", " json.dump(lines, f)" ] }, { "cell_type": "code", - "execution_count": 26, + "execution_count": null, "metadata": { "id": "n2a_FbyeE0mS" }, "outputs": [], "source": [ - "with open('/content/drive/MyDrive/23 summer pnnl/case_ACTIVSg all point.json', 'w') as f:\n", + "with open('/content/drive/MyDrive/23 summer ornl/case_ACTIVSg all point.json', 'w') as f:\n", " json.dump(points, f)" ] }, @@ -416,7 +416,7 @@ }, { "cell_type": "code", - "execution_count": 15, + "execution_count": null, "metadata": { "id": "muQyfL9kaIMM" }, @@ -426,8 +426,8 @@ "# generate source and target info of transmission lines, make pf value absolute\n", "#remove linestring where the end and start point is the same, because it's not valid to perform bigquery\n", "import csv\n", - "input = open('/content/drive/MyDrive/23 summer pnnl/all_line_part_attribute_db_7_25.csv', 'rt')\n", - "output = open('/content/drive/MyDrive/23 summer pnnl/all_line_db_7_26.csv', 'w', newline='')\n", + "input = open('/content/drive/MyDrive/23 summer ornl/all_line_part_attribute_db_7_25.csv', 'rt')\n", + "output = open('/content/drive/MyDrive/23 summer ornl/all_line_db_7_26.csv', 'w', newline='')\n", "writer = csv.writer(output)\n", "reader = csv.reader(input)\n", "headers = next(reader, None) # returns the headers or `None` if the input is empty\n", From 5b2bc736b11618a2f455efcdd40c300f9d13ae2a Mon Sep 17 00:00:00 2001 From: pelesh Date: Mon, 6 Apr 2026 19:54:10 +0000 Subject: [PATCH 2/2] Apply pre-commmit fixes --- .github/ISSUE_TEMPLATE/discussion.yml | 1 - .github/ISSUE_TEMPLATE/feature_request.yml | 1 - 2 files changed, 2 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/discussion.yml b/.github/ISSUE_TEMPLATE/discussion.yml index 76e88e3f..0bc3f3a5 100644 --- a/.github/ISSUE_TEMPLATE/discussion.yml +++ b/.github/ISSUE_TEMPLATE/discussion.yml @@ -53,4 +53,3 @@ body: attributes: label: "Additional information" description: "Add references or examples relevant to the discussion." - diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml index 8fe73e43..013614a0 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.yml +++ b/.github/ISSUE_TEMPLATE/feature_request.yml @@ -73,4 +73,3 @@ body: attributes: label: "Additional information" description: "Add any relevant references or examples." -