Mechanical Engineering Expert
Civil, mechanical and core engineeringPosted 2 weeks agovia Himalayas, a remote job board
- Work type
- RemoteOpen worldwide
- Experience
- Not stated
- Pay
- $60–120 an hour
- Posted
- 2 weeks ago
Skills it mentions
Add your skills to see which ones you have.
About the job
Mechanical Engineering Expert
Pay: $60–$120/hour
Location: Global, fully remote
Job Type: Contractor (~15 hours per week)
Schedule: Flexible—you choose the hours and days you work, including weekends if desired
We are looking for a highly skilled Mechanical Engineering Expert to contribute to an AI training project involving engineering design, physical modeling, simulation, technical problem-solving, and Python.
The work involves creating, solving, reviewing, and validating engineering tasks across structural, thermal, mechanical, and multiphysics domains. A representative task may require translating physical requirements into a computational model, generating the required geometry or mesh, applying materials and boundary conditions, running an engineering simulation, and determining whether the resulting artifact and analysis satisfy the applicable physical and design constraints.
This is a very coding heavy role. Candidates must have experience using coding agents in their workflow.
What You’ll Work On
- Solve and validate mechanical-engineering problems involving design, analysis, simulation, testing, or R&D.
- Translate physical systems and engineering requirements into analytical or computational models.
- Create or modify geometry, meshes, materials, loads, contacts, constraints, and solver inputs.
Required Qualifications
- AnBSc, MSc or PhD in Mechanical Engineering or a closely related engineering discipline; or
- Strong understanding of applied mechanics and mechanical-engineering fundamentals.
- Experience developing analytical, computational, or simulation-based engineering solutions.
- Practical proficiency with Python or other coding languages.
- Practical proficiency with coding agents.
Process
- Apply to the role and complete the screening questions.
- Complete an AI interview of approximately 30 minutes.
- Complete the hiring manager review.
Compensation Structure
Compensation is output-based. Experts are paid per task that meets the project specifications. The time required to complete each task may vary depending on the expert’s experience and workflow.
Minimum submission requirements apply.
Start Timeline & Availability
We typically fill roles within 48 hours and are looking for experts who are ready to begin immediately. If selected, you will be expected to start your first task within 24–48 hours of completing onboarding.
Originally posted on Himalayas
Interested?Mechanical Engineering Expert at micro1
Apply on Himalayas (opens in a new tab)The job ad ends here
Interview questions for this job6 with answers, on Python
Interview questions for this job
For the skills the ad mentions: Python.
How do I merge two dictionaries in a single expression in Python?Python
How can I merge two Python dictionaries in a single expression?
For dictionaries
xandy, their shallowly-merged dictionaryztakes values fromy, replacing those fromx.In Python 3.9.0 or greater (released 17 October 2020,
PEP-584, discussed here):z = x | yIn Python 3.5 or greater:
z = {**x, **y}In Python 2, (or 3.4 or lower) write a function:
def merge_two_dicts(x, y): z = x.copy() # start with keys and values of x z.update(y) # modifies z with keys and values of y return zand now:
z = merge_two_dicts(x, y)
Explanation
Say you have two dictionaries and you want to merge them into a new dictionary without altering the original dictionaries:
x = {'a': 1, 'b': 2} y = {'b': 3, 'c': 4}The desired result is to get a new dictionary (
z) with the values merged, and the second dictionary's values overwriting those from the first.>>> z {'a': 1, 'b': 3, 'c': 4}A new syntax for this, proposed in PEP 448 and available as of Python 3.5, is
z = {**x, **y}And it is indeed a single expression.
Note that we can merge in with literal notation as well:
z = {**x, 'foo': 1, 'bar': 2, **y}and now:
>>> z {'a': 1, 'b': 3, 'foo': 1, 'bar': 2, 'c': 4}It is now showing as implemented in the release schedule for 3.5, PEP 478, and it has now made its way into the What's New in Python 3.5 document.
However, since many organizations are still on Python 2, you may wish to do this in a backward-compatible way. The classically Pythonic way, available in Python 2 and Python 3.0-3.4, is to do this as a two-step process:
z = x.copy() z.update(y) # which returns None since it mutates zIn both approaches,
ywill come second and its values will replacex's values, thusbwill point to3in our final result.Not yet on Python 3.5, but want a single expression
If you are not yet on Python 3.5 or need to write backward-compatible code, and you want this in a single expression, the most performant while the correct approach is to put it in a function:
def merge_two_dicts(x, y): """Given two dictionaries, merge them into a new dict as a shallow copy.""" z = x.copy() z.update(y) return zand then you have a single expression:
z = merge_two_dicts(x, y)You can also make a function to merge an arbitrary number of dictionaries, from zero to a very large number:
def merge_dicts(*dict_args): """ Given any number of dictionaries, shallow copy and merge into a new dict, precedence goes to key-value pairs in latter dictionaries. """ result = {} for dictionary in dict_args: result.update(dictionary) return resultThis function will work in Python 2 and 3 for all dictionaries. e.g. given dictionaries
atog:z = merge_dicts(a, b, c, d, e, f, g)and key-value pairs in
gwill take precedence over dictionariesatof, and so on.Critiques of Other Answers
Don't use what you see in the formerly accepted answer:
z = dict(x.items() + y.items())Read the rest at the sourceFrom Stack Overflow: asked by Carl Meyer, answered by Aaron Hall (CC BY-SA 4.0)
Does Python have a string 'contains' substring method?Python
From Stack Overflow: asked by Blankman, answered by Michael Mrozek (CC BY-SA 4.0)
How do I convert between tuples and lists?Python
The type constructor
tuple(seq)converts any sequence (actually, any iterable) into a tuple with the same items in the same order.For example,
tuple([1, 2, 3])yields(1, 2, 3)andtuple('abc')yields('a', 'b', 'c'). If the argument is a tuple, it does not make a copy but returns the same object, so it is cheap to calltuple()when you aren’t sure that an object is already a tuple.The type constructor
list(seq)converts any sequence or iterable into a list with the same items in the same order. For example,list((1, 2, 3))yields[1, 2, 3]andlist('abc')yields['a', 'b', 'c']. If the argument is a list, it makes a copy just likeseq[:]would.From Python Frequently Asked Questions (PSF License Version 2)
Why are default values shared between objects?Python
This type of bug commonly bites neophyte programmers. Consider this function:
def foo(mydict={}): # Danger: shared reference to one dict for all calls ... compute something ... mydict[key] = value return mydictThe first time you call this function,
mydictcontains a single item. The second time,mydictcontains two items because whenfoo()begins executing,mydictstarts out with an item already in it.It is often expected that a function call creates new objects for default values. This is not what happens. Default values are created exactly once, when the function is defined. If that object is changed, like the dictionary in this example, subsequent calls to the function will refer to this changed object.
By definition, immutable objects such as numbers, strings, tuples, and
None, are safe from change. Changes to mutable objects such as dictionaries, lists, and class instances can lead to confusion.Because of this feature, it is good programming practice to not use mutable objects as default values. Instead, use
Noneas the default value and inside the function, check if the parameter isNoneand create a new list/dictionary/whatever if it is. For example, don’t write:def foo(mydict={}): ...but:
def foo(mydict=None): if mydict is None: mydict = {} # create a new dict for local namespaceThis feature can be useful. When you have a function that’s time-consuming to compute, a common technique is to cache the parameters and the resulting value of each call to the function, and return the cached value if the same value is requested again. This is called “memoizing”, and can be implemented like this:
# Callers can only provide two parameters and optionally pass _cache by keyword def expensive(arg1, arg2, *, _cache={}): if (arg1, arg2) in _cache: return _cache[(arg1, arg2)] # Calculate the value result = ... expensive computation ... _cache[(arg1, arg2)] = result # Store result in the cache return resultYou could use a global variable containing a dictionary instead of the default value; it’s a matter of taste.
From Python Frequently Asked Questions (PSF License Version 2)
How do I use strings to call functions/methods?Python
There are various techniques.
The best is to use a dictionary that maps strings to functions. The primary advantage of this technique is that the strings do not need to match the names of the functions. This is also the primary technique used to emulate a case construct:
def a(): pass def b(): pass dispatch = {'go': a, 'stop': b} # Note lack of parens for funcs dispatch[get_input()]() # Note trailing parens to call functionUse the built-in function
getattr():import foo getattr(foo, 'bar')()
Note that
getattr()works on any object, including classes, class instances, modules, and so on.This is used in several places in the standard library, like this:
class Foo: def do_foo(self): ... def do_bar(self): ... f = getattr(foo_instance, 'do_' + opname) f()Use
locals()to resolve the function name:def myFunc(): print("hello") fname = "myFunc" f = locals()[fname] f()
From Python Frequently Asked Questions (PSF License Version 2)
When have you faced a challenging situation?Behavioural
Employers usually base questions on jobs you have done in the past. This gives you the chance to talk about your experience. For instance, they might ask:
- when have you faced a challenging situation?
- can you tell us about a personal achievement at work?
- have you ever taken the initiative?
- have you ever failed at a task?
Your answers should reflect the skills the employer wants. Be positive and tailor your examples to the job description.
If you don't have much work history, you can use examples from outside of work. You can also use examples from volunteering experience.
Use the STAR method to help structure your answers.From National Careers Service: interview advice (Open Government Licence v3.0)
