Skip to content
Skills Library
Programming · Learning & explanation

sciris-intro

/sciris-intro

Use when the user needs to implement a basic Sciris features — finding array values, plotting with date formatting, objdict containers, saving/loading objects, or parallelization.

Repository
sciris ↗
Licence
MIT
Last repository change
26.10.2026

Assessment and security

95/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content30 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 26.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Use when the user needs to implement a basic Sciris features — finding array values, plotting with date formatting, objdict containers, saving/loading objects, or parallelization.

Original author description

Use when the user needs to implement a basic Sciris features — finding array values, plotting with date formatting, objdict containers, saving/loading objects, or parallelization.

How it works

  1. Core Patterns
Original SKILL.md headings · 64 lines, 260 words
SKILL.md preview
---
name: sciris-intro
description: Use when the user needs to implement a basic Sciris features — finding array values, plotting with date formatting, objdict containers, saving/loading objects, or parallelization.
---

# Sciris introduction

Quick reference for Sciris' most commonly used features. See the full tutorial: `docs/tutorials/tut_intro.ipynb`.

If you need more detail, use your MCP tools (Context7 or GitMCP) to look up current Sciris documentation, or consult the other Sciris skills.

## Core Patterns

### Array operations
Use the `sciris-arrays` skill for more details.
```python
import numpy as np
import sciris as sc

data = np.random.rand(50)
inds = sc.findinds(data > 0.9)          # Find indices matching condition
mean_str = sc.arraymean(data)            # Mean ± 2 std as string
joined = sc.strjoin(inds)               # Join values into comma-separated string
```

### Quick plotting with dates
Use the `sciris-dates` skill for more details.
```python
dates = sc.daterange('2022-01-01', '2022-02-28', as_date=True)
values = 1e6 * np.random.randn(59)**2

data = sc.dataframe(x=dates, y=values)  # Shortcut to pd.DataFrame
plt.scatter(data.x, data.y)
sc.dateformatter()                       # Format date axis
sc.SIticks()                             # SI notation on y-axis
```

### Flexible containers
Use the `sciris-dicts` skill for more details.
```python
data = sc.objdict(a=[1,2,3], b=[4,5,6])
assert data.a == data['a'] == data[0]    # Three ways to access
assert data[:].sum() == 21              # Slice and sum
for i, key, value in data.enumitems():   # Enumerate with keys
    print(f'Item {i}: {key} = {value}')
```

### Save/load any object
Use the `sciris-files` skill for more details.
```python
sc.save('my-sim.obj', sim)               # Save (gzipped pickle)
new_sim = sc.load('my-sim.obj')          # Load — methods still work!
new_sim.plot()
```

### Parallelization
Use the `sciris-parallel` skill for more details.
```python
results = sc.parallelize(func, iterkwargs=dict(scale=[40,30,20,10]), x_offset=5, y_offset=10)
```

### Plot configuration
Use the `sciris-plotting` skill for more details.
```python
sc.options(dpi=120, jupyter=True)        # Set DPI and backend
sc.boxoff()                              # Remove top/right spines
```

Versions

The database has no other skills named sciris-intro.

Database snapshot: 13.11.2026 · package version 0747ae0707ff (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 95sciris-files
    Use when saving or loading files with Sciris — sc.save, sc.load, sc.savejson, sc.loadjson, sc.saveyaml, sc.readyaml, sc.savearchive, sc.loadarchive, sc.savefig, sc.loadmetadata, sc.getfilelist, sc.thispath, sc.makefilepath, sc.rmpath, sc.metadata, sc.compareversions, sc.require,…
  • 95sciris-parallel
    Use when parallelizing code or profiling performance with Sciris — sc.parallelize, sc.Parallel, iterarg, iterkwargs, maxcpu, maxmem, async parallelization, sc.profile, sc.benchmark, sc.memload, sc.checkram, line profiling, or CPU/memory monitoring.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.