Skip to content

Commit 95a05de

Browse files
authored
Merge pull request #134 from daavid00/dev
Adding files to aline with GitHub community standards
2 parents 9574635 + e5a0e74 commit 95a05de

23 files changed

Lines changed: 249 additions & 81 deletions
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: "[BUG]"
5+
labels: bug
6+
assignees: daavid00
7+
8+
---
9+
10+
**Describe the bug and expected behaviour**
11+
A clear and concise description of what the bug is and the expected behaviour.
12+
13+
**To Reproduce**
14+
Steps to reproduce the bug.
15+
16+
**Screenshots**
17+
If applicable, add screenshots to help explain your problem.
18+
19+
**Desktop (please complete the following information):**
20+
- OS: [e.g. macOS, Ubuntu]
21+
- Version [e.g. Python 3.14, Octave 10.3.0]
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: "[ENHANCEMENT]"
5+
labels: enhancement
6+
assignees: daavid00
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is.
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.

.github/pull_request_template.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
## Description
2+
Describe the changes made and why they were made.
3+
4+
If applicable, include issue(s) this PR addresses (e.g., Closes #711).
5+
6+
Remember to check:
7+
- Code follows project style guidelines.
8+
- Tests have been added or updated to cover the changes.
9+
- Documentation has been updated if necessary.
10+
- All CI/CD checks pass.

CODE_OF_CONDUCT.md

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
# Contributor Covenant 3.0 Code of Conduct
2+
3+
## Our Pledge
4+
5+
We pledge to make our community welcoming, safe, and equitable for all.
6+
7+
We are committed to fostering an environment that respects and promotes the dignity, rights, and contributions of all individuals, regardless of characteristics including race, ethnicity, caste, color, age, physical characteristics, neurodiversity, disability, sex or gender, gender identity or expression, sexual orientation, language, philosophy or religion, national or social origin, socio-economic position, level of education, or other status. The same privileges of participation are extended to everyone who participates in good faith and in accordance with this Covenant.
8+
9+
10+
## Encouraged Behaviors
11+
12+
While acknowledging differences in social norms, we all strive to meet our community's expectations for positive behavior. We also understand that our words and actions may be interpreted differently than we intend based on culture, background, or native language.
13+
14+
With these considerations in mind, we agree to behave mindfully toward each other and act in ways that center our shared values, including:
15+
16+
1. Respecting the **purpose of our community**, our activities, and our ways of gathering.
17+
2. Engaging **kindly and honestly** with others.
18+
3. Respecting **different viewpoints** and experiences.
19+
4. **Taking responsibility** for our actions and contributions.
20+
5. Gracefully giving and accepting **constructive feedback**.
21+
6. Committing to **repairing harm** when it occurs.
22+
7. Behaving in other ways that promote and sustain the **well-being of our community**.
23+
24+
25+
## Restricted Behaviors
26+
27+
We agree to restrict the following behaviors in our community. Instances, threats, and promotion of these behaviors are violations of this Code of Conduct.
28+
29+
1. **Harassment.** Violating explicitly expressed boundaries or engaging in unnecessary personal attention after any clear request to stop.
30+
2. **Character attacks.** Making insulting, demeaning, or pejorative comments directed at a community member or group of people.
31+
3. **Stereotyping or discrimination.** Characterizing anyone’s personality or behavior on the basis of immutable identities or traits.
32+
4. **Sexualization.** Behaving in a way that would generally be considered inappropriately intimate in the context or purpose of the community.
33+
5. **Violating confidentiality**. Sharing or acting on someone's personal or private information without their permission.
34+
6. **Endangerment.** Causing, encouraging, or threatening violence or other harm toward any person or group.
35+
7. Behaving in other ways that **threaten the well-being** of our community.
36+
37+
### Other Restrictions
38+
39+
1. **Misleading identity.** Impersonating someone else for any reason, or pretending to be someone else to evade enforcement actions.
40+
2. **Failing to credit sources.** Not properly crediting the sources of content you contribute.
41+
3. **Promotional materials**. Sharing marketing or other commercial content in a way that is outside the norms of the community.
42+
4. **Irresponsible communication.** Failing to responsibly present content which includes, links or describes any other restricted behaviors.
43+
44+
45+
## Reporting an Issue
46+
47+
Tensions can occur between community members even when they are trying their best to collaborate. Not every conflict represents a code of conduct violation, and this Code of Conduct reinforces encouraged behaviors and norms that can help avoid conflicts and minimize harm.
48+
49+
When an incident does occur, it is important to report it promptly. To report a possible violation, send an email to dmar@norceresearch.no.
50+
51+
Community Moderators take reports of violations seriously and will make every effort to respond in a timely manner. They will investigate all reports of code of conduct violations, reviewing messages, logs, and recordings, or interviewing witnesses and other participants. Community Moderators will keep investigation and enforcement actions as transparent as possible while prioritizing safety and confidentiality. In order to honor these values, enforcement actions are carried out in private with the involved parties, but communicating to the whole community may be part of a mutually agreed upon resolution.
52+
53+
54+
## Addressing and Repairing Harm
55+
56+
If an investigation by the Community Moderators finds that this Code of Conduct has been violated, the following enforcement ladder may be used to determine how best to repair harm, based on the incident's impact on the individuals involved and the community as a whole. Depending on the severity of a violation, lower rungs on the ladder may be skipped.
57+
58+
1) Warning
59+
1) Event: A violation involving a single incident or series of incidents.
60+
2) Consequence: A private, written warning from the Community Moderators.
61+
3) Repair: Examples of repair include a private written apology, acknowledgement of responsibility, and seeking clarification on expectations.
62+
2) Temporarily Limited Activities
63+
1) Event: A repeated incidence of a violation that previously resulted in a warning, or the first incidence of a more serious violation.
64+
2) Consequence: A private, written warning with a time-limited cooldown period designed to underscore the seriousness of the situation and give the community members involved time to process the incident. The cooldown period may be limited to particular communication channels or interactions with particular community members.
65+
3) Repair: Examples of repair may include making an apology, using the cooldown period to reflect on actions and impact, and being thoughtful about re-entering community spaces after the period is over.
66+
3) Temporary Suspension
67+
1) Event: A pattern of repeated violation which the Community Moderators have tried to address with warnings, or a single serious violation.
68+
2) Consequence: A private written warning with conditions for return from suspension. In general, temporary suspensions give the person being suspended time to reflect upon their behavior and possible corrective actions.
69+
3) Repair: Examples of repair include respecting the spirit of the suspension, meeting the specified conditions for return, and being thoughtful about how to reintegrate with the community when the suspension is lifted.
70+
4) Permanent Ban
71+
1) Event: A pattern of repeated code of conduct violations that other steps on the ladder have failed to resolve, or a violation so serious that the Community Moderators determine there is no way to keep the community safe with this person as a member.
72+
2) Consequence: Access to all community spaces, tools, and communication channels is removed. In general, permanent bans should be rarely used, should have strong reasoning behind them, and should only be resorted to if working through other remedies has failed to change the behavior.
73+
3) Repair: There is no possible repair in cases of this severity.
74+
75+
This enforcement ladder is intended as a guideline. It does not limit the ability of Community Managers to use their discretion and judgment, in keeping with the best interests of our community.
76+
77+
78+
## Scope
79+
80+
This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public or other spaces. Examples of representing our community include using an official email address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
81+
82+
83+
## Attribution
84+
85+
This Code of Conduct is adapted from the Contributor Covenant, version 3.0, permanently available at [https://www.contributor-covenant.org/version/3/0/](https://www.contributor-covenant.org/version/3/0/).
86+
87+
Contributor Covenant is stewarded by the Organization for Ethical Source and licensed under CC BY-SA 4.0. To view a copy of this license, visit [https://creativecommons.org/licenses/by-sa/4.0/](https://creativecommons.org/licenses/by-sa/4.0/)
88+
89+
For answers to common questions about Contributor Covenant, see the FAQ at [https://www.contributor-covenant.org/faq](https://www.contributor-covenant.org/faq). Translations are provided at [https://www.contributor-covenant.org/translations](https://www.contributor-covenant.org/translations). Additional enforcement and community guideline resources can be found at [https://www.contributor-covenant.org/resources](https://www.contributor-covenant.org/resources). The enforcement ladder was inspired by the work of [Mozilla’s code of conduct team](https://github.com/mozilla/inclusion).

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Contributions are more than welcome using the fork and pull request approach
1212

1313
1. Work on your own fork of the main repo
1414
1. In the main repo execute:
15-
1. **pip install -r dev-requirements.txt** (this installs the [_dev-requirements.txt_](https://github.com/cssr-tools/pyopmspe11/blob/main/dev-requirements.txt); in addition, LaTeX is required, then for not macOs users run **sudo apt-get install texlive-fonts-recommended texlive-fonts-extra dvipng cm-super**, or else follow the instructions in [_macOS installation_](https://cssr-tools.github.io/pyopmspe11/installation.html#source-build-in-macos))
15+
1. **pip install -r dev-requirements.txt** (this installs the [_dev-requirements.txt_](https://github.com/cssr-tools/pyopmspe11/blob/main/dev-requirements.txt))
1616
1. **black src/ tests/** (this formats the code)
1717
1. **pylint src/ tests/** (this analyses the code, and might rise issues that need to be fixed before the pull request)
1818
1. **mypy --ignore-missing-imports src/ tests/** (this is a static checker, and might rise issues that need to be fixed before the pull request)

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
<img src="docs/text/figs/pyopmspe11c100Mcells.gif" width="830" height="462">
1010

11-
This repository contains scripts to set up a workflow using Python for the three cases in the [_SPE11 project_](https://www.spe.org/en/csp/).
12-
Here we use the [_OPM-Flow_](https://opm-project.org/?page_id=19) simulator.
11+
This repository contains scripts to set up a workflow using Python for the three cases in the [_SPE11 project_](https://www.spe.org/en/csp/),
12+
and to reproduce the sumbitted results from the OPM team published in [_the SPE11 benchmark paper_](https://www.sciencedirect.com/science/article/pii/S1750583625002178).
1313

1414
## Installation
1515
You will first need to install

SECURITY.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Security Policy
2+
3+
## Supported Versions
4+
5+
We only provide security updates for the following versions:
6+
7+
* **Version 2025.10** (Current Stable)
8+
9+
## Reporting a Vulnerability
10+
11+
We take security vulnerabilities seriously and appreciate your efforts to responsibly disclose them. To report a vulnerability, please follow these steps:
12+
13+
1. **Do not open a public GitHub issue.** This could expose the vulnerability to malicious actors before a fix is available.
14+
2. **Email us directly at `dmar@norceresearch.no`**.
15+
3. **Provide detailed information:**
16+
* A clear description of the vulnerability.
17+
* Steps to reproduce the vulnerability.
18+
* The affected versions of the project.
19+
* Any potential impact or exploit scenarios.
20+
* Your contact information for follow-up.
21+
22+
## Our Disclosure Policy
23+
24+
Upon receiving a security bug report, we will:
25+
26+
1. **Acknowledge receipt** within 24-72 hours.
27+
2. **Confirm the problem** and determine affected versions.
28+
3. **Work on a fix** for all supported releases.
29+
4. **Coordinate a release** with the fix.
30+
5. **Publicly acknowledge your contribution** (with your permission) after the fix is released.
31+
32+
## Responsible Disclosure
33+
34+
We kindly request that you:
35+
36+
* **Do not publicly disclose the vulnerability** until we have released a fix.
37+
* **Allow us a reasonable amount of time** to address the issue before public disclosure.
38+
* **Do not engage in any actions** that could harm our users or systems during your research.
39+
40+
Thank you for helping to keep our project secure.

docs/_sources/contributing.rst.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Contribute to the software
2121
#. Work on your own fork of the main repo
2222
#. In the main repo execute:
2323

24-
#. **pip install -r dev-requirements.txt** (this installs the `dev-requirements.txt <https://github.com/cssr-tools/pyopmspe11/blob/main/dev-requirements.txt>`_; in addition, LaTeX is required, then for not macOs users run **sudo apt-get install texlive-fonts-recommended texlive-fonts-extra dvipng cm-super**, or else follow the instructions in `macOS installation <https://cssr-tools.github.io/pyopmspe11/installation.html#source-build-in-macos>`_)
24+
#. **pip install -r dev-requirements.txt** (this installs the `dev-requirements.txt <https://github.com/cssr-tools/pyopmspe11/blob/main/dev-requirements.txt>`_)
2525
#. **black src/ tests/** (this formats the code)
2626
#. **pylint src/ tests/** (this analyses the code, and might rise issues that need to be fixed before the pull request)
2727
#. **mypy \-\-ignore-missing-imports src/ tests/** (this is a static checker, and might rise issues that need to be fixed before the pull request)

docs/_sources/installation.rst.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ install the Python requirements in a virtual environment with the following comm
4545

4646
.. note::
4747

48-
For not macOS users, to install the dependencies used for the figure's LaTeX formatting, execute
48+
For not macOS users, to install the (optional but recommended) dependencies used for the figure's LaTeX formatting, execute
4949

5050
**sudo apt-get install texlive-fonts-recommended texlive-fonts-extra dvipng cm-super**
5151

@@ -144,5 +144,4 @@ then building OPM Flow can be achieved with the following bash lines:
144144
145145
This builds OPM Flow, and it exports the path to the flow executable (i.e., executing in the terminal **which flow** should print the path).
146146

147-
For macOS, the LaTeX dependency can be installed from https://www.tug.org/mactex/. If after installation you still face an error due to LaTeX
148-
when executing pyopmspe11, then add the flag **-l 0** to pyopmspe11.
147+
For macOS, the LaTeX dependency can be installed from https://www.tug.org/mactex/.

docs/_sources/introduction.rst.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,4 @@ where
4242
-w Time interval for the sparse and performance data (spe11a [h]; spe11b/c [y]) ('0.1' by default).
4343
-c Generate a common plot for the current folders for 'spe11a', 'spe11b', or 'spe11c' ('' by default).
4444
-s Set to 1 to show Python warnings ('0' by default).
45-
-l Set to 0 to not use LaTeX formatting ('1' by default).
4645
-f Set to 0 to not create the subfolders deck, flow, data, and figures, i.e., to write all generated files in the output directory ('1' by default).

0 commit comments

Comments
 (0)